JDBC connection pools

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JDBC connection pools

Marco Villalobos-2
Currently, my jobs that require JDBC initialize a connection in the open method directly via JDBC driver.

1. What are the established best practices for this?
2. Is it better to use a connection pool that can validate the connection and reconnect?
3. Would each operator require its own connection pool?  

I'd like the communities thought on this topic.
Reply | Threaded
Open this post in threaded view
|

Re: JDBC connection pools

Matthias
Hi Marco,
have you had a look into the connector documentation ([1] for the regular connector or [2] for the SQL connector)? Maybe, discussions about connection pooling in [3] and [4] or the code snippets provided in the JavaDoc of JdbcInputFormat [5] help as well.

Best,
Matthias


On Thu, Jan 21, 2021 at 8:19 PM Marco Villalobos <[hidden email]> wrote:
Currently, my jobs that require JDBC initialize a connection in the open method directly via JDBC driver.

1. What are the established best practices for this?
2. Is it better to use a connection pool that can validate the connection and reconnect?
3. Would each operator require its own connection pool?  

I'd like the communities thought on this topic.