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

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

    We have used an open source project called Traefik with amazing success. There is an Azure Service Fabric wrapper around it - it's essentially a GoLang exe that is deployed onto the cluster as Managed Executable.

    It supports circuit breakers, weighted round robin LB, path & header version routing (this is awesome for hosting multiple API versions), the list goes on. And its got a handy portal to view the config and health stats.

    The real power in it lies in how you configure it. It's done via the service itself in the ServiceManifest.xml. This allows you to deploy new services and have them immediately able to be routed to - no need to update a routing table etc.

    Example

    
      
          
            
              
              
              
            
          
      
    
    

    Highly recommended!

提交回复
热议问题