Hi We are designing a system where mobile users connect to a sync gateway and create various objects. I have a listener that listens to the continuous feed from gateway and makes webservice calls to a PHP server to create those objects. So far it seems to work very well.
The problem that I have right now is that if any of the webservice calls fail, I would need to inform just that mobile client who created it (Since its not a valid object in the system). I tried to look at parameterized filters, which could allow this as I can pass in a parameter from iOS/Android and return TRUE or FALSE from the filter, but that wont work with Sync Gateway. Im unable to find out how to create an equivalent system using channels. The one way I can think of is to create users for each of my mobile clients(during registration or something similar) and have each of them subscribe to a unique channel (probably keyed off their username) in addition to a global channel where they all receive valid updates. When the webservice call fails, I would update back to the Sync gateway indicating that its an error and the sync function can then channel it to the user who created it. Is this the only way to do it? Since we have 3000 mobile users and are expecting a surge in the upcoming release (that uses SG + couchbase mobile), would it be okay to create a channel for each user? Are there any performance implications I should be worried about. Thanks Raja -- 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/e2983de4-92a8-4a9c-b263-cb03b0eaab6e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
