2026
Restock Analytics platform
Technical lead, architecture · Amazon Business
- Java
- TypeScript
- React
- AWS
- GraphQL
Restock customers had no self-service analytics. The UI package was an unmodified React template with no pipeline, no hosting, and no route into the Amazon Business portal.
What I built
- Federated micro-frontend embedded in the portal: a standalone single-page app with its own three-stage, self-mutating pipeline that deploys independently of the portal's release train.
- The integration contract with the portal team — controller, feature gate, translations and routing — reusing the portal's navigation rather than rebuilding it.
- Four analytics surfaces: inventory health; spend; service visits (completion rate, upcoming visits, per-visit table); and orders & spend (fill rate, frequently ordered items, orders table, spend over time, spend by category).
- Order and spend data model: seven tables built for idempotent replay and run-scoped keys, behind an enrichment boundary that keeps analytics out of the ordering system's tables.
- Enrichment architecture: compared three options with both teams' senior engineers, then let production data decide — 37% of runs emit purchase events 2–10s after metadata, so a 5-minute retry replaced a replay table.
Result
- Deployment went from 2–3 weeks on the shared release train to about 10 minutes.
- Amazon Business repositioned the portal as a multi-tenant host; Restock analytics is the first tenant and the reference implementation.
- Sized to 5% of the 2 TPS downstream limit, with two documented fallbacks that need no schema change.