JJS Insights

Jatin Jain Saraf (JJS) Insights & Blog

PortfolioCourses
  1. Home
  2. /Blog

JJS Insights & Reflections

Deep-dive technical articles, career growth strategies, and mindset lessons. Lessons learned from production engineering and life.

Content Type

🧯
System Design

The Three Layers of Failure Isolation: Timeouts, Circuit Breakers, and Load Shedding

500 requests a second are hitting a dependency that is completely dead. Every one gets a clean timeout after 2 seconds, exactly as configured. And you are still down. Three patterns, stacked in order, timeouts and retries, circuit breakers and bulkheads, backpressure and load shedding, each one picking up exactly where the last one's guarantee runs out.

Aug 3, 2026
21 min read
5 tags
System DesignResilience EngineeringDistributed SystemsBackend DevelopmentArchitecture
Read article
🔌
PostgreSQL

Connection Pooling in the Serverless Era: Five Failure Modes

Your database CPU is at 20%, your slowest query is 12ms, your slow-query log is empty, and your p99 is three seconds. Five ways connection pooling breaks in serverless and autoscaled deployments, why each one disguises itself as something else, and what every fix actually costs.

Aug 2, 2026
18 min read
5 tags
PostgreSQLDatabaseServerlessPerformanceBackend Development
Read article
🐘
PostgreSQL

PostgreSQL 19 vs. 18: What Actually Changed, Feature by Feature

Every major PostgreSQL release gets the "this changes everything" headline treatment. Here's the honest version: what specifically didn't work in PG18 that PG19 now fixes, feature by feature, with the real production tradeoffs — from REPACK CONCURRENTLY to SQL/PGQ to parallel autovacuum.

Jul 27, 2026
15 min read
4 tags
PostgreSQLDatabaseBackendSoftwareEngineering
Read article
🔁
Backend

Idempotency Keys: How to Make Retries Safe in Distributed Systems

A network blip retries a payment request. Without an idempotency key, the customer is charged twice. Here is why retries are unavoidable, how idempotency keys make them safe, and when a blockchain indexer replaying the same block twice must not double-count it.

Jul 24, 2026
9 min read
4 tags
BackendSystem DesignDistributed SystemsArchitecture
Read article
🧠
DSA

How the LRU Cache Actually Works and Why Redis, Browsers, and Postgres All Approximate It

Every fast system you use eventually has to decide what to throw away. The Least Recently Used policy is the answer nearly all of them land on, here's the two-structure trick that makes it instant, and why Redis, your browser, and Postgres all quietly cheat on the textbook version at scale.

Jul 21, 2026
6 min read
5 tags
DSASystem DesignCachingRedisData Structures
Read article
📝
PostgreSQL

Why a Single ALTER TABLE Can Take Down Your Whole Database

A routine ALTER TABLE queues behind one slow query — and every SELECT that arrives after it queues too, even though they'd normally run just fine together. This is the PostgreSQL locking mechanic behind some of the ugliest production outages, and the two settings that prevent it.

Jul 15, 2026
6 min read
5 tags
PostgreSQLDatabaseBackendSQLProduction Incidents
Read article
🗂️
Database

What the PostgreSQL Server Is Actually Doing

When you run CREATE DATABASE, PostgreSQL creates a directory. When you run INSERT, it writes a row to a file and logs the write for crash safety. When you run SELECT, it reads that file back.

Jul 11, 2026
7 min read
4 tags
DatabasePostgreSQLBackendFundamentals
Read article
🏆
Career

Competition Is Inevitable. Cruelty Is Optional

Every promotion in tech has an invisible downside. When someone becomes a Senior Developer, someone else waits another review cycle. That's the reality of a competitive industry. But success isn't abo

Jun 30, 2026
2 min read
3 tags
CareerGrowthLeadership
Read article
🔐
Database

Transactions and ACID in Practice: What Every Backend Developer Must Know

The money left Alice's account. Bob never received it. The server crashed in between. If you don't understand transactions, this is how your application loses data, silently, permanently, with no erro

Jun 26, 2026
11 min read
4 tags
DatabasePostgreSQLBackendSQL
Read article
PortfolioCourses

© 2026 Jatin Jain Saraf (JJS). All rights reserved.