- The local Mac Studio has 12 CPU cores, 32 GB of RAM, 10 Gbit/s network performance, and an estimated amortized cost of about $60/month.
24:0324:36 - Network capacity matters because large responses can make the network card the limit instead of CPU or RAM.
24:17 - Express, Fastify, and Cpeak are compared with the same route logic to measure framework overhead.
25:1325:31 - Fastify's npm page claims much higher throughput than Express, and the local test shows Fastify around 66,000 requests per second versus Express around 20,000.
26:0626:2026:37 - Cpeak is a small, zero-dependency educational framework with about 500 lines of code, intended to stay close to raw Node performance.
27:01 - Cpeak reaches about 73,000 requests per second on the simple route and is comparable to Fastify while beating Express.
27:4528:07 - The more realistic patch route includes path variables, query parameters, JSON input, dummy checks, and about 32 KB of JSON output.
29:1430:24 - One Node process on the patch route fully uses one core but leaves much of the machine idle, and throughput drops to about 8,000 requests per second while transferring about 5 GB over 20 seconds.
31:0131:18 - PM2 cluster mode runs 12 Node instances on the 12-core machine so traffic can use more CPU.
31:4532:13 - Cluster mode raises the patch route from about 8,000 to about 36,000 requests per second, then about 42,000 requests per second after increasing AutoCannon pressure.
33:0533:51
Chapter notes
Node clustering and framework overhead
Cododev · 2:39:18 · English