DOCUMENTOVERVIEW

Orders system overview

How the orders system fits together — context, landscape, one module, one flow.

Context
01 · C4 model
SECTION 01 · C4 model

The orders system in its world

C4 · CONTEXT
C4 diagramPersonShopperSoftware SystemOrders systemExternal SystemPaymentsExternal SystemShipping123
1places orders2charges3notifies
PersonSoftware SystemExternal System
Orders system overview2 / 5
Landscape
02 · Architecture
SECTION 02 · Architecture

Services and backbone

ARCH
Layered architectureORDERS PLATFORMAppsBackboneStorefrontNext.jsOrders APIFargateEvent busmanagedorders-dbPostgres
Orders system overview3 / 5
One module — the API internals
03 · Frontend logic
SECTION 03 · Frontend logic

Orders API — the request chain

LOGIC
Module graphorders/apiEgress«controller»createOrderPOST /orders«service»OrderServicevalidate + place«repository»OrderRepopersist«gateway»PaymentGatewaychargeorders-dbPostgresPaymentsthird-party12345
1calls2saves3charges4SQL5HTTPS
Orders system overview4 / 5
One flow
04 · Sequence
SECTION 04 · Sequence
FLOW
Sequence diagramClientOrders APIPayments1POST /orders2charge3ok4201 Created
Orders system overview5 / 5
1 / 5
Document