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

Optimistic UI and live updates with Logux & Ruby

Optimistic UI and live updates with Logux & Ruby

Logux is the new way of synchronisation between client and server, which provides many features for modern web out of the box: live updates, optimistic UI, Offline-first.

Introduce logux_rails Ruby gem for easy integration Logux into existing Ruby/Rails backend.

Salahutdinov Dmitry

March 23, 2019
Tweet

More Decks by Salahutdinov Dmitry

Other Decks in Programming

Transcript

  1. Story By Denys Mishunov Original photo I know how pubs

    work Why do I have to loose time? Be optimistic: 11
  2. Why Optimistic UI matters? Kind of activity correlates with the

    phycological perception Will pay for a book Will pay for renting a bike Will not ❌ !12
  3. !14

  4. Action & Meta Event representation and it’s metadata Channel of

    the Project 9 Event type Custom event params Event ID !49
  5. Sending back to client Producing event on backend and make

    Logux to send it to specific user/channel !55
  6. •Built-in optimistic UI will improve UI performance.
 •Built-in live updates

    allow to build collaborative tools (like Google Docs).
 •Built-in offline-first will improve UX on unstable connection.
 It is useful from next billion users to New York subway.
 •Compatible with modern stack: Redux API, works with any back-end language and any database. Logux !65