AlgoViz

Multi-system synchronization

medium 30 min

When one change must reach a database, a broker and other services, two separate writes will one day disagree.

Where it shows up

The same pattern appears across everyday software.

  • Debezium outbox event router

    Turns inserted outbox rows into events. By default it routes by the aggregatetype column, ignores deletes and does not allow updates to the rows.

  • AWS Prescriptive Guidance

    Describes the transactional outbox as the answer to dual writes, and recommends idempotent consumers because the relay may send duplicates.

  • Stripe webhooks

    The documentation says events may arrive more than once and are not guaranteed to arrive in order, and recommends logging processed event ids. In live mode delivery is retried for up to three days.

  • Stripe idempotent requests

    A repeated API v1 request with the same key returns the first result. Keys may be removed once they are at least 24 hours old.

  • Amazon SQS FIFO

    Removes duplicates by a deduplication id within a window of 5 minutes. A later repeat counts as new, so consumers still need their own check.

  • Amazon DynamoDB Streams

    Each change appears exactly once in the stream, per item in order, and is kept for 24 hours.

  • Apache Kafka

    Events with the same key go to the same partition and are read in order. The design documentation explains why an external system needs its output coordinated with the consumer's position.