[JAVA] Under the hood: Database Connection Pooling in Spring Boot episode artwork

EPISODE · Feb 20, 2026 · 44 MIN

[JAVA] Under the hood: Database Connection Pooling in Spring Boot

from Software Engineer Interview Prep Podcast · host Prabuddha Ganegoda

Are your APIs randomly throwing 500 errors during traffic spikes, or mysterious SocketException errors on Monday mornings? In this deep dive, we break down the critical, and often misunderstood, world of database connection pooling to help you stabilize high-traffic applications and ace senior engineering interviews.What You Will Learn in This Episode:The Taxi Rank Analogy: Why establishing a database connection from scratch (with TCP sockets and TLS handshakes) is like building a new taxi for every passenger, and how a connection pool keeps a fleet warmed up and ready to go.HikariCP Internals: Discover why Spring Boot uses HikariCP as its default, leveraging a lightning-fast, lock-free ConcurrentBag design that dramatically outperforms older pools like c3p0 and DBCP2.Surviving Real-World Disasters: We walk through intense production outages, including:    The E-Commerce Flash Sale: What happens when 2,000 threads fight for 10 connections, and how to properly tune your maximum-pool-size and connection-timeout to prevent cascading failures.   The Silent Cloud Killer: How infrastructure like AWS NAT Gateways quietly drop idle TCP connections over the weekend, and how enabling a simple keepalive-time heartbeat prevents broken pipes on your first Monday request.     The Slow Drain: How to hunt down buggy code that slowly exhausts your pool over a 12-hour period using the leak-detection-threshold.Java 21 Virtual Threads: We bust the common myth that virtual threads solve all database bottlenecks. Learn why they perfectly fix OS thread exhaustion and queuing, but do not change your fundamental database session limits.

Episode metadata supplied by the publisher feed · Published Feb 20, 2026

Are your APIs randomly throwing 500 errors during traffic spikes, or mysterious SocketException errors on Monday mornings? In this deep dive, we break down the critical, and often misunderstood, world of database connection pooling to help you stabilize high-traffic applications and ace senior engineering interviews.What You Will Learn in This Episode:The Taxi Rank Analogy: Why establishing a database connection from scratch (with TCP sockets and TLS handshakes) is like building a new taxi for every passenger, and how a connection pool keeps a fleet warmed up and ready to go.HikariCP Internals: Discover why Spring Boot uses HikariCP as its default, leveraging a lightning-fast, lock-free ConcurrentBag design that dramatically outperforms older pools like c3p0 and DBCP2.Surviving Real-World Disasters: We walk through intense production outages, including:    The E-Commerce Flash Sale: What happens when 2,000 threads fight for 10 connections, and how to properly tune your maximum-pool-size and connection-timeout to prevent cascading failures.   The Silent Cloud Killer: How infrastructure like AWS NAT Gateways quietly drop idle TCP connections over the weekend, and how enabling a simple keepalive-time heartbeat prevents broken pipes on your first Monday request.     The Slow Drain: How to hunt down buggy code that slowly exhausts your pool over a 12-hour period using the leak-detection-threshold.Java 21 Virtual Threads: We bust the common myth that virtual threads solve all database bottlenecks. Learn why they perfectly fix OS thread exhaustion and queuing, but do not change your fundamental database session limits.

PodParley-generated summary based on available episode metadata and transcript content.

NOW PLAYING

[JAVA] Under the hood: Database Connection Pooling in Spring Boot

0:00 44:23

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

That Hoarder: Overcome Compulsive Hoarding That Hoarder Hoarding disorder is stigmatised and people who hoard feel vast amounts of shame. This podcast began life as an audio diary, an anonymous outlet for somebody with this weird condition. That Hoarder speaks about her experiences living with compulsive hoarding, she interviews therapists, academics, researchers, children of hoarders, professional organisers and influencers, and she shares insight and tips for others with the problem. Listened to by people who hoard as well as those who love them and those who work with them, Overcome Compulsive Hoarding with That Hoarder aims to shatter the stigma, share the truth and speak openly and honestly to improve lives. The Small Business Startup School – Business Notes | Financial Literacy | Retail Psychology – For Professionals & Entrepreneurs The Small Business Startup School Inc. Starting or buying a small business? While personal circumstances may vary, business patterns remain timeless. On The Small Business Startup School, we explore strategies, insights, and practical solutions to help entrepreneurs confidently navigate their journey.Hosted by Ola Williams—a retail entrepreneur, fintech founder, and financial coach with over two decades of experience—this podcast marries financial awareness and retail psychology with optimism to deliver actionable takeaways.Join us to learn, grow, and connect as we uncover the keys to business success.Let’s continue to learn together and be encouraged to keep on connecting! DIOSA. Carolina Sanper This podcast is a sacred space created by Carolina Sanper where you connect with your inner wisdom and embody your magnetic feminine power.It is the realization that the mystical realm is where you plant the seeds of your desired reality.It is a portal to your true essence: awareness, presence, and receiving with ease. Welcome home, DIOSA. 🖤 XXX Tech by SOVRYN Dr. Brian Sovryn The crossroads between technology, sensuality, and metaphysics - and the longest running anarchist podcast in the world! Brought to you by Dr. Brian Sovryn.

Frequently Asked Questions

How long is this episode of Software Engineer Interview Prep Podcast?

This episode is 44 minutes long.

When was this Software Engineer Interview Prep Podcast episode published?

This episode was published on February 20, 2026.

What is this episode about?

Are your APIs randomly throwing 500 errors during traffic spikes, or mysterious SocketException errors on Monday mornings? In this deep dive, we break down the critical, and often misunderstood, world of database connection pooling to help you...

Can I download this Software Engineer Interview Prep Podcast episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!