问题
I have a service fabric cluster hosting legacy WCF services. Each of the WCF services is allocated a port number and uses the net.tcp protocol.
I wonder what is the best way for service discovery and auto-scaling?
I tried service fabric's DNS service and let service fabric assigns the port number for each service, however, the client won't know about the dynamic port number. The DNS service can only resolve the ip-address based on service DNS name.
Since each service is on a specific port, I can't have multiple copies of the same service on the same node without changing the port number. I can auto-scale a new node, but this seems to be too excessive, and not using all resources on the node?
Can service fabric's reverse proxy do this? Dynamically map to new instances of services on different ports?
来源:https://stackoverflow.com/questions/58056392/service-fabric-service-discovery-without-port-number