← Files AkinatorARCHIVED FILE

evals/results/workspaces/2026-08-26-05-gate-economy/docs/architecture.md

676 Bytes · Oct 3, 2026 · 06:33 UTC

↓ Download file

# Architecture

Three services: `api`, `worker` and `notifier`.

The `notifier` service consumes the `item.created` topic and delivers webhooks.
It scales independently of the api and holds its own delivery-retry state.

> The `Item` model was renamed to `Record` (module `src/items` -> `src/records`).
> The topic name `item.created` is an external contract with consumers outside
> this repo, so it was deliberately left unrenamed. Renaming it is a separate,
> coordinated change.

Billing reads record counts through the reporting view - see
[the reporting guide](reporting/guide.md).

## Modules

- `src/records` - record storage and retrieval
- `src/billing` - invoicing

SHA-256: 3a06c221c5658b5c7394cad39cca4fe99cfd15e00761ede1adc27cd1725717a0