Takeaway
Idempotency keys belong in Redis/DB shared by all replicas.
Why
Two pods will otherwise process the same update_id.
Do this
- Key by platform + event id.
- Set a TTL longer than the platform retry window.
- Make handlers safe to replay.
BotNetwork
In-memory dedupe fails as soon as you add a second replica.
Idempotency keys belong in Redis/DB shared by all replicas.
Two pods will otherwise process the same update_id.