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

FlaskPostgreSQLRedisNginxDockerPrometheusGrafanak6GitHub Actions

More projects

Enterprise

Apache Airflow – Per-Executor Health Reporting

Open Source Contributor

Merged open source contribution to Apache Airflow through the MLH Open Source Fellowship, adding per-executor health reporting so operators can see when the Celery broker or Kubernetes pod manager an executor depends on has gone unhealthy, not just the scheduler itself.

View project
Enterprise

Apache Airflow TypeScript SDK: Trial, Feedback and Fix

Open Source Contributor

Tested the new Apache Airflow TypeScript SDK on a real project, reported what was missing, and fixed a bug in it. The feedback led a maintainer to plan local testing for TypeScript Dags.

View project

Interested in similar work?

Get in touch to talk through scope and fit.