Share connection between processes using genserver

I’m new to elixir, how could I open a rabbitmq connection alone and create different processes that are consumers and that would use that unique connection using GenServer

The answer on this question massively depends on the AMQP library you use. But in general I do not see any problems in passing the conn to the workers start function.