Elixir GenServer as a Single-Writer Gate for External Resources
Use a supervised Elixir GenServer to serialize writes to a mutable external resource, with timeouts, input validation, and operational checks.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use a supervised Elixir GenServer to serialize writes to a mutable external resource, with timeouts, input validation, and operational checks.
Decide between Twilio Verify and a custom OTP on Programmable Messaging for phone-number verification, with cost, fraud, and implementation trade-offs.
Learn how to choose between GenServer.call, cast, and handle_info to build responsive stateful services in Elixir without blocking your event loop.
A diagnostic guide for intermittent GenServer.call timeouts in Elixir, covering caller timeouts, mailbox backlog, blocked callbacks, and escalation criteria.
Your gen_server serializes requests by design. Learn when that guarantee helps and when to refactor to async or multi-process patterns for throughput.
Learn how OTP supervision trees automatically restart crashed Erlang processes, using a chat‑server example to show design, a worked test, trade‑offs, and next steps.
Use one_for_one for independent stateful gen_servers, pair it with caller timeouts, and verify fresh state after a kill.
A technical guide on choosing between ETS and Mnesia for Erlang state management, comparing performance, durability, and distribution with a hybrid implementation example.
Upgrade a running Erlang OTP node to a newer release without downtime using release_handler. Follow the step‑by‑step guide to prepare, execute, verify, and roll back if needed.