Date post: | 13-Jul-2015 |
Category: |
Technology |
Upload: | couchbase |
View: | 3,507 times |
Download: | 4 times |
JSON Anywhere
Couchbase Server
• JSON on the device
Developers increasingly prefer NoSQL database
• JSON on the wire
No need for data transformation
• JSON in the cloud
Flexible data model
High performance
Easy scalability
ServerSync GatewayLite
JS N
JS N
JS N
Architecture
SERVER 3SERVER 1 SERVER 2
Couchbase Server
Channel
Sync Gateway
Channel Channel
Sync Gateway
Channel
Couchbase Lite for iOS and Android
On Premise In the cloud
Get Started
mobile.couchbase.com
Sample Apps
https://github.com/lorinbeer/anoter
https://github.com/couchbaselabs/TodoLite-PhoneGap
Couchbase Cloud
http://www.couchbasecloud.com
Sync Function
• Application code run in the cloud
• Access control
• Channel routing
• Update Validation
Your cloud in one page of code.
Sync Gateway: App Logic & Storage
Couchbase Smart Client
Revision/Conflict Management
App’s Sync Function
to Couchbase Server
function(doc, oldDoc) {…requireUser(oldDoc.owner);…channel(doc.channel);…access(doc.members, doc.roomID);}
rev 1 rev 2
rev 3a
rev 3b
Authentication