Service fabric service discovery without port number

℡╲_俬逩灬. 提交于 2020-01-16 14:53:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!