设置我的 Service Fabric 应用程序以在所有服务之间共享端口
Set up my Service Fabric App to share ports between all services
我正在尝试创建一个 Service Fabric 应用程序,我希望能够通过同一个端口调用这些服务,仅更改 URL。
例如:
我有几个服务运行,默认情况下我必须调用:
Uri uri = new Uri("http://myservicedomain-dev.com:[port]/api/controller");
我想要的是访问每个服务调用:
Uri uri = new Uri("http://myservicesdomain-dev.com:80/[myservicename]/api/mycontroller");
我在任何地方都找不到如何设置这种端点配置。
下面是包含两种配置的图像 link,我需要标记为 "Service instances using HTTP on different URLs with port sharing" 的图像:
https://docs.microsoft.com/en-us/azure/service-fabric/media/service-fabric-connect-and-communicate-with-services/serviceendpoints.png
提前致谢。
为此,您需要创建一个 API 将流量路由到适当的端点。
您引用的图像指的是同一主机进程上不同端口上的不同服务类型。
我正在尝试创建一个 Service Fabric 应用程序,我希望能够通过同一个端口调用这些服务,仅更改 URL。
例如:
我有几个服务运行,默认情况下我必须调用:
Uri uri = new Uri("http://myservicedomain-dev.com:[port]/api/controller");
我想要的是访问每个服务调用:
Uri uri = new Uri("http://myservicesdomain-dev.com:80/[myservicename]/api/mycontroller");
我在任何地方都找不到如何设置这种端点配置。
下面是包含两种配置的图像 link,我需要标记为 "Service instances using HTTP on different URLs with port sharing" 的图像: https://docs.microsoft.com/en-us/azure/service-fabric/media/service-fabric-connect-and-communicate-with-services/serviceendpoints.png
提前致谢。
为此,您需要创建一个 API 将流量路由到适当的端点。
您引用的图像指的是同一主机进程上不同端口上的不同服务类型。