StampedLock: How to Use Locks with Near Lock-Free Reads in Java

Learn how Java’s StampedLock enables near lock-free reads with optimistic locking, why it’s useful for virtual threads and read-heavy workloads, and how to use it safely.

July 5, 2025 · 5 min · Jatin Bansal

Scaling PostgreSQL Databases with Spring Boot: A Journey into Application-Level Sharding

Learn how we scaled PostgreSQL to handle millions of inserts per hour using application-level sharding with Spring Boot, combining table partitioning and host-level sharding for robust performance.

September 5, 2023 · 5 min · Jatin Bansal