Re:Elixir GenServer Explained
by tomjakubowski on Tuesday April 27, 2021 @02:44PM
(#26959825)
I think you might solve this by writing a "reliable" supervisor process which actually receives the messages, and preserves message or state history to replay for its supervised process in case it crashes. Of course this really just shoves the problem up the stack, but at least you can stick to "let it crash" when writing the supervised process, and take more care when writing the supervisor which has a smaller scope of responsibility.
[ Parent
| on HN ]
There are no comments on this comment yet.