Back to Portfolio
04 / Full-Stack Developer • 2024

Veloce Headless Edge Commerce Engine

Flash-sale ready storefront with atomic inventory reservation and sub-second ISR catalog updates.

Next.jsPostgreSQLStripe WebhooksISRTypeScript
Veloce Headless Edge Commerce Engine
99/100Lighthouse Performance
+22%Checkout Conversion
0Oversell Incidents
01 / The Engineering Challenge

During limited-edition drops, concurrent checkouts caused overselling race conditions and stale product pages locked behind long CDN TTLs.

02 / System Topology
01
ISR Storefront
On-Demand Purge
02
Idempotent Checkout
Atomic Inventory
03
Webhook Outbox
Exactly-Once Queue
04
Order Ledger
ACID PostgreSQL
03 / Architectural Solution

Combined Next.js On-Demand Revalidation triggered by inventory webhook outbox events with PostgreSQL row-level lease locks for 10-minute checkout reservations.

04 / Key Trade-offs & Decisions
  • Used short-lived reservation leases with automatic expiry sweeps rather than pessimistic long transactions to maintain high throughput.
  • Served static product shells from Edge CDN while streaming live stock availability badges via lightweight client hydration.
Next Case Study (01)
Aegis Distributed Edge Gateway