[Recommended] database connection pool

 

 

One, HikariCP

https://github.com/brettwooldridge/HikariCP

 

HikariCP Github Address:  https://github.com/brettwooldridge/HikariCP

HikariCP database connection pool, and is known as the history of the fastest, SpringBoot2.0 HikariCP also been adopted as the default connection pool configuration.

Why so fast HikariCP

1.1 very small amount of code:
To know the terms for connection pooling code the less, take up the less cpu and memory, Bug appearance probability is smaller, so on behalf of his execution rate, which is one of the reasons why the popular HikariCP
1.2 stability, reliability:
HikariCP is withstood the test of the market, through the Lao Dan furnace, now get SpringBoot's Pass, embarked on a pinnacle of life.
1.3 is fast:
the light has robust nature can not, the tank is very robust, but the aircraft was running, but they rely on their own HikariCP less code, rewrite data structure, etc., the cut fastest connection pool champion

HikariCP fast thanks to:

1.1 优化并精简字节码
1.2 使用FastList替代ArrayList
1.3 ConcurrentBag:更好的并发集合类实现

 

 

 

Published 53 original articles · won praise 0 · Views 822

Guess you like

Origin blog.csdn.net/G971005287W/article/details/105165723