When using RabbitMQ and its channel model, how often am I supposed to close channels?
For example is it best practise to
- Close the channel at the end of the method it got opened?
- Reuse the channel globally between different methods?
On a sidenote: I am using RabbitMQ in Clojure through the Langohr Library and thus prefer to not have any global state, which prompts me to declare channels at the start of relevant messages and then to close them at the end again. I am just not sure if this is intended.