Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Software Engineer Interview Prep Podcast

Software Engineer Interview Prep Podcast artwork

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

Feb 20, 202644 minAudioSeason 1, Episode 2
ShareXLinkedInFacebookWhatsAppEmail

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.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Mastering REST API Design & Best Practices

    Oct 10, 20261 hr 11 minAudio

    "Design the backend for Twitter." Reciting HTTP verbs won't get you through that whiteboard session. In this deep dive we build a complete, staff-level blueprint for REST API design: the reasoning behind every rule, the...

    Credit the people on this episode

  2. The Architecture of Professional REST APIs

    Oct 9, 202628 minAudio

    Your connection drops mid-checkout on a $1,000 ticket. Do you hit refresh and risk paying twice? The answer lives in the invisible architecture of REST APIs. In this deep dive we go from the basic grammar of the web to...

    Credit the people on this episode

  3. Kubernetes Deep Dive: Pod Startup and Failure Modes

    Oct 9, 202632 minAudio

    "Walk me through what happens from kubectl apply to the first request hitting your container." It sounds like a warm-up question, but how you answer it can decide whether you land a senior or staff role. In this deep...

    Credit the people on this episode

  4. Cracking the Senior System Design Interview: RADIO, NFRs, Scale and CAP

    Oct 3, 202650 minAudio

    Senior system design interviews don't test whether you know what a load balancer is. They test how you think under pressure: how you handle ambiguity, weigh brutal trade-offs and defend every box you draw. In this deep...

    Credit the people on this episode

  5. Kafka in Production: Failure Scenarios for Staff-Level Interviews

    Oct 3, 20261 hrAudio

    A single misconfigured setting in Kafka doesn't just slow a page down. It can silently vaporize financial transactions. In this deep dive we walk through real production failure scenarios and the exact reasoning...

    Credit the people on this episode