Consumer idempotency
Last updated
Last updated
The most straightforward way to guarantee consumer idempotency is to use unique index.
There are two ways to implement unique index depends on whether local transaction is available.
Unique index because source of truth is always the first option.
Then update bloomfilter or redis.
If consistent hashing is used, then the distributed bloomfilter could be moved to local machines, this will help reduce hash collision and performance (reduce network traffic).