Search⌘ K

LiveView and Phoenix Messaging Tools

Explore how Phoenix LiveView works with messaging tools like PubSub and Presence to manage real-time updates and user tracking on distributed dashboards. Learn to synchronize data updates and build components that reflect live state changes in your web application.

In the last few lessons, you explored some of the capabilities that make Phoenix LiveView the perfect fit for single-page apps like dashboards. Components help organize pages into layers, and the LiveView workflow does quick work of adding interactive controls.

Phoenix messaging tools

We’re more than halfway into this course, and you may be coming to appreciate the LiveView programming model. Let’s revisit the LiveView flow figure that was first shown in “The LiveView Lifecycle” lesson:

Just like this figure shows, we’ve expressed each view with a data model that you stored in the socket. Our code changed the data with reducers tied to event handlers, and we built a ...