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

后端 未结 8 1810
遇见更好的自我
遇见更好的自我 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:22

    We implemented a HTTP gateway service for this purpose as well. To make sure we can have one HTTP gateway for any internal protocol, we implemented the gateway for HTTP based internal services (like ASP.NET WebAPIs) using an ASP.NET 5 middleware. It routes requests from e.g /service to an internal Service Fabric address like fabric:/myapp/myservice by using the ServicePartitionClient and some retry logic from CommunicationClientFactoryBase.

    We open-sourced this middleware and you can find it here: https://github.com/c3-ls/ServiceFabric-HttpServiceGateway

    There's also some more documentation in the wiki of the project.

提交回复
热议问题