---
title: "Eventually Consistent: How Do We Know the Systems Eventually Agree?"
description: "Eventually consistent event-driven order systems need a reconciliation job that starts from the authoritative order store, not from received messages, so orders whose events were lost (like a fraud-hold release that never reached SAP) still surface."
url: "https://swe.quest/articles/eventually-consistent-how-do-we-know-the-systems-eventually-agree-446e4800453d4b35"
canonical: "https://devblog.kogan.com/blog/eventually-consistent-how-do-we-know-the-systems-eventually-agree"
source: "Kogan.com Dev Blog"
published: "2026-11-09"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 9
tags: ["event-driven","consistency","resilience","postgres","ecommerce"]
---

# Eventually Consistent: How Do We Know the Systems Eventually Agree?

A post on [Kogan.com Dev Blog](https://swe.quest/sources/kogan.md), published 2026-11-09, 9 min read, Deep dive. Original: [https://devblog.kogan.com/blog/eventually-consistent-how-do-we-know-the-systems-eventually-agree](https://devblog.kogan.com/blog/eventually-consistent-how-do-we-know-the-systems-eventually-agree)

## Summary

Eventually consistent event-driven order systems need a reconciliation job that starts from the authoritative order store, not from received messages, so orders whose events were lost (like a fraud-hold release that never reached SAP) still surface. Define "eventually" as a concrete deadline with documented exceptions, query overdue orders cheaply via a PostgreSQL partial index on the waiting status, confirm state with the owning service before repairing, and repair through normal paths reusing the original idempotency key or via compensating actions. Track open cases persistently, process them in small batches, and measure overdue counts, oldest-unresolved age and whether the job actually ran rather than relying on CPU or queue metrics.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- event-driven architecture ([easy posts on Event-driven architecture](https://swe.quest/tags/event-driven.md?difficulty=easy))
- idempotency keys
- eventual consistency ([easy posts on Consistency models](https://swe.quest/tags/consistency.md?difficulty=easy))
- SQL indexes ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

reconciliation, PostgreSQL partial index, Amazon EventBridge, CQRS, compensating transaction, SAP, idempotency

## Related posts

- [The Write Last, Read First Rule](https://swe.quest/articles/the-write-last-read-first-rule-6fa0042a5ce38b5c.md): TigerBeetle · 2025-11-06 · Medium · 8 min read · Consistency models, Distributed systems, Payments & fintech, Resilience, TypeScript
  When an application spans two stores without a shared transaction boundary, such as Postgres for account master data and TigerBeetle for the ledger, one must be designated the system of record and the other the system of reference.
- [Building Workflows, Part 2 – the executor and evaluation](https://swe.quest/articles/building-workflows-part-2-the-executor-and-evaluation-b966efc6ca5866f8.md): incident.io · 2022-09-14 · Medium · 19 min read · PostgreSQL, Scheduling, Queues & messaging, System design, Go
  incident.io's workflow executor listens for trigger events, evaluates workflow conditions against a scope, and creates a workflow run before executing steps.
- [Incident Review: Pageserver outage in us-east-1](https://swe.quest/articles/incident-review-pageserver-outage-in-us-east-1-0597b32138c02b21.md): Neon · 2024-08-21 · Medium · 6 min read · Incidents & postmortems, Resilience, Distributed databases, PostgreSQL, Scheduling
  A sudden EC2 instance failure took down a Neon pageserver in us-east-1, leaving about 0.4% of projects unable to read uncached pages for 30 minutes to 2 hours.
- [Partition Finalization in Pinterest’s Next-Generation DB Ingestion Framework](https://swe.quest/articles/partition-finalization-in-pinterest-s-next-generation-db-ingestion-framework-f8587191e2b11efa.md): Pinterest Engineering · 2026-09-25 · Hard · 11 min read · Stream processing, Data pipelines, Event-driven architecture, Time & clocks
  Pinterest's streaming CDC ingestion (Kafka, Flink, Iceberg, Spark) lost the implicit "partition complete" signal that batch loads provided, so it now derives a partition finalization watermark from event time.
- [Handling Time-Variant DAGs with Constraints in Postgres](https://swe.quest/articles/handling-time-variant-dags-with-constraints-in-postgres-1fba8d43f4c83cc3.md): Neon · 2025-10-20 · Medium · 7 min read · PostgreSQL, SQL, Data structures, Databases
  Vehicle attachments in a fleet (trucks pulling trailers) are modeled as a time-variant DAG in a single Postgres table of edges with validity intervals and a source-authority priority.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
