Relative Content

Tag Archive for elixir

How do I use a registry within a supervision tree with child_spec name: {:via} syntax for other supervisor children?

I am learning elixir & I am struggling a bit with how to set up separate processes for data access & API routing while allowing them to communicate in a way that allows either process to fail while still being able to reconnect / be connected to via the new child process upon the next request. It seems that the Registry module is the answer for where to store this information, but I am struggling to get it to work the way I expect just from reading the hexdocs & am finding the {:via, …} syntax is not setting my registry key.

how generating executable in elixir

Even with all the correct imports and the mix file configured correctly, I can’t generate the executable and it gives the following error: