I’d suggest using existing JDBC connection pool li...
# vertx
o
I’d suggest using existing JDBC connection pool libraries, such as HikariCP. Unless vert.x has its own, I don’t know…
n
Vert.x has native libraries for MySQL, MongoDB, Redis, and Postgres but not for SQL Server.
c
What should i use for SQL Server
my problem is Its connection keeps reset if it stays idle for sometime
o
That’s normal behavior of any database. If connection is unused (and in many other cases), DB can easily close connection. You shouldn’t rely on connection being stable, it’s just against all odds in modern distributed world 🙂 Connection pools can solve it by maintaining configured number of connection, HikariCP is one of the best I know. I think you can easily find how to use it with vert.x
c
Then how its should be handled in code ? HikariCP gives different connection properties
Can you please show me any Code snippet ,What practices to follow in production while connecting to DB through JDBC... This is specifically painful with SQL Server