Let’s say we have MQ based Event Consumer and Producer. The Producer applications has to emit events in async mode whenever a call comes in for a type of request and respective responses (when a request for a particular business function comes in and response to its comes from the backend).
What is the recommended approach to communicating between Consumer and Producer, i.e.. Should the communication happen on separate queues ( request event Q for requests and response event Q for responses) or single queue (optionally – with intelligence built in to the payload that says what type of message it is ?)
I’m of the opinion that the event emitter (producer) should simply emit events (requests and responses) to a single queue async’ly and let the event processor (consumer) process what type of events it is (whether a request or response).
Any thoughts. ?