← back to home
all projects
06 projectsdistributed systems, backend infrastructure, and web applications.
WORK
01
Distributed Rate Limiter
High-performance token-bucket rate limiting service in Go.
- Benchmarked allowed-path throughput over HTTP loopback (hey, 200 concurrent connections, 30s, hot-key workload with unlimited client bucket to isolate throughput).
- Achieved 30.1K req/s (6.6 ms avg, 17.2 ms p99 latency) for In-memory store and ~19.4–19.5K req/s (~10.2 ms avg, ~14–14.4 ms p99) for Redis + Lua vs 32.7K req/s baseline (0% failures).
- Enforced atomic token accounting across distributed instances using Redis & Lua scripts, with storage-agnostic Go interfaces and zero-allocation token decisions.
02
Idempotency Layer
Go HTTP middleware guaranteeing exactly-once execution per key under concurrent retries.
- Built a Go HTTP middleware that makes API endpoints safely retryable (Stripe/Razorpay mechanism) to prevent duplicate transactions on network retries.
- Engineered short-lived, ownership-safe Redis distributed locks via atomic Lua script for in-flight fencing paired with durable PostgreSQL record storage (key, request hash, status, response).
- Enforced atomic idempotency checks: replays stored response for completed requests, returns 409 conflict on request body mismatch or active in-flight execution, and permits retries on failure.
03
04
Text Search Engine
Lightweight full-text search engine in Go — indexes .txt files and serves queries over HTTP.
- Inverted index built from scratch for fast and efficient text retrieval.
- Lightweight HTTP server exposed for rapid search queries.
05


