Skip to content
Jatin Bansal
Theme

Blog

Long-form posts by Jatin Bansal on Java concurrency, PostgreSQL scaling, Spring Boot and AI engineering, drawn from production backend work.

Last entry May 1, 2026. RSS feed

  1. Java Writing Event Loops with Java Virtual Threads A practical guide to writing small event loops in Java 21 and Java 25 using virtual threads, blocking queues, direct control flow, and graceful shutdown. Reading time: 7 minutes
  2. AI Context vs Prompt Engineering: The Evolution from Instructions to Intelligence Why context engineering is overtaking prompt engineering: what context rot is, and why managing what a model sees matters more than prompt wording. Reading time: 11 minutes
  3. Java StampedLock: How to Use Locks with Near Lock-Free Reads in Java How Java's StampedLock gives near lock-free reads with optimistic locking, why it suits virtual threads and read-heavy code, and how to use it safely. Reading time: 6 minutes
  4. Java Scaling PostgreSQL Databases with Spring Boot: A Journey into Application-Level Sharding How we scaled PostgreSQL to millions of inserts per hour with Spring Boot, combining table partitioning with application-level sharding across hosts. Reading time: 5 minutes