High-Traffic REST API

Consumer-facing API for a media platform: millions of requests per day on Laravel Octane roadmaps, layered Redis caching, exhaustive Pest integration tests and contract tests guarding every public endpoint.

Highlights

  • Millions of requests/day sustained on Octane
  • p95 response time under 80 ms with cache stampede protection
  • Contract tests pin every public endpoint shape
  • ETag + stale-while-revalidate caching strategy

Scale challenges

Traffic spikes follow broadcast schedules, which meant capacity planning around 10× baseline. Response caching is keyed on route + versioned payload hash; a scheduled warmer pre-computes hot resources minutes before each broadcast window.

Testing culture

Every endpoint has integration tests covering auth, pagination, error shapes and rate limiting. Breaking changes fail CI before review — the contract suite has caught every regression since it landed.

Related projects

View all