Blog
Long-form posts by Jatin Bansal on Java concurrency, PostgreSQL scaling, Spring Boot and AI engineering, drawn from production backend work.
- 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
- 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
- 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
- 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