Improving Spring Boot App Performance With Hikari Db Connection Pool | @javacodeex
#javacodeex #spring #springbootseries #springboot #restapi
Today's video will dive deep into database connection pooling with HikariCP in a Spring Boot application. We'll cover:
1. What a connection pool is
2. Why you need a connection pool
3. How to add HikariCP connection pooling to your Spring Boot application
JMeter Download Link: [ Ссылка ]
application.properties
---------------------------------------
Database Connection Properties
spring.application.name=student
server.port=9090
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=****
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
# HikariCP settings
spring.datasource.hikari.connection-timeout=20000
spring.datasource.hikari.maximum-pool-size=10
spring.datasource.hikari.minimum-idle=5
spring.datasource.hikari.idle-timeout=300000
spring.datasource.hikari.pool-name=HikariCP
spring.datasource.hikari.max-lifetime=600000
# Logging settings
logging.level.com.zaxxer.hikari.HikariConfig=DEBUG
logging.level.com.zaxxer.hikari=TRACE
Table of Content
0:00 Introduction
4:00 Sample Application
5:13 Download JMeter
More Videos
Spring Boot Reactive REST API: [ Ссылка ]-
Spring Boot AOP: [ Ссылка ]
Spring Boot Profiles: [ Ссылка ]
Spring Boot Data JPA with mySQL: [ Ссылка ]
Spring Boot Data JPA with PostgreSQL: [ Ссылка ]
Spring Boot Data JPA with H2DB: [ Ссылка ]
Spring Boot Data JPA with GrahQL: [ Ссылка ]
Spring Boot Docker: [ Ссылка ]
Docker Installation in Windows 10/11: [ Ссылка ]
Jenkins Tutorial: [ Ссылка ]
Subscribe: [ Ссылка ]
🎉 Thank You for Watching! 🎉
If you enjoyed this video and found it helpful, don't forget to show your support:
👍 Like the video to let us know you enjoyed it!
🔗 Share it with your friends and fellow developers.
💬 Comment below with your thoughts or any questions you might have.
And most importantly, Subscribe to our channel for more insightful Java development tutorials! Hit the notification bell 🔔 so you never miss an update.
Thank you for being an amazing part of our community!
Let's keep learning and growing together. 🚀
🔗 YouTube: [ Ссылка ]
![](https://s2.save4k.ru/pic/BubglSQmaig/maxresdefault.jpg)