How we build.

From a checkout sketch to a working store, and what you review along the way.

ORDER RECEIPT#1042
Ceramic mug
Quantity01
PaymentCash on delivery
Order confirmed
Checkout Order Confirmation

Waterfall

When the scope is settled: you sign off each stage.

  1. 01

    Agree on what the shop must do

    We walk through one order and write down who buys and how they pay.

  2. 02

    Try the checkout on paper

    You review sketches of the product page, basket and receipt.

  3. 03

    Connect the approved screens

    Storefront and dashboard, then stock, payments and delivery.

  4. 04

    Test a whole order

    A good order, a failed payment and a sold-out item, checked against the brief.

  5. 05

    Hand over a working store

    We launch, watch the first orders and show you the dashboard.

Scrum

When the product needs room to evolve: a working slice each sprint.

Plan · 1 / 4

Pick one useful outcome

One sprint goal, such as a first cash-on-delivery order.

Inside an order.

A customer taps “Place order”. Follow it to the confirmation email.

+1 msTenant

The signed session resolves to exactly one tenant before any handler runs.

session.verify(cookie)
// → { user: 'u_81', tenant: 'acme', role: 'manager' }
+4 msAPI

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')
+7 msPostgres + RLS

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);
+10 msOutbox

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.1ms
+13 msQueue

A 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=armed
+16 msWorker

The 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, skip

Illustrative timings for one order.

What are you building?

Discuss your project