Node.js.
- 01
Load-Testing a URL Shortener (opens in a new tab)
Part 2 · MediumPushing the linkpulse redirect path with k6 until something gave. A fixed VU test measures concurrency, not throughput, and at 3,000 requests a second one Node process ran out of CPU while Redis and Postgres sat at about 25%.
- 02
Building a URL Shortener: Six Design Decisions and the Alternatives I Rejected (opens in a new tab)
Part 1 · MediumSix decisions behind a URL shortener that runs in public, each with the alternative I rejected: a 302 rather than a 301, caching misses as well as hits, a sliding window rate limiter in Lua, and refresh tokens with reuse detection.
- 03
Building a Caching Proxy Server in Node (opens in a new tab)
MediumA Node CLI that sits in front of any server, caches its responses locally and marks each reply with an X-Cache HIT or MISS header, with a command to purge the cache.
- 04
Building a CLI app in Node.js (opens in a new tab)
MediumBuilding a Node.js CLI with commander.js, then making it pleasant with Chalk, Inquirer and loaders. The example project prints a user's recent GitHub activity.