Advertiser eligibility and rules platform
Designed and delivered an independently deployable advertiser eligibility platform after investigating data loss during imports. Extracted the engine from a central monolith into an AWS serverless microservice, preserving source provenance and making competing rules and their precedence explainable.
Role
Principal engineer and sole implementation engineer
Timeframe
Approximately two weeks of design and four to six weeks of implementation alongside other projects; in production for approximately four months as of October 2026.
Outcomes
- Enabled independent maintenance and releases, with environment deployments taking minutes through GitHub Actions; overall release time is largely determined by automated and acceptance tests.
- No incidents observed in approximately four months of production operation as of October 2026, while checkout, media activation, and reporting migrated in waves.
- Introduced source provenance and completeness-gated source-version activation to address import data loss.
- Helped operations explain purchase eligibility with optional diagnostics showing rule precedence and non-winning rules.
- Delivered TCO estimates, three to four collaborative architecture workshops, and API-backed QA tools with natural-language queries.
Stack
- AWS Lambda, DynamoDB, API Gateway
- Manifest-based batched ingestion, queue-based delivery, optimistic concurrency control
- Next.js, OpenNext on Lambda, Vercel AI
- GitHub Actions, AWS SAM, multi-environment deployment
Writeup
Separated source-specific ETL from rule storage and introduced manifest-based batched ingestion. New source versions become active only after all expected batches complete, using optimistic concurrency control and a source-version pointer to protect import integrity. Tailored DynamoDB keys and indexes to access patterns, limiting secondary indexes to queries tolerant of eventual consistency. At lookup time, sorted specificity tuples similarly to CSS specificity; a configurable source override handles higher-priority restrictions without hard-coded business exceptions. Built a Next.js interface for rule browsing and acceptance testing, with natural-language API tools that explain their steps when exploring rules and import status. Architecture workshops validated assumptions and shared AWS practices with newer team members.