Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why 'Quarkus' chose 'Agroal' instead of 'HikariCP' as the preferred datasource and connection pooling implementation? [closed]

As per the Quarkus documentation :

In Quarkus, the preferred datasource and connection pooling implementation is Agroal.

But, I don't see any review or comparison of 'Agroal' with the well known JDBC Connection Pooling implementation 'HikariCP'.

What makes 'Agroal' better than 'HikariCP', except that BOTH Quarkus and Agroal are from RedHat?

like image 273
RafiAlhamd Avatar asked Feb 09 '20 14:02

RafiAlhamd


People also ask

What is Quarkus Agroal?

Agroal is a modern, lightweight connection pool implementation designed for very high performance and scalability, and features first class integration with the other components in Quarkus, such as security, transaction management components, health, and metrics.

What is Agroal datasource?

Agroal is a advanced datasource connection pool implementation with integration with transaction and security. It's the choice of the Qarkus platform, and it's also readily available in Spring Boot, WildFly, Hibernate …

What is HikariCP connection pool?

Summary. "HikariCP is solid high-performance JDBC connection pool. A connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required. Connection pools may significantly reduce the overall resource usage." - You can find out more here.


1 Answers

With Agroal you can update configuration on runtime

Configuration property overridable at runtime

While Hikari doesn't support it

You can't dynamically update the property values by resetting them on the config object

Another reason is Quarkus integration

features first class integration with the other components in Quarkus, such as security, transaction management components, health metrics

like image 143
user7294900 Avatar answered Sep 24 '22 16:09

user7294900