Introduction to Couchbase Mobile – Couchbase Live New York 2015

Preview:

Citation preview

Building Mobile Apps That Work Online & Offline

Who has used Couchbase?

Who has used Couchbase Mobile?

Why did we build Couchbase Mobile?

Try again later.

No Internet

please wait…

Today’s Mobile Apps

What’s the problem?

The Problem: Remote Data

What’s the solution?

The Solution: Local & Remote Data + Sync

MobileCouchbase

Couchbase LiteEmbedded NoSQL Database

Sync GatewaySecure Synchronization

Couchbase Server

Cloud NoSQL Database

Couchbase Lite

Full FeaturedLightweightNativeSecureJSON

Sync Gateway

Secure SynchronizationAuthenticationData Read AccessData Write Access

Couchbase Server

Highly scalableHigh PerformanceAlways onJSON

ChangeEvents

Data Center

Database.ChangeDocument.Change

Query.Change

OnDocumentChanged(OnDatabaseChanged

)

Sync Gateway: OnDocumentChanged"event_handlers": { "document_changed": [ { "handler": "webhook", "url": "http[s]://[user:pass@]www.domain.com/changehandler"}, "filter": `function(doc) { return (doc.type == "article"); }` } ]}

Sync Gateway: OnDatabaseChanged"event_handlers": { "document_changed": [ { "handler": "webhook", "url": "http[s]://[user:pass@]www.domain.com/changehandler”} } ]}

DeploymentTopology

Star Tree Mesh

<html/>

Star

Data Center

Load Balancer

Web Server

Tree

Data Center

Load Balancer

Tree

Data Center

Load Balancer

Mesh

Data Center

Load Balancer

Retail StoreLoading

Dock

Loading Dock Retail Store

Mesh

Data Center

Load Balancer

Loading Dock Retail Store

Mesh

Data Center

Load Balancer

Security

1. User Authentication2. Data Read/Write Access3. Data Transport on the Wire4. Data Storage on the Device5. Data Storage in the Cloud

Data Center

User Authenticatio

n

Read/Write Access

Transport on the Wire

Storage on the Device

Storage in the Cloud

User AuthenticationData Read/Write AccessData Transport on the WireData Storage on the DeviceData Storage in the Cloud

CustomerStories

PredixThe Cloud Platform for the Industrial Internet

Before

5 minutes

80 GB

After

2 minutes

10 GB

MobileSessions

• Couchbase Mobile 101: How to build your first mobile app

• Couchbase Mobile 102: How to add secure sync to your mobile app

• Couchbase Mobile 103: How to build a peer-to-peer mobile app

Build a complete app in

30 minutes.github.com/couchbaselabs/mini-hacks

Recommended