Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Data: online and off

Phil Nash
September 21, 2015

Data: online and off

Phil Nash

September 21, 2015
Tweet

More Decks by Phil Nash

Other Decks in Programming

Transcript

  1. Data: online and off •  Traditional application data storage •

     Traditional vs offline first •  Browser based data storage •  Offline first and data
  2. Traditional application data storage 1.  POST data to a server

    2.  Server stores data in a database 1.  GET request for data 2.  Server interprets request and delivers
  3. Making data offline first We need something that is: •

     Easily distributed •  Eventually consistent •  Resolves conflicts •  Web friendly
  4. CouchDB Apache CouchDB™ is a database that uses JSON for

    documents, JavaScript for MapReduce indexes, and regular HTTP for its API
  5. PouchDB •  CouchDB for the browser/Node •  Wraps IndexedDB or

    WebSQL •  LocalStorage adapter available as a plugin
  6. Offline first •  The time for offline first is now

    •  Distributing data like this requires a change of mindset •  Not all application data needs to be stored this way
  7. Help me! On a scale of 0 to 10, how

    likely is it that you would recommend this talk to a friend or colleague? 0203 322 5761
  8. Thanks! @philnash http:/ /philna.sh [email protected] On a scale of 0

    to 10, how likely is it that you would recommend this talk to a friend or colleague? 0203 322 5761