Ericsson / ered

An Erlang client library for Valkey/Redis Cluster
MIT License
13 stars 7 forks source link

Add supervision tree #1

Closed zuiderkwast closed 5 months ago

zuiderkwast commented 2 years ago

In general, processes should belong to a supervision tree. At least most of them.

This is considered good OTP style. (Hypothetically, if trap exit is later added to a process started using spawn_link, the process is not killed by the link. If it's instead managed by a supervisor, it is brutally killed even if it's trapping exits. One should not re-invent supervisors.)