When I publish a message to RabbitMQ, is the message sent to exchange with a specific routing key, when the consumer queue does not yet exist? , will the message be lost?
Yes, RabbitMQ will discard the message.
But, you care about your data, so you use Publisher Confirmation a>, right? If so, RabbitMQ will send back a message indicating that your message was not routed.
You can also specify an alternate exchange to capture these messages.
The above is the detailed content of Will a RabbitMQ message be lost if it is published to an exchange with a specific routing key when the consumer queue does not yet exist?. For more information, please follow other related articles on the PHP Chinese website!