I am looking to use CBL to support an iOS app that will have two types of 
data; data that is only synced between the user's iOS devices and data that 
is made available to other users of the app.  

I am trying to design the architecture for this using CouchBase.  The items 
are all of the same 'type', but some are marked 'personal' and others are 
marked as shared with others, so I don't want to create two types of 
CBLDocuments.  

In the app, I am assuming that I will use CBLViews to organize CBLDocuments 
into the constructs the local app is concerned with, UI groupings, etc 
(CBLDocuments can live within categories, for example, so I believe that a 
view for each category will be appropriate).

What mechanism and where in the architecture do I route documents?  Is that 
done on the CBLGSyncGateway or in the server itself?  What techniques are 
available to identify a connection to the server as coming from a 
particular user?   

If I am using an Authentication Mechanism to access there server based on 
email addresses, can I simply include in each document the email address of 
all users who should be able to see the document?  

Are there any exemples of doing something like this that anyone can point 
me towards?  

Thanks in advance,

Charlie


-- 
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/904e79e1-253d-4eb4-bd05-f75f925a3841%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to