Hello,
I have an MVC project that I fill my bucket “default” and get data from its views. I have 2 couchbase servers which are synchronized. in my servers, sync_gateway buckets are created.
This couchbase servers will be used with both iOS and Android. Mobile side will be handled by some other guys here, my only duty now is to carry my docs from default bucket to sync_gateway bucket and keep these two synchronized…
I thought I was gonna do it by installing sync_gateway.exe and stuff but my boss just came in and said I shouldn’t be using them, it’s already connected and the rest of it is mobile guys’ thing. He said I should create channels(?) between sync_gateway and default bucket and etc. I don’t really understand what I should do now since I’m so new on all this couchbase thing. I will be doing this syncronizing thing it in my MVC project, I guess.
You might try asking your questions in the Mobile section, Mobile - Couchbase Forums. Questions about how to configure replication with the sync gateway will probably get a better response there, since it’s not really .Net specific.
You might also try this document about channels in the sync gateway.
@btburnett3 Hello, thanks for the response. I actually asked my question in mobile section at first, but they only told me how to configure sync_gateway’s config and other stuff. They couldn’t help me with carrying docs from"default" bucket to “sync_gateway” bucket simultaneously. Do you mean this is something that the mobile department guys’ should do? I could only fill my “default” bucket with .NET so far.
Thanks.
EDIT: After I wrote this, by changinf my serviceconfig.json I copied all my docs from defult bucket to sync_gateway bucket :
But, then I tried to upsert new things into my default bucket docs and they didn’t appear in sync_gateway docs. I guess I should do sommething else to keep them synced? Any ideas?
One trick you might consider is using XDCR. You can use this to keep two buckets in sync, even two buckets on the same cluster. Documentation link below: