Backend
28 min read
Backpressure in Node.js Streams, APIs, and Queues
Learn how to control producer-consumer imbalance in Node.js using stream backpressure, bounded concurrency, queue limits, admission control, retries, and load shedding.
Category
Practical guides to Node.js, API design, performance, databases, caching, reliability, and building production backend systems.
12 articles
Backend
28 min read
Learn how to control producer-consumer imbalance in Node.js using stream backpressure, bounded concurrency, queue limits, admission control, retries, and load shedding.
Backend
30 min read
Learn how offset and cursor pagination work, why deep offsets become slow, how keyset pagination solves that problem, and how to design stable pagination with PostgreSQL and TypeScript.
Backend
27 min read
Learn how to evolve REST APIs safely using backward compatibility, API versions, expand-and-contract migrations, deprecation policies, and compatibility testing.
Backend
25 min read
Learn Clean Architecture in Node.js and TypeScript with domain models, use cases, ports, adapters, repositories, controllers, dependency injection, and practical trade-offs.
Backend
30 min read
Learn how to design predictable REST APIs with validation, authorization, idempotency, pagination, caching, concurrency control, rate limiting, observability, and safe evolution.
Backend
33 min read
Learn how rate limiting works with fixed windows, sliding windows, token buckets, leaky buckets, Redis, concurrency limits, and distributed systems.
Backend
22 min read
Learn SOLID principles in TypeScript by refactoring a checkout service into smaller, testable, and easier-to-change components.
Backend
7 min read
How to design retry-safe background jobs with idempotency keys, deduplication, checkpoints, transactional outboxes, leases, and compensation for partial failure.
Backend
7 min read
A production design for single-device JWT logout using short-lived access tokens, rotating refresh tokens, session records, JTI revocation, and Redis.
Backend
7 min read
What Kafka at-least-once delivery means when a consumer crashes before committing, and how offsets, idempotency, deduplication, and transactions prevent duplicate effects.
Backend
8 min read
Why a fast Redis cache can still overload PostgreSQL, and how to diagnose cache misses, stampedes, hot keys, TTLs, invalidation, and cache-aside failures.
Backend
14 min read
Learn how Node.js streams process large files and network data with Readable, Writable, Duplex, Transform, pipeline, async iteration, and object mode.