[erlang-questions] handle_info stopped crashing if no match?

Fred Hebert mononcqc@REDACTED
Sun Feb 25 03:29:44 CET 2018


On 02/25, Max Lapshin wrote:
>
>You should not ever receive unknown messages in your system. Once you start
>adding silent catch-all clause in your system, it will be hard
>to stop and hard to find where error begins and ends.

The one exception that comes to mind is a system where each worker is 
part of a broader distributed system where unknown notifications may be 
coming through from other nodes where a code upgrade has taken place 
before the current one.

In such cases, an approach based on logging & keeping on going may prove 
essential to the stability of the overall system.

Regards,
Fred.



More information about the erlang-questions mailing list