gpt4 book ai didi

netflix-eureka - 微服务架构——netflix技术栈

转载 作者:行者123 更新时间:2023-12-01 12:33:24 24 4
gpt4 key购买 nike

我们正在开始一个新项目。它将基于微服务架构。为此,我们正在考虑 netflix 技术堆栈。为了开发休息服务,我们将使用 dropwizard。到目前为止,一切都很好。读完一些书后,我感到很困惑。

的不同用例是什么
  • Hystrix
  • Eureka
  • 丝带

我知道现在的问题很模糊。如果有人有疑问,我将添加更多详细信息。

最佳答案

这篇文章对Eureka和Ribbon的解释比较透彻

Netflix Eureka - Service Discovery Server Netflix Eureka allows microservices to register themselves at runtime as they appear in the system landscape.

Netflix Ribbon - Dynamic Routing and Load Balancer Netflix Ribbon can be used by service consumers to lookup services at runtime. Ribbon uses the information available in Eureka to locate appropriate service instances. If more than one instance is found, Ribbon will apply load balancing to spread the requests over the available instances. Ribbon does not run as a separate service but instead as an embedded component in each service consumer.

Netflix Hystrix - Circuit breaker Netflix Hystrix provides circuit breaker capabilities to a service consumer. If a service doesn’t respond (e.g. due to a timeout or a communication error), Hystrix can redirect the call to an internal fallback method in the service consumer. If a service repeatedly fails to respond, Hystrix will open the circuit and fast fail (i.e. call the internal fallback method without trying to call the service) on every subsequent call until the service is available again. To determine wether the service is available again Hystrix allow some requests to try out the service even if the circuit is open. Hystrix executes embedded within its service consumer.

http://callistaenterprise.se/blogg/teknik/2015/04/10/building-microservices-with-spring-cloud-and-netflix-oss-part-1/

关于netflix-eureka - 微服务架构——netflix技术栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31400968/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com