We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Methods of State Management in Elixir and BEAM
111
clicks
Source: youtube.com
In his ElixirConf 2023 presentation, Isaac Yonemoto explores the topic of state management in Elixir and the BEAM VM, which is a challenging aspect of programming in functional languages where state is often deemed an evil necessity. Yonemoto presented 11 different ways to handle state in the BEAM, emphasizing that while shared state can introduce risks in distributed and concurrent systems, understanding how to work with state can help developers avoid potential pitfalls ('foot guns'). The methods covered include environment variables, ports, sockets, files, BEAM processes, process dictionary, NIFs (Native Implemented Functions), ETS (Erlang Term Storage), atomics, module attributes, and the persistent term feature. Yonemoto ranked each method based on its usability and potential risks and provided various code examples to help illustrate the pros and cons of each approach. His talk aimed to increase understanding and provoke thought, offering something for both beginners and experts.
Related posts
© HashMerge 2024