Should Hystrix replace existing JDBC/HTTP connection pools, or delegate to them?
NickName:user1305156 Ask DateTime:2015-06-11T07:22:23

Should Hystrix replace existing JDBC/HTTP connection pools, or delegate to them?

Many applications use connection pools for both HTTP and JDBC calls for resiliency. But using and configuring these 2 types of pools is very different. This duplicates the complexity of implementing resiliency patterns that are common to both - such as timeouts, retries, caching / alerting fallbacks, circuit breaking, and monitoring.

To my mind Hystrix offers common approaches of configuring and implementing these same resiliency patterns for both HTTP and JDBC calls.

My questions are:

  1. Could Hystrix theoretically replace existing HTTP and JDBC connection pools entirely?
  2. If so, what are the pros and cons of doing so?

Replacing them entirely reduces the world of complexity that surrounds these connection pools - with their attendant timeout and validation query properties etc. However I am hazy about how Hystrix could "keep alive" JDBC / HTTP connections - and therefore avoid expensive connection setup costs - without delegating to existing libraries specialized for these tasks.

For context I have a DropWizard app, which uses Tomcat DBCP for its JDBC connection pool and Apache HttpClient for its HTTP connection pools.

Copyright Notice:Content Author:「user1305156」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30768990/should-hystrix-replace-existing-jdbc-http-connection-pools-or-delegate-to-them

More about “Should Hystrix replace existing JDBC/HTTP connection pools, or delegate to them?” related questions

Should Hystrix replace existing JDBC/HTTP connection pools, or delegate to them?

Many applications use connection pools for both HTTP and JDBC calls for resiliency. But using and configuring these 2 types of pools is very different. This duplicates the complexity of implementing

Show Detail

Flushing JDBC connection pools

Does anyone know the best (or any) way to flush a JDBC connection pool? I can't find anything obvious in the documentation. It appears connection pools aren't meant to ever be deleted. My current

Show Detail

Monitoring JDBC connection pools

I'm connecting my Java application via JDBC driver and Tomcat configurations. I used this class to define my configurations. But sometimes, I got following exceptions: com.mysql.jdbc.exceptions.

Show Detail

JTA aware JDBC connection pools

I've been looking at a number of JDBC connection pools, but I have the specific requirement that the pool needs to be JTA aware, which leaves me with a short list of Apache DBCP and OW2 XAPool. The...

Show Detail

Some confusion surrounding JDBC Resources and JDBC Connection pools Glassfish

I am about to make a connection to my database and I am using EJB and JPA. I have recently started doing these technologies so I have some problems understand it all at this point:) I know that the

Show Detail

Ratpack, RxJava, Hystrix, and Blocking - Thread pools and boundaries

I am using ratpack, together with ratpack-hystrix, and have something akin to the following: return RxRatpack.promiseSingle( new HystrixObservableCommand<List<VersionedArtifactMetadata&g...

Show Detail

Using special JDBC driver features with dynamic proxy connection pools

We are evaluating a JTA transaction manager for a legacy Oracle JDBC project and have looked at Bitronix and Atomikos so far. The java.sql.DataSource implementations of both the Bitronix and Atomi...

Show Detail

Monitoring JDBC Connection Pools on WebSpere 7

Recently we started in production with a new application hosted in several WebSphere Aplication Server and would be nice to have them monitored/graphed with more or less the same parameters we moni...

Show Detail

Is there any CLI way to show information about Glassfish JDBC connection pool?

The only relevant command that I found is: NAME list-jdbc-connection-pools - lists all JDBC connection pools EXAMPLES This example lists the existing JDBC connection pools...

Show Detail

Comparing Glassfish Connection Pool With Other Connection Pools

Has anyone done any benchmarking comparing the glassfish connection pool with other fast jdbc connection pools like BoneCP or Tomcat 7 jdbc pool? I am exploring out ways to create the glassfish

Show Detail