Skip to content
Projects

API Gateway

A lightweight PHP gateway that puts rate limiting and auth in front of four legacy services.

Request log showing allowed and rate-limited calls to four services

Overview

Year
2024
Role
Backend developer

Challenge

TODO: Four older services each handled authentication differently, and one of them fell over whenever a client retried in a tight loop.

Solution

TODO: A thin gateway that checks tokens once, applies per-client rate limits backed by Redis, and forwards requests unchanged, so none of the services had to be rewritten.

Outcome

TODO: What changed after it shipped. Fewer incidents, a single place to rotate credentials, or response times you measured before and after.

Stack

Language
PHP 8.2
Framework
Slim
Data
Redis · PostgreSQL
Tooling
Docker · PHPUnit