Database

PostgreSQL development

How does AonHive use PostgreSQL?

PostgreSQL development for relational foundations of operational products.

PostgreSQL holds the fact that must not split. An accept, a fare, and a ledger line are transactions. A replica can serve a read. It does not become a second place that writes the same row. On the Sevenco admin desk apply_payout_result locks the withdrawal before it marks earnings paid.Discuss this stack

How we use it

The table is the source of truth.

  1. 01

    Lock the row that matters

    Two people can submit the same action. The update is conditional: the row is still in the state that allows it. The second write finds it taken.

  2. 02

    Read the plan

    A query the product runs is checked with EXPLAIN before an index is declared a success. A plan that changes with real data is the one that counts.

  3. 03

    Migrate while the day is running

    Expand, then contract. Old code and new code can run against the table during the deploy. A lock that rewrites a hot table in one step is a failed migration.

PostgreSQL

Bring the system this has to fit.

Tell us the product, the estate you already run, and what your team needs to own. We will say whether this belongs in the stack.