You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of name resolution relies on the JVM name resolution implementation and in case of temporary DNS unavailability can't establish a connection to a remote host when the cached DNS record expires. Returning the latest know IP address might not be the right solution for all cases, but for some cases, it could be a reasonable fallback in case of DNS unavailability.
The primary use-case for this is API clients that are connecting to a limited number of endpoints and would like to have these connections reliable.
This issue is to discuss the need for such functionality in zio-nio. The new layer will be a simple String => IO[..., SocketAddress] and provide a few built-in building blocks like a fallback to the latest know address, background refresh (to avoid blocking calls when cache TTL expires), and others.
The current implementation of name resolution relies on the JVM name resolution implementation and in case of temporary DNS unavailability can't establish a connection to a remote host when the cached DNS record expires. Returning the latest know IP address might not be the right solution for all cases, but for some cases, it could be a reasonable fallback in case of DNS unavailability.
The primary use-case for this is API clients that are connecting to a limited number of endpoints and would like to have these connections reliable.
This issue is to discuss the need for such functionality in zio-nio. The new layer will be a simple
String => IO[..., SocketAddress]
and provide a few built-in building blocks like a fallback to the latest know address, background refresh (to avoid blocking calls when cache TTL expires), and others.The API could be like (PoC)
This layer can also provide additional aspects:
The text was updated successfully, but these errors were encountered: