4 ms·
You shouldn't use actor systems as a code organization pattern, only in places where async is necessary and in those cases you're going to have to debug race co
by dnautics 6y ago
You shouldn't use actor systems as a code organization pattern, only in places where async is necessary and in those cases you're going to have to debug race conditions anyways. When that happens you will want an actor system because it will make it easier to understand the data flowing through your system, and especially, effortlessly (0 loc) clean up dangling resources from error conditions and prevent leaks. Moreover Elixir provides you fantastic tools to drive unit and integration testing around your async systems.