Skip to main content

Production URL Shortener – MLH PE Hackfest 2026

Production EngineerLive Site

Production-grade URL shortener built for the MLH Production Engineering Hackathon, demonstrating SRE practices: horizontal scaling, Redis caching, observability, load testing, and incident runbooks.

Enterprise

Context

Built during the MLH PE Hackfest 2026 to demonstrate real-world production engineering skills including reliability, scalability, and observability on a constrained single-node deployment.

Challenge

Designing a system that handles high concurrency on a 512MB/1vCPU droplet while maintaining low latency, full observability, and graceful failure handling across all components.

Solution

Deployed 2 Flask instances behind Nginx for horizontal scaling, implemented Redis caching on redirect lookups and list endpoints with cache invalidation, instrumented with Prometheus metrics, visualised in Grafana, and load tested with k6 at 200 concurrent users.

Technology Stack

backend

FlaskPythonPeewee ORMPostgreSQLRedis

infrastructure

DockerDocker ComposeNginxDigitalOcean

observability

PrometheusGrafanaStructured JSON Logging

testing

k6 Load TestingpytestGitHub Actions CI

Impact & Results

Redis caching reduced error rate from 1.68% to 1.28% (24% improvement) under 200 concurrent users

Health endpoint reports DB and cache status independently, enabling precise incident diagnosis

Failure mode documentation covering 6 failure scenarios with expected responses and recovery steps

CI/CD pipeline (GitHub Actions) running tests on every push and PR

Runbook and deploy guide enabling repeatable zero-downtime deployments

Technologies

Flask
PostgreSQL
Redis
Nginx
Docker
Prometheus
Grafana
k6
GitHub Actions

More Projects

Blockchain / Web3

Learnway – Blockchain Education Platform

Fullstack Developer

Full-stack platform for a blockchain-based educational application on Lisk blockchain that gamifies learning through point-based rewards and token incentives.

View Project
Ride Hailing

Freedom – Ride Hailing Platform

Full-stack Developer

Production ride-hailing platform serving thousands of daily ride requests across multiple Ghanaian cities with real-time matching and secure payments.

View Project

Interested in similar work?

Let's discuss your project requirements