~/talk

Hikari Connection Pooling with Spring Boot

Talkat Heapcon 2024 · 2024-11-07..11-08· [java]
links:none on file
slides:none on file

Hikari connection pooling for Spring Boot shows concrete knobs and measurable effects: min=5 max=10 scales to demand and uses a housekeeper every 30s to retire idle connections; connection timeout=5s caps response time and produces timeout exceptions when pool is saturated. Experiments use JMeter with Grafana/OpenTelemetry/Prometheus. Network latency needs more connections (bedroom vs EC2: ~6 vs 2), slow queries hog connections (1800 cheap : 50 slow), separate datasources rescued latency, and reducing connections (248→96) cut median latency 100ms→3ms.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Connection pool basics
  3. 3:21Hikari pool features
  4. 6:12Configuring connection limits
  5. 8:46Idle connection management
  6. 10:57Connection timeout handling
  7. 13:06Mass extinction events
  8. 15:19Maximum lifetime parameter
  9. 17:25Keep-alive mechanism
  10. 17:45Common performance pitfalls
  11. 20:12Query execution imbalance
  12. 23:05Cluster database issues
  13. 25:57Database resource limits
  14. 27:02Real-world scalability test
  15. 28:50Connection limits impact
  16. 29:10Q&A and tools
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.