Hi all,

I've just begun using couchbase lite through phonegap. I'm starting to use 
the http://couchbasecloud.com sync gateway server to see how I can 
propagate data from one device to another. 

Now I'm looking for some best practice tips.

The PUSH seems easy enough, whenever I have new data I push by making a 
REST call to _replicate on my couchbase lite. Are there best practice tips 
here?

As for the PULL, the simplest thing I can do is just have a 
window.setTimeout that calls _replicate on my couchbase lite (with the 
source and target reversed from PUSH), but I'd like to _only_ PULL from the 
sync gateway the moment it notifies it has something for me? What's the 
best way to implement such notification mechanism? Is it to connect 
directly to the sync gateway on its _changes feed and call _replicate on my 
couchbase lite when I get something from the feed? (BTW, what's the 
difference between normal and long poll?)

thank you

slim

-- 
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 mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/04d9ff24-f32a-4a54-869b-bd24672fe65f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to