Honeygyde
A multi-app supply platform on a three-environment AWS pipeline, with a 42% leaner API stack.
- Category
- Supply Platform
- Status
- In development
- My role
- Cloud architect and full-stack developer
- Timeline
- 2026
- Company
- Independent project
498 → 288CloudFormation resources in the API stack after consolidation
20–30 min → ~10 stest suite run time after the rework
3 environmentsdev, UAT and production behind manual approvals
450+automated test cases across 66 test files
01
The problem
Restaurants, farmers, drivers and admins all need to see the same stock, orders and deliveries. Billing and dispatch have to stay correct even when a step fails halfway.
02
Architecture decisions
- Self-mutating CodePipeline across dev, UAT and production with manual approvalsEvery change reaches production through the same reviewed path, and production is prepared as a separate AWS account.
- Row-level security in Aurora PostgreSQLTenant isolation is enforced by the database, so a bug in one service cannot leak another customer’s data. 37 of the 39 migrations touch it.
- Transactional outbox with a drain workerEvents are saved in the same transaction as the data and sent afterwards, so invoices and notifications are never lost or duplicated.
- Stateful and stateless stacks split, with expand-only migrationsDeploys never replace a database. Every change was checked in cdk diff for zero replacements.
03
What I built
- Defined the infrastructure in AWS CDK: three stacks plus the pipeline, Aurora Serverless v2, Cognito with pre-token and post-confirmation triggers, S3, EventBridge schedules and an HTTP API.
- Built 18 backend services, including order allocation, delivery planning, dispatch timeouts, invoice generation, billing runs and notification dispatch, behind a 35-operation OpenAPI contract.
- Built five Next.js apps (restaurant, farmer, driver, admin and public site) in one Turborepo on Amplify, written against the contract first.
- Consolidated the API: the stack fell from 498 to 288 CloudFormation resources and the HTTP Lambdas from about 31 to 2.
