Integration / Apache Pulsar Interview questions
How does Pulsar achieve message deduplication?
Producer-side deduplication relies on each producer being assigned a unique producer name and tagging every message with a monotonically increasing sequence ID; the broker tracks the highest sequence ID it has durably stored per producer.
If a producer retries a publish (say, after a network timeout where it's unsure whether the original request succeeded), the broker recognizes the sequence ID as already seen and discards the duplicate rather than storing it again, while still acknowledging success back to the producer.
This must be explicitly enabled per namespace or topic since it adds tracking overhead, and it protects specifically against producer-retry duplicates, not against an application publishing the same logical event twice under different sequence IDs.
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...
