Azure Service Fabric client call to an Actor service from a remote machine returns unkown address error

你。 提交于 2019-12-11 03:42:45

问题


When trying to connect to a remote dev cluster using the following sample code:

var proxy = ActorProxy.Create<IActor1_NoS>(ActorId.NewId(), "fabric:/applicationname");

I get the following error:

System.Fabric.FabricException : The supplied address was invalid

Note that this code works fine when ran locally from the dev cluster machine. The Dev cluster manifest file has been modified to listen on the machine IP address. The remote machine is a Windows 7. All Service Fabric assemblies were copied over to the executable folder.

How does a client call using the "fabric:/" scheme work behind the scenes? How does a client specify which cluster it is targeting for a fabric call?


回答1:


Actor proxies depend on platform services that are not exposed on public ports. As a result, proxies cannot communicate with actor services on remote machines. They are intended for inter-service communication within the cluster. The general pattern is to create a gateway service within the cluster to provide an ingress point on a public port, which can then relay requests to your actors.



来源:https://stackoverflow.com/questions/32660935/azure-service-fabric-client-call-to-an-actor-service-from-a-remote-machine-retur

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