Profiling a Slow Endpoint: Flame Graph to Fix, On-CPU vs Off-CPU
Learn to diagnose a slow monolith endpoint: scope the problem, use APM traces, pick on-CPU or wall-clock profiling, read flame graphs, and fix N+1 queries.
16 min read
Tag
Learn to diagnose a slow monolith endpoint: scope the problem, use APM traces, pick on-CPU or wall-clock profiling, read flame graphs, and fix N+1 queries.
16 min read
How Node's fetch pools connections through undici, and how to size, scope, time out and observe dispatchers so outbound HTTP calls stop failing intermittently.
14 min read
Learn when Node.js worker threads help an API server, how to run them behind a bounded Piscina pool with backpressure, and how to size and monitor it.
13 min read
Learn how Node.js streams backpressure works, why ignoring it causes memory leaks, and how pipeline() and async iteration handle large uploads safely.
14 min read
Compare in-process and shared caches in a monolith, covering hit rates under scaling, invalidation, cache stampede fixes, two-tier design and what to measure.
13 min read
Learn to baseline, trace and profile a slow monolith, fix N+1 queries and database hot paths, and choose a caching strategy before considering a rewrite.
18 min read
Learn when scaling Node.js needs worker threads, node cluster or horizontal load balancing, how each works, and how to diagnose the bottleneck first.
17 min read