Thanks jens, if we are using for active-active and for we are using webhooks for other usecases. it will be overhead on application. is it possible to distinguish requests from sg-replicate and acuaul client to syncgateway in the webhook. and we can ignore in the webook part of syncgateway.
On Tuesday, July 5, 2016 at 10:25:13 PM UTC+5:30, Jens Alfke wrote: > > > On Jul 5, 2016, at 2:07 AM, arihant rk <[email protected] <javascript:>> > wrote: > > if the request sent SYNC1 and webhook triggered to activate. The same > request will be replicated to SYNC 2 by sg-replicate, again webhook > triggers for activating client which is already activated. > > > Can you just ignore the redundant activation if you see the client is > already activated? > > webhooks used for sending events, why do we need same events multiple > times. > > > Because it’s a distributed system; especially when you use active-active > replication, which means you’ve created a peer-to-peer network (where some > of the peers happen to be servers.) A document revision arriving at a peer > isn’t a unique event; it’s information propagating across the mesh. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/fcc36898-a377-40f5-934a-cf2baf2fcac5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
