Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Couchbase  for  Mobile Couchbase  Lite  &  Sync  Gateway Chris  Anderson  /  @jchris

Slide 3

Slide 3 text

Sync  is  the  Future  of  Mobile  Data

Slide 4

Slide 4 text

What  is  Sync?

Slide 5

Slide 5 text

Your  database  can  sync,  too. for  Mobile

Slide 6

Slide 6 text

Why  Sync  MaDers

Slide 7

Slide 7 text

Faster  is  BeDer • “Half  a  second  delay  caused  a  20%  drop  in   traffic.” – h:p://glinden.blogspot.com/2006/11/marissa-­‐mayer-­‐at-­‐web-­‐20.html • “Google  Search  found  that  a  400  millisecond   delay  resulted  in  a  -­‐0.59%  change  in   searches/user.  What's  more,  even  aMer  the   delay  was  removed,  these  users  sNll  had   -­‐0.21%  fewer  searches,  indicaNng  that  a   slower  user  experience  affects  long  term   behavior.”  –  Steve  Souders – h:p://radar.oreilly.com/2009/07/velocity-­‐making-­‐your-­‐site-­‐fast.html hDp://perspecHves.mvdirona.com/2009/10/31/TheCostOfLatency.aspx

Slide 8

Slide 8 text

The  Cloud  is  Unpredictable • Network  latency  is  not  in  your  control • Developers  LOVE  wriHng  error  handling  code

Slide 9

Slide 9 text

Fallacies  of  Distributed  CompuHng ? • The  network  is  reliable. • Latency  is  zero. • Bandwidth  is  infinite. • The  network  is  secure. • Topology  doesn’t  change. • There  is  one  administrator. • Transport  cost  is  zero. • The  network  is   homogeneous.

Slide 10

Slide 10 text

Take  the  Cloud  Out  of  the  CriHcal  Path • Local  data • Predictable  latency • App  works  offline • Cloud  services  can  be   tuned  for  throughput • Developers  control  the   user  experience • Mobile  apps  can  address   new  use  cases

Slide 11

Slide 11 text

Couchbase  for  Mobile

Slide 12

Slide 12 text

Couchbase  Lite Dalvik Cocoa Couchbase   Lite Couchbase   Lite • NoSQL ­ JSON  documents ­ binary  a:achments ­ views  and  queries • Lightweight ­ naNve  ObjecNve-­‐C  /  Java ­ less  than  500kb  library  size • Robust ­ SQLite  storage  engine  is  part  of  the   operaNng  system  standard  library “The  best  database  for  mobile  devices.”

Slide 13

Slide 13 text

Sync  Gateway Sync  Gateway App  Server Access   Control Push   NoNficaNons etc Couchbase  Server • Sync  Engine ­ HTTP  sync  protocol ­ CompaNble  with  lots  of  clients • Access  Control ­ User  management ­ Channels ­ ApplicaNon  override! • Easy  to  deploy ­ Go  runNme  works  on  all  supported   Couchbase  Server  pladorms ­ BuilNn  lightweight  storage  for   development  mode

Slide 14

Slide 14 text

Architecture Sync  Gateway App  Server Access   Control CouchSync Couchbase  Server Dalvik Cocoa Couchbase   Lite Couchbase   Lite Push   NoNficaNons etc

Slide 15

Slide 15 text

CouchSync • Masterless  Document  Model ­ Mobile-­‐to-­‐cloud  and  mobile-­‐to-­‐mobile ­ Conflict  detecNon  and  management • Web  Standards ­ HTTP  and  JSON  are  well  supported  on   mobile  networks • Robust ­ Recovers  efficiently  when  reconnected • Proven  and  Open  Protocol ­ Syncs  with  a  variety  of  databases  and   other  systems “It  works.”

Slide 16

Slide 16 text

Access  Control

Slide 17

Slide 17 text

Demo  -­‐  CouchChat  iOS  and  HTML5

Slide 18

Slide 18 text

Use  Cases

Slide 19

Slide 19 text

Medical  Records • NoSQL  flexible  schema  integrates  well  with  exisHng  systems • Staff  can  carry  data  with  them  to  paHents • WiFi  limited  in  hospitals • Already  used  for  developing  world  health  care  systems

Slide 20

Slide 20 text

Retail  /  Loyalty  /  Point  of  Sale • Massively  mulHplayer  interacHve  data • Sync  between  customer  facing  and  backend  systems • Integrate  with  exisHng  checkout  systems

Slide 21

Slide 21 text

Airline • Flight  plans • Passenger  manifest  and  purchases • Robust  in  the  air • Connected  on  the  ground

Slide 22

Slide 22 text

Fleet  Management • OperaHonal  data  for  users • Telemetry  and  equipment  status • Service  reminders • More  efficient  resale  market

Slide 23

Slide 23 text

Games  and Social  Media • Personal  data  (contacts,  photos,  etc) • Fine  grained  sharing  &  messaging • Easy  development  framework  (shared  features) • Great  for  turn-­‐based  games,  chat

Slide 24

Slide 24 text

Milestones • Nov  2012 ­ iOS  client  1.0  release • Feb  2013 ­ Open  source  preview  of  Sync  Gateway  &  Couchbase  Lite • April  2013 ­ Preview  1  of  Sync  Gateway,  HTML5  support • July  2013 ­ Preview  2  of  Sync  Gateway ­ Open  source  preview  of  Couchbase  Lite  for  Android • August  2013 ­ Beta  Release,  Sync  Gateway  and  Couchbase  Lite  for  iOS

Slide 25

Slide 25 text

Get  Started • Open  Source  Mailing  List ­ h:p://groups.google.com/forum/#!forum/mobile-­‐couchbase • iOS  Example  App ­ h:ps://github.com/couchbaselabs/CouchChat-­‐iOS • iOS  HTML5  Container ­ h:ps://github.com/couchbaselabs/LiteGap • Couchbase  Lite ­ h:ps://github.com/couchbase/couchbase-­‐lite-­‐ios • Sync  Gateway ­ h:ps://github.com/couchbaselabs/sync_gateway