BotNetwork

One shared idempotency store per environment

In-memory dedupe fails as soon as you add a second replica.

Published 1 min read

Takeaway

Idempotency keys belong in Redis/DB shared by all replicas.

Why

Two pods will otherwise process the same update_id.

Do this

  1. Key by platform + event id.
  2. Set a TTL longer than the platform retry window.
  3. Make handlers safe to replay.