Avik Mukherjee

Breaks prod so you don’t have to.

Backend engineer · Go, TypeScript, PostgreSQL · distributed systems · Hyderabad, India

I build systems that have to survive reality. Right now that is AI and security infrastructure at SuperAlign. On my own time I rebuild systems to understand them, then write down what broke.

My open source project Markdown Video is sponsored by Neon through its Open Source Program.

Technical writing partnerships for database and developer-tool teams.

SuperAlign AI (current)2025 — now
Software Engineer, Backend
  • Own backend services end to end: design, code review, release and production support
  • Idempotent, retry-safe ingestion and background processing kept off the request path
  • Data pipelines that stay within a fixed memory budget on very large inputs
  • Integrations with third-party AI platforms and the background work behind them
  • Converted from intern to full time after four months
  • DataFoundry AITrainee Engineer2024 — 2025

    Azure Data Factory pipelines, Python backend work, and frontend RBAC in React with Axios.

  • DankMobile Developer Intern2023 — 2024

    Built the complete React Native app and its API layer, following React Native best practices; page loads down 40%.

  • Auctopus TechnologyFrontend Developer Intern2023

    Frontend pages, forms with React Hook Form, and Cypress tests that halved manual testing.

Selected work

All projects
QueryGuardp99 8.1 → 3.5 msPostgres proxy that stops one tenant slowing down everyone else
noisy tenant's reads
45 straight to Postgres8 through QueryGuard
innocent p99
8.1 ms straight to Postgres3.5 ms through QueryGuard

The hard part. The scheduler was the easy part. The hard part was what a proxy must understand first: what Postgres means by the same query, transaction and cancel. The benchmark caught six scans passing one budget check at once, so checking and charging now share a lock.

Go · PostgreSQL wire protocol · pgx · pg_query · PrometheusCode for QueryGuard on GitHubWrite-up on QueryGuard
pgbranchnew0 pages copiedHow Neon branches Postgres without copying it, rebuilt in Go
  • creating a branch copies 0 pages
  • every read checked against a naive model over 200 random seeds
  • GC keeps each child's branch point readable
  • each piece maps to Neon's pageserver: ancestor_lsn, query.lower

The hard part. A read that falls through to the parent must lower its LSN to the branch point, or the parent's later writes leak in. GC must keep each child's branch point readable. Both are checked against a naive model over 200 random histories.

Governorp95 553 → 27 msBudgets, leases and deadlines for task trees that fan out
quiet tenant p95
553 ms without27 ms with Governor
retries per call
27 without2 with Governor
peak concurrency
81 without6 with Governor

The hard part. A charge must fit under the task, its tenant and the root, all or none. I kept the tree in memory behind one lock and commit every change before replying, so a restart replays exactly what callers were told.

Go · gRPC · Postgres · SQLite · PrometheusCode for Governor on GitHubWrite-up on Governor
Term Bridge0 bytes relayedShare a real terminal with a 6-digit code, peer to peer
  • 6-digit pairing code
  • 0 bytes of terminal data through my servers
  • P2P after handshake
  • DTLS-encrypted DataChannel

The hard part. Signaling has to be central; terminal bytes must not be. A Durable Object relays only SDP and ICE, then leaves the path, so nothing I run sees your shell. Handing control between two PTYs was the harder half.

TypeScript · node-pty · WebRTC · Cloudflare Workers + Durable Objects · HonoCode for Term Bridge on GitHubWrite-up on Term Bridge
miniqueue35 s max recoveryPostgres-backed job queue with leases and crash recovery
  • at-least-once delivery
  • 35s worst-case crash recovery
  • 30s lease, 10s heartbeat
  • zero duplicates via idempotency key

The hard part. SKIP LOCKED over NOWAIT, so a poll moves past locked rows instead of erroring. Recovery is a lease plus a reaper, not LISTEN/NOTIFY: slower, but it survives a worker dying mid-job, with a 35 s worst case.

Go · Postgres · pgx/v5Code for miniqueue on GitHub

Writing

All 35 posts →

Approach

Generating code got cheap. Deciding whether it is correct did not. So I spend my attention on the parts a model cannot hand me.

  1. Start with constraints.
  2. Prefer the simplest architecture that survives them.
  3. Measure before optimizing.
  4. Design for failure.
  5. Understand the abstraction.

Connect

If you're working on hard problems in infrastructure, AI systems or security, I'd like to hear about it.

Book a callEmail Avik
avikm744@gmail.com

Building a database or developer tool? Work with me on an in-depth post or a real build.