alaisi / postgres-async-driver

Asynchronous PostgreSQL Java driver
Apache License 2.0
287 stars 38 forks source link

Host name is resolved only upon client creation. #49

Open jaceksokol opened 7 years ago

jaceksokol commented 7 years ago

I have a setup where there is a AWS RDS Postgresql database registered under private DNS. The problem I'm experiencing is that the IP under this domain can change dynamically and the client is caching first resolved value. This makes the client to connect to old DB instance and thus unable to recover.