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