Web ロールまたは worker ロールの内部エンドポイントは、どのように負荷分散を行うことができますか? ServiceDefinition.csdef でエンドポイントを として宣言し、次の<InternalEndpoint name="GeneratePDF" protocol="tcp" />
ように公開するとします。
// define an internal endpoint for inter-role traffic
RoleInstanceEndpoint internalEndPoint =
RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["IGeneratePDF"];
this.serviceHost.AddServiceEndpoint(
typeof(IGeneratePDF),
binding,
String.Format("net.tcp://{0}/GeneratePDF", internalEndPoint.IPEndpoint));
必要な各インスタンスを呼び出すことができるエンドポイントを取得するよりも。しかし、この方法では負荷分散が得られません。これが私が望んでいることです。