Learn Elixir by Building a Real Time CLI Chat App (Part 5)
summary
Builds a fully distributed CLI chat app using Elixir core libraries, wiring GenServer callbacks (handle_call/handle_cast) to a client API, using supervision trees for restarts, and a simple random nonce deduping scheme to prevent infinite fanout. Keeps messages ephemeral (prints only), stores peers in a MapSet, forwards DMs and broadcasts to peers, and demonstrates working local multi-terminal messaging; concurrency, fault tolerance, and where to add persistence or slash commands are shown.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:13A LITTLE
- 6:49SUPERVISOR SETUP
- 9:52EXERCISE
- 10:40FUNCTIONALITY
- 11:10FINAL CLIENT INTERFACE
- 12:11INTERNALS
- 14:02BROAD STRATEGY
- 14:57FLOR
- 16:32MODULE
- 39:48NEXT STEPS
related talks
34mRubyists, have a sip of Elixir!
53mBuilding Performant Backends with Elixir
42mIntroduction to Elixir for Rubyists
23mElixir: Happy Developers and Scaleable Backends
38mDay 1 Lightning Talks
36mIntroduction to Concurrency in Ruby
28mRuby + Elixir: Polyglotting FTW!
39mElixir: Power of Erlang, Joy of Ruby
