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

Simple Development Offline First Web/App

Simple Development Offline First Web/App

This talks presented on JSConf Asia 2019 at Singapore
I talked about why we should care on creating more resilience app and show how our solution to create faster application with offline-first in mind

(you could access google slides on this link http://bit.ly/jsconfasia-offlinefirst)

More Decks by Ahmad Anshorimuslim Syuhada

Other Decks in Technology

Transcript

  1. Hallo! I’m Ans I work for an IoT Aquaculture startup

    for rural area You can find me at: @ans4175
  2. Trello Sync (Document State) “Any code that depended on server

    logic before now has to implement it itself” “The basic idea behind our sync is to store changes made offline as a series of deltas that are later uploaded to the server” ▷ https://tech.trello.com/sync-architecture/ ▷ https://tech.trello.com/syncing-changes/ CLOUD LOCAL DATA CLIENT UI deltas
  3. Technical Requirement ▷ Web development ready ▷ Mobile development ready

    ▷ Time to implement faster ◦ No need to write our own sync protocol
  4. ▷ Can use CRA → Service worker ready ▷ Reactive

    Rendering Pouch+Couch? React/RN Concerns
  5. ▷ Can use CRA → Service worker ready ▷ Reactive

    Rendering Pouch+Couch? ◦ Integrate reactive rendering with Pouch(+Couch) React/RN Concerns
  6. ▷ Can use CRA → Service worker ready ▷ Reactive

    Rendering Pouch+Couch? ◦ Integrate reactive rendering with Pouch(+Couch) ◦ State Container? React/RN Concerns
  7. ▷ Can use CRA → Service worker ready ▷ Reactive

    Rendering Pouch+Couch? ◦ State Container ▷ ReactNative Support? ◦ Pouch storage used IndexedDB/WebSQL, how RN? React/RN Concerns
  8. Basic Features Need to implement selective filtering Lesson Learned Pouch

    Max Connection Browser limitation up to 6 simultaneous connections
  9. ▷ Shelf (https://sid.studio/shelf/) ◦ Using React Hooks ▷ https://github.com/amark/gun (GunDB)

    ▷ Local First Software (Martin Kleppmann) ◦ https://www.inkandswitch.com/local-first.html Others Works
  10. Thanks! Offline First? Let’s grab a coffee But yeah you

    can ping me ONLINE at: @ans4175 [email protected] This template is free to use under Creative Commons Attribution license. If you use the graphic assets (photos, icons and typographies) provided with this presentation you must keep the Credits slide.