Junior — Middle
Что произойдет, если отправить сообщение в Exchange в RabbitMQ, который не был создан?
sobes.tech AI
Answer from AI
If you try to send a message to a non-existent Exchange in RabbitMQ, by default, an error will occur, and the message will not be delivered. Depending on the client and server settings, an exception (for example, ChannelException in C#) may be thrown, indicating that the Exchange was not found.
If message confirmation (publisher confirms) is enabled, the sender will receive a negative acknowledgment.
It is important to ensure that the Exchange is created and accessible before sending messages to avoid data loss.