Coder Social home page Coder Social logo

service_breaker's Introduction

微服务高可用之熔断器实现原理与 Golang 实践

在微服务架构中,经常会碰到服务超时或通讯失败的问题,由于服务间层层依赖,很可能由于某个服务出现问题,不合理的重试和超时设置,导致问题层层传递引发雪崩现象,而限流和熔断是解决这个问题重要的方式。

本章内容提要:

  • 微服务高可用容错机制
  • 熔断器设计原理及 Golang 实现
  • 服务网格和代理网关熔断机制

阅读全文链接

微服务熔断实现

扫码关注微信订阅号支持:

技术岁月

techyears

技术岁月

service_breaker's People

Stargazers

 avatar rocketzhang avatar  avatar kinleyma avatar  avatar Scott9(阵雨) avatar  avatar 贺鹏Kavin avatar

Watchers

贺鹏Kavin avatar

Forkers

luyou7 gdzy1987

service_breaker's Issues

断路器半开状态转换问题

断路器在半开状态转换到打开状态的逻辑实现感觉有问题(获取是halfMaxCalls变量定义有问题),根据代码中的规则,在半开状态,只有连续调用成功halfMaxCalls才能生效。当断路器在半开状态并且执行失败进入onFail()方法中,断路器会转换成打开状态,不能一定保证在半开状态还能执行halfMaxCalls次

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.