node-js-fundamentals
Node.js internals worked through by hand: streams, TCP and UDP chat, a file uploader, worker pools, semaphores, spinlocks, shared memory, and deadlocks. It led to ecity, an Express-style framework written on Node's http module.
Backend engineer. I write Go, Python, JavaScript and Rust, and I like knowing what happens one layer below the code.
Backend Developer at Coverstack in Bengaluru. Previously at Signzy and Wealthy. B.Sc. in Computer Science from BITS Pilani.
Apr 2026 to Present
Backend for an insurance platform, plus the internal tools and test infrastructure around it.
May 2025 to Dec 2025, Bengaluru
Data migration scripts with checkpointing and failure recovery, and Go APIs for an internal incident-ticketing system with email alerts.
Aug 2024 to Feb 2025, Bengaluru
A Go payment-workflow service, Google and GitHub OAuth with JWT rotation, and a Django insurance service.
Dev servers sleep when idle and come back with a new IP. The CLI wakes the machine through the platform API, waits for the address, and opens the SSH session, so engineers stay in the terminal instead of switching to a browser to wake the server and copy its IP.
CI checks it before deploying, so two features do not land on the same server.
Moved uploads to batch processing and made the upload path faster. Recommended the read-replica setup that production now runs.
The product ran as microservices spanning Go, Python, JavaScript and Rust. Moved certificate watermarking out of the request path into a Kafka-driven Go service.
Our test servers each run the Django application on a different branch, and the configuration data in their databases drifts apart. The ops team kept them in step by hand: copying values from one server's web interface and pasting them into another's. Every copy was a chance to paste the wrong value, paste into the wrong server, or mistype one, and it came up often.
The tool had to run on every server, all the time, next to an application that already uses most of the memory. A Python or Node.js sidecar idled at over 100 MB for this job. Reading the database directly was also out: the tool would need its own copy of the data model and of every side effect Django runs on save, and it would break each time the application changed.
I wrote the server in Go. I benchmarked Rust too, and the idle memory difference was too small to matter, while Go was the language I could review with more confidence. GC pauses are fine for an internal tool.
For the data, the Go server does not touch the database. It starts python manage.py shell as a child process and sends it commands over stdin. Reads and writes go through the Django ORM, so models, validation and save side effects behave exactly as they do in the application. Go handles HTTP and presentation; Python does what it already does well.
The ops team syncs configuration between servers from one place, with no copying and pasting. When the data model changes, the tool needs no change, because it never had its own copy.
The part I keep coming back to: every program becomes a process, and processes can talk to each other. That one Unix idea let two languages split the work.
After I moved our test environment to the company's in-house platform, its network traffic spiked with no change on our side. The existing Nginx logs could not tell us where the requests came from.
The obvious tool was rsyslog writing straight to a Redis Stream, but the servers' OS is fixed for application compatibility, and the rsyslog it ships cannot write to a stream. Whatever collected the logs had to come from the servers themselves, without new system packages.
I reworked the Nginx logging first, so each request recorded what I needed to attribute it. Then I built a small pipeline in Go:
Nginx's syslog output travels over UDP, which can drop packets. For counting who sends traffic, losing an occasional line is acceptable, and Nginx never waits on the logger.
The morning after the pipeline went live, the data pointed to one source: a test script a teammate had written and forgotten to turn off. It was an honest mistake.
The team can now see who is calling the test servers and how much, broken down by source, across every server.
Node.js internals worked through by hand: streams, TCP and UDP chat, a file uploader, worker pools, semaphores, spinlocks, shared memory, and deadlocks. It led to ecity, an Express-style framework written on Node's http module.
Cryptography worked through in Node.js. RSA from the math up (square-and-multiply and modular inverses on BigInt), plus a one-time pad and a toy hash written by hand; then AES, HMAC, PBKDF2 and file encryption on Node's crypto module.
An HTTP server on raw TCP sockets with no framework: request parsing, routing, file serving, and concurrent connections on threads.
The platform behind my blog: an Astro and React front end, a MongoDB-backed REST API with JWT auth, and an admin panel for writing posts.