Reducing Database Load with Elixir ETS for Transient State
Learn how to use Elixir ETS (Erlang Term Storage) to reduce database load by caching transient state in-memory with O(1) lookup performance.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use Elixir ETS (Erlang Term Storage) to reduce database load by caching transient state in-memory with O(1) lookup performance.
A diagnostic guide to Elixir memory bloat: distinguish process growth from legitimately large data, find the hog processes, and apply targeted fixes for state, binaries, ETS, and recursion.
Learn how to implement zero-downtime updates in Erlang using hot code loading, focusing on fully qualified calls and state compatibility.
Stop blocking your Elixir processes. Learn when to use GenServer.call versus GenServer.cast to balance system responsiveness with state consistency.
A diagnostic guide for identifying and resolving process memory leaks in Elixir, focusing on heap growth, mailbox overflows, and state management using ETS.
Stop using try-catch for everything. Learn how Erlang's 'Let it Crash' philosophy and supervision trees create resilient systems by isolating failures and automating recovery.
Learn how to build resilient concurrent systems using Gleam's static type system and the BEAM's Actor model, focusing on supervisor patterns and data boundaries.
Gleam provides a strong, static type system that compiles to Erlang, allowing developers to leverage the BEAM ecosystem. While Gleam ensures exhaustiveness and type safety within its own modules, interacting with existing Erlang libraries introduces dynamic boundaries where static guarantees are not natively maintained. When calling untyped Erlang functions,
Build Profile Configuration Gleam 1.0+ utilizes dev and prod build profiles within the gleam.toml configuration. The dev profile is designed to preserve debug information and disable specific optimizations to facilitate local development and debugging. Production Optimization Constraints When switching to the prod profile, the compiler enables BEAM optimizat