Your application is just a bunch of processes… Choose a process that cares about the messages sent by Redis and use it to subscribe.
I would not use a receive block. Probably I would use handle_info in a registered GenServer.
Your application is just a bunch of processes… Choose a process that cares about the messages sent by Redis and use it to subscribe.
I would not use a receive block. Probably I would use handle_info in a registered GenServer.