TFD Flows and Events

Durable writes, past-tense in-process facts, projections, notification outbox, and recorder streams

TFD Flows and Events Durable writes, past-tense in-process facts, projections, notification outbox, and recorder streams 01 / Owning Context 02 / In-process Facts 03 / Consumers + Projections 04 / Delivery Channels EX / Recorder Streams Commit React Project + deliver Durable State · owner transaction · Owning Context › Commit · Source of truth Durable State owner transaction Source of truth Domain Fact · past tense · in process · In-process Facts › Commit · In process Domain Fact past tense · in process In process Listeners · typed · idempotent · Consumers + Projections › React Listeners typed · idempotent Projection · snapshot · evidence · Consumers + Projections › React Projection snapshot · evidence Realtime · authorized view · Delivery Channels › Project + deliver Realtime authorized view Staff Client · Socket.IO · HTTP · Delivery Channels › Project + deliver Staff Client Socket.IO · HTTP VIP Timeline · allowlisted · append-only · Delivery Channels › React VIP Timeline allowlisted · append-only Outbox Worker · claim · dispatch · retry · Consumers + Projections › Project + deliver Outbox Worker claim · dispatch · retry Redis Streams · commands + events · Recorder Streams › Commit · Schema-versioned Redis Streams commands + events Schema-versioned Media Workers · leased consumers · Recorder Streams › React Media Workers leased consumers Legend User UI Agent logic Policy Tool action Context / trace

Domain event contract

  • • Events describe completed facts and use past-tense names
  • • Source state is durable before publication
  • • MVP delivery stays in process

Projection contract

  • • Consumers are idempotent and recoverable
  • • Realtime is ephemeral and authorized
  • • Reconnect reads a durable snapshot

Durable async paths

  • • Notifications use a database-backed outbox
  • • Recorder commands and events use Redis Streams
  • • Failed work is retried without duplicating domain facts