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
We have DiscoveryClientNameResolver which allows to specify grpc client target like discovery:///service-name. Actual ip:port data is fetched from consul. Port also taken from gRPC_port metadata.
I suggest adding gRPC_service_config metadata key, similar to gRPC_port. Under this key grpc servers may publish service config.
This feature already present in standard DNS name resolver (details).
I already implement this in my custom name resolver and it work just fine.
On server side I specify my desired service config:
We have DiscoveryClientNameResolver which allows to specify grpc client target like
discovery:///service-name
. Actual ip:port data is fetched from consul. Port also taken fromgRPC_port
metadata.I suggest adding
gRPC_service_config
metadata key, similar togRPC_port
. Under this key grpc servers may publish service config.This feature already present in standard DNS name resolver (details).
I already implement this in my custom name resolver and it work just fine.
On server side I specify my desired service config:
Server's application.yml
On client side my name resolver parse it and pass to listener:
Code sample
The text was updated successfully, but these errors were encountered: