ANTHERASystem apertureDesign edition 0.1 · fe342eePDF

§ SYSTEM DESIGN / Design edition 0.1

ANTHERA
DATA PLANE

Market data as an owned system.
One trace. One truth. Bounded at every edge.

End-to-end market-data traceDBN passes through DataEngine, Nautilus, a bounded projection, QuestDB, the gateway, and the chart. The highlight marks the chapter focus.DBNData Eng.NautilusProjectQuestDBGatewayStreamChart
Fig. A — The stable reading trace. Runtime topology and narrative order are related, not identical.
MISE mise x -- task verify↗ BUILD BOOK

[SYSTEM THESIS]

Market data as one continuous trace

Selection, authorization, live delivery, historical recovery, and chart paint belong to one product boundary. Every handoff carries identity, ordering, provenance, and a recovery instruction.

TRACE-AS-PRODUCT

One contract from demand to paint.

The browser asks an authenticated gateway for an owned series. The data plane answers with a stable snapshot, a typed live tail, and an opaque path into older committed history.

HOW IT READSExisting data paints first. Live ownership attaches without a gap. Missing history fills in bounded, coalesced ranges. The chart appends, replaces, or prepends.
contracts/series.rspub struct SeriesQuery {
  identity: SeriesIdentity,
  before: Option<Cursor>,
  limit: PageLimit,
  generation: Generation,
}

pub enum StreamFrame {
  Snapshot(Page),
  Update(Bar),
  Resync(ResyncReason),
}

[SHARED OWNERSHIP]

One kernel, many viewers

One Nautilus flow feeds durable projections and many viewers.

End-to-end market-data traceDBN passes through DataEngine, Nautilus, a bounded projection, QuestDB, the gateway, and the chart. The highlight marks the chapter focus.DBNData Eng.NautilusProjectQuestDBGatewayStreamChart
Fig. A — The stable reading trace. Runtime topology and narrative order are related, not identical.

Fig. 01 DBN becomes Nautilus state, history, and chart state.

01DECODE

Map DBN once into Nautilus values.

one market model
02PROCESS

One kernel runs data, cache, bus, and strategies.

backtest / live parity
03COMMIT

Advance coverage after QuestDB commits.

watermark
04SERVE

Authorize history/live; gaps are typed.

bounded + explicit
✓ kernel + history/live joinedseries + generation attributed

Cache DB, event store, QuestDB, and service Redis remain distinct. The browser uses the gateway.

→ OPEN THE LIVE-PATH CONTRACT ↗

[CAPABILITIES]

The system, by boundary

03Owned boundaries

Nautilus owns market and trading meaning; Anthera owns service metadata, durable projections, and browser contracts.

04Identity and time

A record is not identified by timestamp alone; source, series, generation, correction lineage, and durability travel with it.

05The live path

One upstream subscription serves many viewers through fenced ownership, bounded fanout, and typed recovery.

06Cold ticker and infinite history

A cold selection becomes useful immediately while one durable, coalesced workflow fills missing history behind an opaque cursor.

07Storage and coordination

The Cache database, event store, QuestDB catalog, Redis projections, and cold files each have one explicit authority.

08Framework and Nautilus decisions

Leverage means adopting the coherent Nautilus kernel, then owning only the distributed service gaps it leaves open.

[BOOK MAP]

Twelve decisions, one operating model

  1. 01The system thesis

    Nautilus owns the trading kernel; Anthera extends one canonical trace into durable history and multi-user delivery.

  2. 02Current to target

    Preserve proven contracts, rewrite coordination bottlenecks, and delete nothing until a compatible replacement owns the behavior.

  3. 03Owned boundaries

    Nautilus owns market and trading meaning; Anthera owns service metadata, durable projections, and browser contracts.

  4. 04Identity and time

    A record is not identified by timestamp alone; source, series, generation, correction lineage, and durability travel with it.

  5. 05The live path

    One upstream subscription serves many viewers through fenced ownership, bounded fanout, and typed recovery.

  6. 06Cold ticker and infinite history

    A cold selection becomes useful immediately while one durable, coalesced workflow fills missing history behind an opaque cursor.

  7. 07Storage and coordination

    The Cache database, event store, QuestDB catalog, Redis projections, and cold files each have one explicit authority.

  8. 08Framework and Nautilus decisions

    Leverage means adopting the coherent Nautilus kernel, then owning only the distributed service gaps it leaves open.

  9. 09Failure, security, and observability

    Failures are typed state transitions with visible watermarks, bounded consequences, and an owned recovery command.

  10. 10The engineering loop

    Fast local feedback and deep scheduled evidence are separate tool profiles, not one bloated default installation.

  11. 11Migration without a cliff

    The candidate path earns traffic through shadow evidence, narrow cohorts, and exercised rollback—not a flag-day rewrite.

  12. 12Execution map

    Nine phases integrate the Nautilus kernel first, then add durable projections, browser delivery, proof, rollback, and cutover.