Deep dives

built properly, measured, documented
01 · go · distributed systems

Redis_Go

A Redis-compatible database built from scratch in Go. Works with the official redis-cli, redis-benchmark and client libraries, with AOF persistence and crash recovery, leader-follower replication, and automatic failover through Raft-inspired majority elections.

660kGET/s pipelined
100,000commands verified vs real Redis
// what I learned
  1. Profiling beats guessing: batching reply writes gave a 2.9× throughput jump.
  2. Failover is the hard part of a database: majority elections, split-brain write protection and WAIT for synchronous replication.
  3. Diffing 100,000 randomized commands against real Redis is a much stronger check than hand-written test cases.
02 · go · postgres · prometheus

Taskq

A durable background-job queue with Postgres as the only store. Workers claim jobs atomically with SKIP LOCKED, hold leases with fencing, retry with exponential backoff, and a reaper recovers jobs from crashed workers. Enqueue can share a transaction with business data.

0.19 msjob claim on 1M rows
4,383jobs/s, 32 workers, durable
// what I learned
  1. A full index was slower than no index at all. A partial index on queued jobs took the claim query from ~306 ms to 0.19 ms.
  2. Durability has a cost: about 80% of each job's time was the commit flushing to disk.
  3. Exactly-once delivery isn't possible here, so job handlers have to be idempotent.
03 · typescript · postgres · razorpay · twilio

razorpay_recovery

Recovers revenue from failed payments, subscriptions and overdue invoices. It diagnoses each failure, picks a bounded fix (UPI-only link, WhatsApp nudge, deferral or a silent halt for fraud), respects quiet hours, and reports lift against a holdout group. Built for Razorpay's hackathon.

30%holdout to measure real lift
rules → AIstricter action always wins
// what I learned
  1. Let deterministic rules decide and let AI only make an action stricter, so the system stays predictable.
  2. Measure lift against a holdout group, not raw recovery counts.
  3. Webhooks need signature checks and idempotency, or retries count the same payment twice.

Apps & products

full-stack apps, shipped or in progress
04 · kotlin · compose · ktor · postgres

TrainLog

in beta

An Android workout tracker: plan your split, start a session and log sets with a live timer, then look back through every workout on a training calendar. Backed by a Ktor REST API and Postgres on Railway.

// what I learned
  1. Taking an app from localhost to a live API on Railway that real people use.
  2. Modelling workouts, exercises and sets as a relational schema in Postgres.
05 · swift · uikit

DiabetEase

iOS · team project

Helps people with diabetes track glucose, meals, water, steps and symptoms, share their data with family, and keep prescriptions and reports in one place.

// my part & what I learned

I built the meal logging screens and the onboarding pages, and worked on the app's UI.

  1. Building polished UIKit screens that match a design closely.
  2. Designing onboarding that collects health details without feeling like a long form.
  3. Working in a shared codebase with a team.
06 · go · kotlin · postgres

Journaling app

in progress

An offline-first journal for Android and desktop, synced through a stateless Go REST API, with Google Sign-In and JWTs.

// learnedDesigning sync: device-generated UUIDs, versioned records, tombstones and conflict resolution.
07 · next.js · typescript · node.js · openai

BigBrain

AI notes

An AI-powered notes workspace that keeps notes and uploaded files in one place, with automatic summaries, content extraction and contextual search.

// learnedWiring LLMs and vector search into a real product.