webinar - using phonegap and couchbase lite to create data-intensive applications

29
Couchbase Lite with PhoneGap Lorin BeerAdobe J. Chris Anderson Couchbase

Upload: couchbase

Post on 13-Jul-2015

3.508 views

Category:

Technology


4 download

TRANSCRIPT

Couchbase Lite with PhoneGap

Lorin Beer– Adobe

J. Chris Anderson – Couchbase

Couchbase Lite

The only Native NoSQL Database for Mobile

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

The Complete Mobile Solution

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

Lorin Beer – Adobe PhoneGap

Photo Attachment

Sync Gateway

Doc 1 Channel A

Doc 2

Channel A

Channel B

Channel A & B

Channel B

Doc 1Doc 2

Doc 2

Data Routing

Data

Data Routing

Data

Data Routing

Data

Da

ta

Data Routing

Data

Data Routing

Data

Data

Data Routing

Data

Data

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

Thank you!