API gateway/proxy pattern for microservices deployed using Azure Service Fabric

后端 未结 8 1823
遇见更好的自我
遇见更好的自我 2021-01-31 09:01

After watching the BUILD conference videos for Azure Service Fabric, I\'m left imagining how this might be a good fit for our current microservice-based architecture. There is o

8条回答
  •  悲&欢浪女
    2021-01-31 09:21

    When a service is started, it registers it's endpoint with the fabric naming service. Using the Fabric client APIs you can then ask fabric for the registered endpoints, associated with the registered service name.

    So yes, just as you described your case, you would have a gateway that would accept an incoming URI for connection, and then use that path information as the service name lookup, to then create a proxy connection between the incoming request and the actual internal endpoint location.

    Looks like the team as posted one the samples that shows how to do this: https://github.com/Azure/servicefabric-samples/tree/master/samples/Services/VS2015/WordCount

提交回复
热议问题