-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client integration with Service Discovery #1037
Comments
I guess having an effectful client provider is also a way to go, but still a question about first-class support in endpoint4s remains. |
Or we could just add a new value to |
Thank you for raising this discussion. I think there are several scenarios here and I am not sure how to support them all in endpoints4s.
If there is a strong need to support the more “dynamic” scenarios, then we should take some time to design the right level of support in endpoints4s. |
Feels like adding a |
I was thinking about how to integrate service discovery in endpoints4s clients. Typically they work by either fetching service URL together with a service call and maybe caching the lookup result for some time, or it could be done off the main service call path. From the looks of it, endpoints4s does not provide a clean way to integrate with it -
EndpointsSettings
are adef
, but lookup calls will typically require and async interaction, so effect monads need to be exposed, like() => Future[EndpointSettings]
or better yetEndpointSettings(baseUri: () => Future[String], ...)
. I know I can just override algebra, but maybe endpoints4s could provide a first-class support for service discovery. Thoughts?The text was updated successfully, but these errors were encountered: