Skip to content
shamimstack

P·01 — Lead engineer

Architecture

Journal, projections, queue ownership and the invariants that keep the books balanced.

Documentation for Atlas Ledger 1 min read

Write path

A transfer is validated, converted to a pair of journal entries, and committed in one database transaction. The external reference is unique, so a retried request returns the original transfer instead of writing a second one.

Read model

Projections are ordinary tables with a checkpoint per stream. Each projection handler receives ordered journal events, applies them, and persists its checkpoint in the same transaction as the change. Replaying a stream from zero is therefore safe and repeatable.

Queues

Projection work runs on database-backed queues. The queue is a delivery mechanism, not the source of truth: a lost job is replayed from the journal, and duplicate delivery is absorbed by the handler's checkpoint.

Invariants

  • Debits equal credits for every transfer.
  • A projection never reads the current journal; it folds events in order.
  • No handler writes outside its own projection and checkpoint.
  • Balance reads are served from projections, never recomputed per request.
Enter your credentials to continue to your workspace.
Email address
Remember me
Don't have an account? Sign up
Enter your details below to create your account
Name
Email address
Password
Confirm password
Already have an account? Log in
Enter your email and we will send you a reset link
Email address
Or, return to log in