Could someone with Pika experience give me a quick yes/no response as to whether the following functionality is possible, or whether my thinking that it is indicates a lack of conceptual understanding of Pika.
My desired functionality:
Python service (single threaded script) has one connection to my RabbitMQ broker using the SelectConnection adapter.
That connection has two channels.
Using one channel, A, the service declares a queue and binds to some exchange E1. The other channel, B, is used to declares some other exchange, E2.
The service consumes messages from the queue via A. It does some small processing of those messages, [possibly carries out CRUD operates through its connection to a MongoDB instance,] then publishes a message to exchange E2 via B.
I have read the Pika docs thoroughly, and have not found enough information to understand whether this is doable.
To put it simply - can a single python script both publish and consume via one selectconnection adapter connection?