classServiceLocator extends Actor with ActorSettings with ActorLogging
A service locator that can get all addresses for a service using DNS SRV lookups.
When considering DNS SRV we ignore priority and weight, sd they appear pretty useless
for distributing across service instances as the information is often static in nature.
If this turns out not to be the case though then we could certainly consider them.
We also avoid caching requests at the level of this actor as the underlying DNS
resolver will cache heavily for us. Again though, caching could be introduced at this
actor's level if we find that it is required.
A service locator that can get all addresses for a service using DNS SRV lookups. When considering DNS SRV we ignore priority and weight, sd they appear pretty useless for distributing across service instances as the information is often static in nature. If this turns out not to be the case though then we could certainly consider them. We also avoid caching requests at the level of this actor as the underlying DNS resolver will cache heavily for us. Again though, caching could be introduced at this actor's level if we find that it is required.