Building Always-Available Mobile Applications: Couchbase Connect 2014

21
Building Always-Available Mobile Applications Wayne Carter | Architect, Couchbase

Transcript of Building Always-Available Mobile Applications: Couchbase Connect 2014

Page 1: Building Always-Available Mobile Applications: Couchbase Connect 2014

Building Always-Available Mobile

Applications

Wayne Carter | Architect, Couchbase

Page 2: Building Always-Available Mobile Applications: Couchbase Connect 2014

Hello, my name is

©2014 Couchbase, Inc. 2

Wayne CarterArchitect, Couchbase

@waynecarter

Page 3: Building Always-Available Mobile Applications: Couchbase Connect 2014

Why aren’t today’s apps always-available?

How to build always-available apps

Hear from Firefly Logic

Live Demo

Q&A

What are we going to talk about today?

©2014 Couchbase, Inc. 3

Page 4: Building Always-Available Mobile Applications: Couchbase Connect 2014

So why don’t today’s mobile apps always work?

The Question

©2014 Couchbase, Inc. 4

Page 5: Building Always-Available Mobile Applications: Couchbase Connect 2014

5©2014 Couchbase, Inc.

Today’s Mobile Apps

Try again

later.

No Internet

please wait…

Page 6: Building Always-Available Mobile Applications: Couchbase Connect 2014

How does this affect what people think about your app?

©2014 Couchbase, Inc. 6

Doesn’t work a lot of the time and when

it does it’s slow.

Page 7: Building Always-Available Mobile Applications: Couchbase Connect 2014

How does this affect application uninstall rates?

©2014 Couchbase, Inc. 7

0%

20%

40%

60%

80%

100%

Un

insta

ll R

ate

Freezing

Crashing

Slow Responsiveness

Source: uSamp

Page 8: Building Always-Available Mobile Applications: Couchbase Connect 2014

Data location is the problem.

The Problem

©2014 Couchbase, Inc. 8

Page 9: Building Always-Available Mobile Applications: Couchbase Connect 2014

Data Location Options & Effects

©2014 Couchbase, Inc. 9

Data

Location

Network

Requirement

Application

Availability

Application

Responsiveness

Enabling

Technology

Remote

Only

Always

Connected

Sometimes

AvailableVariable

REST Services

(JSON)

Local

Only

Never

Connected

Always

Available

Always

FastSQLite

Local

& Remote

Occasionally

Connected

Always

Available

Always

FastSync

1 2 3 4 5

Page 10: Building Always-Available Mobile Applications: Couchbase Connect 2014

Data Location Options & Effects

©2014 Couchbase, Inc. 10

Data

Location

Network

Requirement

Application

Availability

Application

Responsiveness

Enabling

Technology

Remote

Only

Always

Connected

Sometimes

AvailableVariable

REST Services

(JSON)

Local

Only

Never

Connected

Always

Available

Always

FastSQLite

Local

& Remote

Occasionally

Connected

Always

Available

Always

FastSync

1 2 3 4 5

Page 11: Building Always-Available Mobile Applications: Couchbase Connect 2014

11©2014 Couchbase, Inc.

The Solution: Local Data + Sync

Page 12: Building Always-Available Mobile Applications: Couchbase Connect 2014

Always work both online & offline

Always be blazing fast

Built with orders of magnitude less code

Users will absolutely love your apps

What does this mean for your apps?

©2014 Couchbase, Inc. 12

Page 13: Building Always-Available Mobile Applications: Couchbase Connect 2014

Couchbase Mobile

©2014 Couchbase, Inc. 13

Couchbase Lite

On-device, lightweight, native embedded JSON database

Sync Gateway

Securely synchronize on-device Couchbase Lite with Couchbase

Server in the cloud

Couchbase Server

High performance, scalable, always-on JSON database in

the cloud

Page 14: Building Always-Available Mobile Applications: Couchbase Connect 2014

Building the Conference Mobile App

Bryan Hunter | CTO, Firefly Logic

Page 15: Building Always-Available Mobile Applications: Couchbase Connect 2014

Couchbase Lite

©2014 Couchbase, Inc. 15

Couchbase Lite

Full Featured

JSON

Native

Lightweight

Secure

??

Page 16: Building Always-Available Mobile Applications: Couchbase Connect 2014

Couchbase Lite for .NET

©2014 Couchbase, Inc. 16

Page 17: Building Always-Available Mobile Applications: Couchbase Connect 2014

Sync Gateway

©2014 Couchbase, Inc. 17

Sync Gateway

Replication

Authentication

Data Partitioning

Data Access Control

Page 18: Building Always-Available Mobile Applications: Couchbase Connect 2014

Couchbase Server

©2014 Couchbase, Inc. 18

Couchbase Server

JSON

Highly Scalable

High Performance

Always On

Page 19: Building Always-Available Mobile Applications: Couchbase Connect 2014

Demo

Zack Gramana | Senior Engineer, Couchbase

Page 20: Building Always-Available Mobile Applications: Couchbase Connect 2014
Page 21: Building Always-Available Mobile Applications: Couchbase Connect 2014

Q & A

@waynecarter @bryan_hunter @zgramana