Hi,
If a process crashes and is restarted by the supervisor, what happens to the messages that were sent to the process after it crashed and before it restarted? Are they collected and stored somewhere and are they sent to the process when it is ready to receive?
Thanks,
Yash
They are lost. New instance of this process will have new Pid. There are no built-in store-and-forward features in Erlang, but they can be implemented by a proxy process. But I never had a need to do that in all of my projects. What is your use case?
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
> "Sending a message to a pid never fails, even if the pidThe documentation could be clearer. It means never causes an error for the sender.
> identifies a non-existing process."
>