Why Exactly-Once Delivery Is Non-Negotiable for Trading Alerts
2026-02-25
Most messaging systems offer one of two guarantees: at-most-once (messages may be lost but never duplicated) or at-least-once (messages may be duplicated but never lost). For general-purpose applications, at-least-once is usually good enough—duplicates are annoying but rarely dangerous.
In trading, duplicates can be catastrophic. A duplicated fill notification might trigger a hedging algorithm to double its position. A repeated margin call might cause an operations team to wire funds twice. A triplicated system-down alert during a crisis floods the very channel that responders need to coordinate through.
ATT's delivery engine achieves exactly-once semantics through a combination of idempotency keys, persistent deduplication windows, and a two-phase commit protocol between the message store and the delivery transport. Every message is assigned a globally unique, content-addressed identifier at ingestion. Before delivering to any endpoint, the engine checks the identifier against a per-recipient deduplication index that spans a configurable time window—typically 24 hours.
The cost of this guarantee is a small amount of additional storage and a single index lookup per delivery, which adds roughly 15 microseconds to the critical path. In our experience, every client who has evaluated this trade-off has concluded that 15 microseconds is a trivial price for the confidence that every alert arrives exactly once.