introduction to couchbase mobile: building apps that work online and offline

72
INTRODUCTION TO COUCHBASE MOBILE: BUILDING APPS THAT ALWAYS WORK Wayne Carter, Chief Architect of Mobile Ali LeClerc, Product Marketing Manager

Upload: couchbase

Post on 26-Jul-2015

349 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

INTRODUCTION TO COUCHBASE MOBILE:BUILDING APPS THAT ALWAYS WORKWayne Carter, Chief Architect of MobileAli LeClerc, Product Marketing Manager

Page 2: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Who has used Couchbase?

Page 3: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Who has used Couchbase Mobile?

Page 4: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

YearOne

Page 5: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

2014

May Jun Jul Aug Sep Oct Nov Dec Jan FebMar Apr May

2015

1.0.3

1.0.4

Couchbase Lite iOS Android OS X Linux WindowsSync Gateway Multi-Master Sync Authentication Read/Write Access REST

1.0

1.0.2

Couchbase Lite Microsoft .NET Xamarin Mono

1.0.1

Couchbase Lite Forest DB (alpha)

Couchbase Lite UnitySync Gateway Web Hooks View Query

1.1

Couchbase Mobile Innovation

Couchbase Lite Unity (beta)

Page 6: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

The most complete NoSQL database solution

Page 7: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

to power mobiletabletwearabledesktoplaptopIoTwebappsgames

Page 8: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 9: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

DeveloperAdoption

Page 10: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

3,000

Page 11: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

70,000

Page 12: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

CustomerStories

Page 13: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

PredixThe Cloud Platform for the Industrial Internet

Page 14: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 15: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 16: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 17: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 18: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 19: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 20: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 21: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Before

5 minutes

80 GB

After

2 minutes

1 GB

Page 22: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

MarketLandscape

Page 23: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

2007 2010 Today

The iPhone

Online-First to Offline-First

1998

Enterprise Sync

Shift to Local Data

Offline-first andneed for sync

REST

Page 24: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Mobile Sync Offerings

Page 25: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

WhySync

Page 26: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Today’s Mobile Apps

Try again later.

No Internet

please wait…

Page 27: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

The Problem

Remote Data

Page 28: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

The Solution

Local Data + Sync

Page 29: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

What does this mean for apps?

Page 30: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Always Work

Page 31: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Always Fast

Page 32: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 33: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

CouchbaseMobile

Page 34: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Couchbase LiteEmbedded NoSQL Database

Sync GatewaySecure Synchronization

Couchbase

ServerCloud NoSQL Database

Page 35: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Couchbase Lite

Embedded NoSQL Database

Page 36: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Full-Featured

Page 37: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Lightweight500kb

Page 38: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Cross Platform

Page 39: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline
Page 40: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Secure

Page 41: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

JSON

Page 42: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Sync Gateway

Secure Synchronization

Page 43: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Authentication

Page 44: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Data Read Access

Page 45: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Data Write Access

Page 46: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Couchbase Server

Cloud NoSQL Database

Page 47: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Highly Scalable

Page 48: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

High Performance

Page 49: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Always On

Page 50: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

JSON

Page 51: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

ChangeEvents

Page 52: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Data Center

Page 53: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Database.Change

Document.Change

Query.Change

OnDocumentChanged

OnDatabaseChanged

Page 54: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

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 55: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Sync Gateway: OnDatabaseChanged

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

Page 56: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

DeploymentTopology

Page 57: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Star Tree Mesh

Page 58: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Web

S

erv

er

LB

R

<html/>

Star

Data Center

Page 59: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Web

S

erv

er

LB

R

<html/>

Tree

Data CenterRetail Store

Page 60: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Web

S

erv

er

LB

R

<html/>

Mesh

Data CenterRetail Store

Page 61: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Security

Page 62: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

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

Page 63: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Data Center

Page 64: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

User Authenticatio

n

Page 65: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Read/Write Access

Page 66: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Transport on the Wire

Page 67: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Storage on the Device

Page 68: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Storage in the Cloud

Page 69: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

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

Page 70: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

MobileSessions

Page 71: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

• 101-102: Getting Started• 103: Building Peer-to-Peer Apps• 104: Building Unity Games• Advanced: Scaling, Deploying in the Cloud,

Building Web Apps• Customers & Users: GE, Ryanair, PVH, Vueit,

manuscriptapp.com

Page 72: Introduction to Couchbase Mobile: Building Apps that Work Online and Offline

Q&A