Skip to main content

Re: Idempotent Producers and Exactly Once Consumers

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIzBAEBCgAdFiEE8osu2CcCCF5douGQu8PBaGu5w1EFAl1qBbQACgkQu8PBaGu5
w1GEqA//V4RPxW+3kWPDLFBFpZknXbjleNXmOxJs1Qh+/yxRmMeJMHcO5SYCSsAa
Seans1WEtCQAgiiWbC3sXGfrQLmQ30UxSYq7gK7RwEZCRlHC2axIP/FVk/DMGup9
WDzeix/DrQMvuTFmhjHU/aweRhTtZoqp5JWYqTMFeW78AJOINpfnIBxBl9hkHcon
zHmc4CZH5qfzCP2VXmbztK7n/jccX2qB5mIQAHe2vdy0U2ZygiXd09mTZKxulCyQ
FJyUjODmZrHpRvLgI0eFtw9sLmAfcurS8ywWBNL5wdr5DtnbQlnHVxJoaennPcq3
ZWFj+4api3ljABXhN9jZh7aV6XbYnHOcmD0CBnENYw6DgDH5f9HaS8CjjjEggIi0
F0MAMlP5EzduMjwEahAi1jSPoe9RVcTziIeSp7b1cSqj1d34fWR+uTRryhurhWc7
m4cZyusp1HjcDSqnEq3QGckRakN7yg16snNHLBMP50BNRynDYXxhrH4vk+89FhcU
WgArlnrcl9L6GPcx08s3tE5kNgaweJz+e00O2YgjfH1ohKlopbi0VfDHaIx4InQ8
MFysnDT/clo6IseIIpGZi5H1BAJT6LbiVMgtQB5Czpx289XPtU1NXdbhjDKn83sC
IFCaZ+p1xZ1oRDzMGKrriEkMmJqDaSsgUWoEH8OvYQv7ugCgn34=
=dKRp
-----END PGP SIGNATURE-----
Exactly-once on the producer will only ensure that no duplicate writes
happen. If a downstream consumer fails, you might still read message
multiple times for all cases (ie, without idempotence, with idempotence
enabled, or if you use transactions).

Note, that exactly-once is designed for a read-process-write pattern,
but not for a write-read pattern.

-Matthias



On 8/30/19 1:00 PM, Peter Groesbeck wrote:
> For a producer that emits messages to a single topic (i.e. no single
> message is sent to multiple topics), will enabling idempotency but not
> transactions provide exactly once guarantees for downstream consumers of
> said topic?
>
> Ordering is not important I just want to make sure consumers only consumer
> messages sent once.
>

Comments