Rate Limiting a Monolith Without Redis: In-Memory vs Postgres
Compare in-memory and Postgres rate limiters for a monolith: algorithms, atomic SQL, process-count pitfalls, failure modes, and how to choose by topology.
14 min read
Tag
Compare in-memory and Postgres rate limiters for a monolith: algorithms, atomic SQL, process-count pitfalls, failure modes, and how to choose by topology.
14 min read
Compare Redis Redlock and PostgreSQL advisory locks, learn why lease-based locks fail, and when fencing tokens are required for correctness.
14 min read
How Spring Boot virtual threads work, which workloads gain from them, where bottlenecks move, and how to limit concurrency, detect pinning and roll out safely.
13 min read
Learn why blocking calls stall Python asyncio services, how to detect and offload them, and how to manage tasks, cancellation, concurrency and shutdown.
14 min read
Build a Postgres job queue with FOR UPDATE SKIP LOCKED step by step: schema, dequeue query, worker models, retries, idempotency, vacuum and trade-offs.
14 min read