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

From Mobile First to Offline First at ConFoo Montreal

From Mobile First to Offline First at ConFoo Montreal

Offline First is an approach to application design in which a web, mobile, desktop, or Internet of Things application is built for offline usage first and is then progressively enhanced to take advantage of network connectivity when available. An Offline First app can provide a better, faster user experience — both offline and online — by storing content and data locally and synchronizing with the cloud when a network connection is available.

Bradley Holt

March 08, 2017
Tweet

More Decks by Bradley Holt

Other Decks in Programming

Transcript

  1. Bradley Holt, Developer Advocate
    Wednesday, March 8, 2017
    From Mobile First to Offline First
    ConFoo Montreal

    View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. Web Browsers as Thin Clients

    View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. Embrace the
    Chaos of Web
    Development

    View Slide

  15. Progressive Enhancement

    View Slide

  16. Ubiquitous
    Connectivity

    View Slide

  17. The Eight Fallacies of Distributed Computing
    1.  The network is reliable
    2.  Latency is zero
    3.  Bandwidth is infinite
    4.  The network is secure
    5.  Topology doesn't change
    6.  There is one administrator
    7.  Transport cost is zero
    8.  The network is homogeneous

    View Slide

  18. ✈ Mode

    View Slide

  19. View Slide

  20. Data
    Caps

    View Slide

  21. Urban
    Canyons

    View Slide

  22. Local
    Dev

    View Slide

  23. Lie-Fi

    View Slide

  24. View Slide

  25. Offline First
    Lack of connectivity is
    not an error condition.

    View Slide

  26. View Slide

  27. View Slide

  28. View Slide

  29. View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. Cloudant Sync

    View Slide

  34. View Slide

  35. One Database Per User
    userdb-d76846
    userdb-905cec
    userdb-adc95b
    userdb-c082f2
    userdb-730bba
    userdb-c3d3e5
    userdb-a1ec1f
    userdb-85a327
    userdb-9b9aba
    userdb-85bcfe
    serdb-da3d25

    View Slide

  36. Cloudant Envoy
    A CouchDB proxy to enable replication of database subsets

    View Slide

  37. Cloudant
    FoodTracker

    View Slide

  38. View Slide

  39. View Slide

  40. Cloudant
    Location
    Tracker

    View Slide

  41. Offline
    First
    IoT

    View Slide

  42. Consumer
    Offline
    First
    IoT

    View Slide

  43. Industrial
    Offline
    First
    IoT

    View Slide

  44. Offline Camp
    We took the Offline First community for three day retreats in the Catskill
    Mountains and in California to help foster the growing Offline First movement

    View Slide

  45. View Slide

  46. View Slide

  47. View Slide

  48. View Slide

  49. View Slide

  50. View Slide

  51. View Slide

  52. View Slide

  53. View Slide

  54. Get Involved!
    §  Join the Offline First Slack team:
    offlinefirst.org/chat/
    §  Follow @OfflineCamp on Twitter
    §  Read the Offline Camp Medium publication:
    medium.com/offline-camp
    §  Join us at Offline Camp Berlin (waitlisted)!

    View Slide

  55. View Slide

  56. View Slide

  57. Resources
    §  Mobile First
    §  Understanding Progressive Enhancement
    §  The Eight Fallacies of Distributed Computing
    §  The Impact of Offline First on the Developing World
    §  Designing Offline-First Web Apps
    §  The Service Worker Specification
    §  Application Cache is a Douchebag
    §  localForage
    §  PouchDB
    §  Apache CouchDB
    §  IBM Cloudant
    §  PouchDB for Ionic Framework
    §  PouchDB for Electron (formerly Atom Shell)
    §  Quick demo of PouchDB running on a Tessel
    §  Apache Cordova

    View Slide

  58. Resources (cont'd)
    §  Ionic
    §  Electron
    §  Tessel 2
    §  Cloudant Sync iOS datastore library
    §  A JSON-based document datastore for Android applications
    §  Hoodie
    §  Scaling Offline First with Envoy
    §  Introducing Cloudant FoodTracker: An Offline-First App
    §  Field Work
    §  Location Tracker – Part 1
    §  Crafting community events that leave them wanting s’more
    §  Offline Camp on Medium
    §  Offline Maps: A Shared Problem in Need of a Shared Solution
    §  Building the Offline First Community
    §  Next steps: Building the Offline First community through face-to-face events

    View Slide

  59. Resources (cont'd)
    §  Offline/Low-bandwidth UX Design Patterns
    §  Offline First, the Decentralized Web, and Peer-to-Peer Technologies

    §  Let’s Talk about Tooling
    §  Notifications and Alerts for an Offline First World
    §  Security in Offline First Apps
    §  Offline First Chat
    §  Offline Camp on Twitter
    §  SXSW PanelPicker: From Mobile First to Offline First

    View Slide

  60. Image Credits
    §  Thin Client — OpenVMS by Leonardo Rizzi, on Flickr (CC BY-SA 2.0).
    §  the iOS family pile (2015) by Blake Patterson, on Flickr (CC BY 2.0).
    §  Screen size visualisation by Orde Saunders, on Flickr (CC BY 2.0).
    §  fluffy chaos by xdxd_vs_xdxd, on Flickr (CC BY-SA 2.0).
    §  Device landscape by Jeremy Keith, on Flickr (CC BY 2.0).
    §  Cell phone tower by Gary Lerude, on Flickr (CC BY-ND 2.0).
    §  Pneumatic Central by Sleestak, on Flickr (CC BY 2.0).
    §  Cloud Formation Over the Adirondacks by Bradley Holt, on Twitter.
    §  Money by thethreesisters, on Flickr (CC BY 2.0).
    §  Los Angeles Downtown by Aydin Palabiyikoglu, on Flickr (CC BY 2.0).
    §  workstation by Stev Ngo, on Flickr (CC BY 2.0).
    §  No Signal by Steve Hodgson, on Flickr (CC BY-SA 2.0).
    §  Waterfall by Paulo Valdivieso, on Flickr (CC BY-SA 2.0).
    §  Progressive Web App, le futur du Web au #axawebcenter
    @hsablonniere #nativeVsWeb #serviceworker #offline1st #sketch
    http://bit.ly/1TA7IvM by flexbox, on Flickr (CC BY 2.0).
    §  Service Workers fetch diagram by Mozilla Contributors (CC-BY-SA 2.5).
    §  Tessel 2 by SparkFun Electronics, on Flickr (CC BY 2.0).
    §  database by Tim Morgan, on Flickr (CC BY 2.0).
    §  A mockup of the golden Apple iPhone 5S by Zach Vega,
    on Wikimedia Commons (CC BY-SA 3.0).
    §  传感器器 Sensors by Lei Gao, on Flickr (CC BY-SA 2.0).
    §  Offline Camp location by Bradley Holt, on Twitter.

    View Slide

  61. Thank You
    @BradleyHolt

    View Slide