3 ms·
Does anyone have any plans/thoughts/visions for how we should deal with SRV-records in our standard libraries in different languages? Requesting a DNS-server f
by kawsper 7y ago
Does anyone have any plans/thoughts/visions for how we should deal with SRV-records in our standard libraries in different languages?
Requesting a DNS-server for a SRV-record gives you a prioritised list of IPs and ports, and it is up to the implementor to pick the right one.
As it works currently you would have to do a lookup, pick a endpoint, and then feed it into your HTTP library or TCP library.
This is fine in code that you control, but there are so many libraries out there that expects a hostname or an IP-address with a port number, and in a highly containerised world endpoints are more short lived than ever, so we need retry mechanics as well: Try the next server:port pair in the prioritized list.