Extending Redux in the Server Side
summary
Extends the Redux pattern onto the server by treating server state as part of the store and wiring events over WebSockets/Socket.IO into actions and reducers; implements a single‑player tic‑tac‑toe with Elixir/Phoenix using GenServer workers and Erlang/OTP supervisors, pushing state slices back to clients. Demonstrates event sourcing/read‑models option, measures about 1 million processes (≈3 KB each → ~3 GB) created in ~48 seconds, and shows the approach works for real‑time multiuser state with a single source of truth.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:37What is Redux
- 1:32Three main points
- 2:23Map and territory
- 5:30Chat Tutorial
- 8:47Case Study
- 10:22Prototyping
- 13:41Exception
- 25:48Gen Servers
- 29:53Testing
related talks
27mMaking Games With React and Redux
21mLive-coding demo
35mGoing fullstack React(ive)
27mScalable distributed systems from grounds up in Elixir
07mWhy React is Eating the World
25mTaming Client-Server Communication
28mAsynchronous & Offline Magic Tricks on React Native
33mFull Stack Flux (was" The future of JavaScript layout systems")
