Pick one useful outcome
One sprint goal, such as a first cash-on-delivery order.
From a checkout sketch to a working store, and what you review along the way.
When the scope is settled: you sign off each stage.
We walk through one order and write down who buys and how they pay.
You review sketches of the product page, basket and receipt.
Storefront and dashboard, then stock, payments and delivery.
A good order, a failed payment and a sold-out item, checked against the brief.
We launch, watch the first orders and show you the dashboard.
When the product needs room to evolve: a working slice each sprint.
One sprint goal, such as a first cash-on-delivery order.
A customer taps “Place order”. Follow it to the confirmation email.
The signed session resolves to exactly one tenant before any handler runs.
session.verify(cookie)
// → { user: 'u_81', tenant: 'acme', role: 'manager' }The route parses the body with zod, rate-limits the tenant and checks the role.
const body = CreateOrder.parse(await req.json())
await limit('acme', 'orders', 60)
assertRole(session, 'manager')The transaction sets the tenant, and row-level security filters every row by it.
BEGIN;
SET LOCAL app.tenant_id = 'acme';
INSERT INTO orders (sku, qty) VALUES ('A-12', 3);The event row commits with the order, so it exists only if the order does.
INSERT INTO outbox (topic, payload)
VALUES ('order.created', $1);
COMMIT; -- 4.1msA relay publishes the event. Failures retry with backoff, then land in a dead-letter queue.
publish orders.events attempt=1
retry=3 backoff=exp dlq=armedThe handler claims an idempotency key first, so a redelivered event runs once.
INSERT INTO processed (key) VALUES ($1)
ON CONFLICT DO NOTHING RETURNING key;
-- no row back: already handled, skipIllustrative timings for one order.