-01 towering building a stage, the primary foundation - Chapter 2 single architecture design and preparation work -2-13 HikariCP data sources Brief

Now we can go to projects run by SpringBoot. But not to combine the data layer. Combined with data integration layer made of words. First, the first thought should be the data source.
Here we will choose the database. HikariCP

when springboot upgrade from 1.X to 2.X, when the default data source changes took place. spring officially chose. HikariCP as its default data source. Mainly because of the very fast data sources. Hikari is a Japanese pronunciation. Optical means. It is a high performance jdbc connection pool. This is why Springboot official will use its cause.

Icons can be seen by looking Hikari performance is very high


when we use Springboot is no need to introduce additional dependent, that it has by default to help you to integrate. If you are using in some projects which are SpringMVC words. Want to switch to the data source. Then you can use HikariCP. In this way to the introduction of the corresponding dependent.


Why such a cow? Click Documentation can look at.

ArrayList <Statement> has been replaced FastList became a custom. Its speed faster than the ArrayList.

Lock-called self-assembled ConcurrentBag defined. The wording is borrowed from the inside to the C # .NET.

Use invokestatic replaced incvokevirtual


Hikari still good to Bi Ali's Durid performance of some, we follow the footsteps of SpringBoot2.X also used Hikari.
Most foreign contrast is selected abroad some common data source.

End




 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12031821.html