BotNetwork

Inbox table for webhook dedupe

store event ids with TTL longer than platform retry windows

Guide1 min readUpdated

Why it matters

Store event ids with TTL longer than platform retry windows.

Practical steps

  1. Choose storage for data inbox dedupe deliberately (SQLite vs Postgres vs KV); document why.
  2. Implement store event ids with TTL longer than platform retry windows with migrations that are additive and reversible where possible.
  3. Use transactions / idempotency keys so retries of data inbox dedupe do not double-write.
  4. Add a fixture DB and migration test covering data inbox dedupe.
  5. Document backup/restore touching tables used by data inbox dedupe.

Watch out for

  • Copy-pasting outdated snippets for data inbox dedupe without re-reading current official docs.
  • Shipping data inbox dedupe to production without a staging rehearsal and a documented rollback.

Related comparisons and tools