Hi team!
Beginner here.
I want to use RabbitMQ for an event based architecture service I am developing. My question may sound silly, please bear with me.
Lets call my service A.
So, some other service (service B) would send a cloud event to my service. My service would then act as a publisher and put it in a queue. This queue is purely for my service, with persistence. I will then consume the message in the queue at my own pace
I am worried about what will happen when my service is down when service B sends the cloud event. We can assume that my queue will be up, but not my service.
In such a case, service B would not be able to send the event itself, as A is down.
One solution I thought off was B can post directly to the exchange instead of to A. This way, even if A goes down, it can process the messages whenever it is up.
Is POSTing directly to the exchange a recommended way for production systems?
I discovered a way in
Stack Overflow, but having second thoughts as I read somewhere that it is used mostly for debugging.