I Built a Spring Boot 4 App to Put PgBouncer to the Test
Part 1: Build a production-style Kotlin testbed with hexagonal architecture, PostgreSQL, Testcontainers, and a repeatable concurrency benchmark
Aug 17, 20269 min read8

Search for a command to run...
Series
A practical two-part guide to building a Spring Boot 4 and Kotlin benchmark application, configuring PgBouncer transaction pooling, and measuring how it protects PostgreSQL under concurrent load.
Part 1: Build a production-style Kotlin testbed with hexagonal architecture, PostgreSQL, Testcontainers, and a repeatable concurrency benchmark

Part 2: Add transaction pooling to the benchmark app, avoid prepared-statement traps, and see where connection pooling earns its keep
