Public PreviewTesting header enabled
Open sitemap
/architecture

Architecture

Modular monolith with explicit domain boundaries.

Designed to evolve into a hybrid platform where only the right modules become services.

Design principles

  1. Domain-first

    01

    Bounded contexts under src/domains keep logic coherent.

  2. Audit by default

    02

    Critical actions produce immutable audit entries.

  3. Async for heavy workloads

    03

    Risk, ingestion, reports, batch AI live in workers.

  4. Sync for transactions

    04

    Orders, approvals, compliance decisions remain fast.

  5. Event-driven when useful

    05

    Domain events power fanout and pipelines.

  6. Service extraction later

    06

    Only split when scale/isolation is real.

Practical tradeoffs (what you get)

CapabilityThis approachTypical pitfalls avoided
Single deploy earlyYesNo service mesh required
Clear module seamsYesNo cross-domain shortcuts
Operational visibilityYesNo blind async jobs
Scalable evolutionYesNo premature splitting

Want to read the canonical doc?

This public page matches the architecture document used by the codebase.

Open docs index

Related pages

Cross-links across the public site for architecture, trust, specialty modules, and rollout.