Duplicate Notifications are being received in appfabric caching -
i configuring notifications appfabric cache. first add operation sending 1 notification. when replace (update) same cache item new value or delete item, receiving multiple number of notifications single operation. suspect has nothing type of operation perform. because have seen multiple add notifications too. there configuration messing up?? have written delegate in codeback file. hitting delegate continually time single operation.
my configuration :
<datacacheclient requesttimeout="150000" channelopentimeout="19000" maxconnectionstoserver="10"> <localcache isenabled="true" sync="timeoutbased" ttlvalue="300" objectcount="10000"/> <clientnotification pollinterval="30" maxqueuelength="10000" /> <hosts> <host name="192.10.14.20" cacheport="22233"/> </hosts> <securityproperties mode="none" protectionlevel="none" /> <transportproperties connectionbuffersize="131072" maxbufferpoolsize="268435456" maxbuffersize="8388608" maxoutputdelay="2" channelinitializationtimeout="60000" receivetimeout="600000"/> </datacacheclient>
and code has delegate :
public void mycachelvldelegate(string mycachename, string myregion, string mykey, datacacheitemversion itemversion, datacacheoperations operationid, datacachenotificationdescriptor nd) { //display of delegate parameters stringbuilder responseofcache = new stringbuilder("a cache-level notification triggered!"); responseofcache.append(" ; cache: " + mycachename); responseofcache.append(" ; region: " + myregion); responseofcache.append(" ; key: " + mykey); responseofcache.append(" ; operation: " + operationid.tostring()); string value = manualdatacacheoperations.getcachevalue(mytestcache, txtkey.text).tostring(); legend.append(string.format("{0} - operation {1} performed @ {2}{3}", mykey, operationid.tostring(), datetime.now.toshorttimestring(), environment.newline)); }
please let me know missing it?? why sending multiple notifications same item. if of use, using cluster 2 hosts. , using same cache session management too.
first, sure added 1 callback. it's simple i've seen cases multiple callbacks added.
it's important understand cache notifications based on polling.
when use cache notifications, application checks cache cluster @ regular interval (pollinterval
) see if new notifications available.
so, if update 10 times key between 2 checks, 10 notifications.
Comments
Post a Comment