Integration / RabbitMQ Interview Questions
Describe how RabbitMQ ensures message durability?
Message durability in RabbitMQ depends on three things working together, and missing any one of them breaks the guarantee.
- The queue must be declared
durableso its definition survives a broker restart. - The message must be published with
delivery_mode = 2(persistent), so its body is written to disk, not just kept in memory. - The producer should use publisher confirms so it only considers the message safe once the broker has actually confirmed the write.
For higher availability than a single node's disk can offer, quorum queues replicate the message to a majority of nodes via the Raft protocol before acknowledging it, protecting against the loss of any single node.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
