Skip to content
0:00 / 0:00

#elixir#phoenixliveview#phoenixpubsub

ElixirConf 2019 - Beyond LiveView: Building Real-Time... - Sophie DeBenedetto

ElixirConf

13K subscribers • 28 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Sophie DeBenedetto
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

12K views7 years ago2 recommendations

Web developmentDistributed systemsElixir and ErlangVue, Svelte, Angular and othersHTTP, REST and GraphQL

Sophie DeBenedetto demonstrates how to build real-time collaborative features using Phoenix LiveView, PubSub, and Presence.

ElixirConf 2019 - Beyond LiveView: Building Real-Time Features with Phoenix LiveView, PubSub and Presence - Sophie DeBenedetto LiveView's reliance on server-rendered HTML and leveraging of bi-directional communication over WebSockets means that we can build resilient and highly scalable real-time features almost entirely in Elixir––without writing any of our own JavaScript. It's no wonder that developers are starting to flock to LiveView to support things like user notifications, form validations, application monitoring, autocomplete, and more. However, as we use LiveView for more and more real-time features, we will naturally reach for the other real-time functionality that Phoenix has promised us: user tracking and message broadcasting. What happens, for example, when our real-time markdown editor needs to support collaborative editing à la Google Docs? Do we eschew LiveView and return to Phoenix Channels and Presence? Do we incorporate LiveView into a page that is already backed by these other technologies? Nope! Thanks to the flexibility of Phoenix's PubSub and Presence libraries and their reliance on OTP principles, we can seamlessly incorporate these technologies directly into our live views. In this talk, we'll learn how to use LiveView together with Phoenix PubSub and Presence to support real-time message broadcasting and user activity tracking across a set of clients.

Why it's here

2 people recommend this

What people say. Recommended for learning how to build real-time features like chat or collaborative editors in Elixir.

u/SpoonCeticin r/elixir • Recommends

On “Is Elixir worth learning for a chat app?”

Go check this video Beyond LiveView: Building Real-Time... , you might find useful tips there.

u/dnauticsin r/elixir • Recommends

On “Elixir seems cool. How would I go about learning it as my first ever functional programming language?”

…k for software documentation). If you're looking for a place to start, and have some $ to drop, I strongly recommend "programming phoenix" by geoffrey lessel with is fantastic soup-to-nuts on how to build a wep app. Since you have some webdev experience If you want something fun to pique your interest, I recommend playing with Phoenix LiveView ([video 1. install elixir: https://elixir-lang.org/install.html 2. follow the getting started in phoenix guides: https://hexdocs.pm/phoenix/installation.html#content 3. follow these instructions line by line: https://hexdocs.pm/phoenix\_live\_view/installation.html#content Not directly related to the above, I also recommend watching this video…