I have a bit of a gap in my understanding of Elixir and workers.
To give a bit of context, I am collecting messages from an AMQP queue with a number of consumer GenServers. The number of GenServers is determined from my configuration file. When each of the servers consumes a message, I would like it to do some work on it and, in some cases, tell another process to submit the message to a different AMQP queue.
My question is, how do I have each of the consumer processes call the same send message function on a module, and have that module handle the distribution of the request between a number of publisher workers?
I feel like this is something that should be very easy to do with Elixir but I’m just struggling to piece it all together.