A production-grade Nerves System
summary
A production Office Window System uses Pi Zeros relaying websocket-based streams to a cloud Phoenix server and a separate cowboy image service, streaming binary JPEG frames to browsers. Testing runs on host via fake-camera adapters and behavior-based modules so unit tests avoid hardware. Reliability comes from OTP supervision, a timeout watchdog to restart flaky WebSocket clients, a network killer that cycles Wi‑Fi to recover a buggy stack, and a heart-based reboot watchdog plus statsd/datadog and vmstats monitoring; devices stay up except when unplugged.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:15An office window for remotes
- 2:08Architecture
- 2:42What's good for working with Elixir and Websockets?
- 2:52Server binary websockets
- 11:45Does the code do what I think it does?
- 13:45Faking hardware
- 27:40Monitor on server
- 28:34vmstats config
- 31:49Summary








