Software Architecture Patterns, Antipatterns, and Pitfalls
by Mark Richards, Neal Ford, Raju Gandhi
Chapter 14. Multi-Broker Pattern
Standard messaging, using queues or topics, works well for message throughput less than around 4,000 persisted messages per second. After that, architects must either use nonpersistent messages or streaming brokers (such as Kafka) to achieve higher throughput rates. Fortunately, there’s another option to increase message throughput: the Multi-Broker pattern.
Table 14-1 summarizes the metadata for the Multi-Broker pattern.
| CATEGORY | METADATA |
|---|---|
CONTEXT: |
Event-Driven Architecture, Message-Based Architectures, Microservices |
IMPROVED: |
Elasticity, Scalability, Responsiveness, Throughput |
DEGRADED: |
Cost, Message Order, Simplicity |
How Can I Improve Message Throughput and Capacity?
Most message brokers can handle a message throughput rate of 4,000 messages per second when using persisted messages. However, when the throughput rate exceeds this capacity, messages can back up, resulting in a loss of responsiveness, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access