Chapter 4. Performance trade-offs in publishing

 

This chapter covers

  • Message delivery guarantees in RabbitMQ
  • Publisher vs. performance trade-offs

Message publishing is one of the core activities in a messaging-based architecture, and there are many facets to message publishing in RabbitMQ. Many of the message-publishing options available to your applications can have a large impact on your application’s performance and reliability. Although any message broker is measured by its performance and throughput, reliable message delivery is of paramount concern. Imagine what would happen if there were no guarantees when you used an ATM to deposit money into your bank account. You’d deposit money with no certainty that your account balance would increase. This would inevitably be a problem for you and for your bank. Even in non-mission-critical applications, messages are published for an intended purpose, and silently dropping them could easily create problems.

4.1. Balancing delivery speed with guaranteed delivery

4.2. When RabbitMQ pushes back

4.3. Summary