Skip to content
Jatin Bansal
Theme

Java

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. 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
  3. 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