41
Building Mobile Apps That Work Online & Offline

Introduction to Couchbase Mobile – Couchbase Live New York 2015

Embed Size (px)

Citation preview

Page 1: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Building Mobile Apps That Work Online & Offline

Page 2: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Who has used Couchbase?

Page 3: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Who has used Couchbase Mobile?

Page 4: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Why did we build Couchbase Mobile?

Page 5: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Try again later.

No Internet

please wait…

Today’s Mobile Apps

Page 6: Introduction to Couchbase Mobile – Couchbase Live New York 2015

What’s the problem?

Page 7: Introduction to Couchbase Mobile – Couchbase Live New York 2015

The Problem: Remote Data

Page 8: Introduction to Couchbase Mobile – Couchbase Live New York 2015

What’s the solution?

Page 9: Introduction to Couchbase Mobile – Couchbase Live New York 2015

The Solution: Local & Remote Data + Sync

Page 10: Introduction to Couchbase Mobile – Couchbase Live New York 2015

MobileCouchbase

Page 11: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Couchbase LiteEmbedded NoSQL Database

Sync GatewaySecure Synchronization

Couchbase Server

Cloud NoSQL Database

Page 12: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Couchbase Lite

Full FeaturedLightweightNativeSecureJSON

Page 13: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Sync Gateway

Secure SynchronizationAuthenticationData Read AccessData Write Access

Page 14: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Couchbase Server

Highly scalableHigh PerformanceAlways onJSON

Page 15: Introduction to Couchbase Mobile – Couchbase Live New York 2015

ChangeEvents

Page 16: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Data Center

Database.ChangeDocument.Change

Query.Change

OnDocumentChanged(OnDatabaseChanged

)

Page 17: Introduction to Couchbase Mobile – Couchbase Live New York 2015

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"); }` } ]}

Page 18: Introduction to Couchbase Mobile – Couchbase Live New York 2015

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

Page 19: Introduction to Couchbase Mobile – Couchbase Live New York 2015

DeploymentTopology

Page 20: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Star Tree Mesh

Page 21: Introduction to Couchbase Mobile – Couchbase Live New York 2015

<html/>

Star

Data Center

Load Balancer

Web Server

Page 22: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Tree

Data Center

Load Balancer

Page 23: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Tree

Data Center

Load Balancer

Page 24: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Mesh

Data Center

Load Balancer

Retail StoreLoading

Dock

Page 25: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Loading Dock Retail Store

Mesh

Data Center

Load Balancer

Page 26: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Loading Dock Retail Store

Mesh

Data Center

Load Balancer

Page 27: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Security

Page 28: Introduction to Couchbase Mobile – Couchbase Live New York 2015

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

Page 29: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Data Center

Page 30: Introduction to Couchbase Mobile – Couchbase Live New York 2015

User Authenticatio

n

Page 31: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Read/Write Access

Page 32: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Transport on the Wire

Page 33: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Storage on the Device

Page 34: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Storage in the Cloud

Page 35: Introduction to Couchbase Mobile – Couchbase Live New York 2015

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

Page 36: Introduction to Couchbase Mobile – Couchbase Live New York 2015

CustomerStories

Page 37: Introduction to Couchbase Mobile – Couchbase Live New York 2015

PredixThe Cloud Platform for the Industrial Internet

Page 38: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Before

5 minutes

80 GB

After

2 minutes

10 GB

Page 39: Introduction to Couchbase Mobile – Couchbase Live New York 2015

MobileSessions

Page 40: Introduction to Couchbase Mobile – Couchbase Live New York 2015

• 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

Page 41: Introduction to Couchbase Mobile – Couchbase Live New York 2015

Build a complete app in

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