Bird
0
0

How can you combine batch publishing with message priority to optimize throughput and delivery order?

hard📝 Workflow Q9 of 15
RabbitMQ - Performance Tuning
How can you combine batch publishing with message priority to optimize throughput and delivery order?
ADisable publisher confirms to speed up priority messages
BPublish all messages in one batch ignoring priority, then sort in consumer
CUse transactions for each priority message individually
DBatch publish messages grouped by priority levels, then confirm each batch
Step-by-Step Solution
Solution:
  1. Step 1: Understand priority and batch publishing

    Grouping messages by priority allows batch sending without mixing priorities.
  2. Step 2: Confirm batches per priority

    Confirming each priority batch ensures delivery and maintains order within priority groups.
  3. Final Answer:

    Batch publish messages grouped by priority levels, then confirm each batch -> Option D
  4. Quick Check:

    Group by priority, batch confirm per group [OK]
Quick Trick: Batch by priority groups, confirm each batch separately [OK]
Common Mistakes:
MISTAKES
  • Ignoring priority when batching
  • Confirming each message individually
  • Disabling confirms risking message loss

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes