Recording not yet published

Talk 40:00

Phoenix sync with ElectricSQL

At ElixirConf US in September 2024, José gave a keynote outlining his vision for Phoenix sync. This talk introduces our work implementing Phoenix sync with ElectricSQL, an open source sync engine developed in Elixir that we've adapted under his guidance to realise José's original vision.

The talk re-caps the design objectives of local-first sync into the front-end directly from Phoenix and Ecto. It talks through our implementation approach with Electric and shows you how you can use the new Electric.Phoenix library to add sync to your Phoenix applications.

This includes syncing "shapes" based on Ecto queries, for direct sync into the front-end. And it includes syncing into the LiveView client using Phoenix.Streams via a new electric_stream/2 function.