首页 > 其他 > 详细

Circuit Breaker Features

时间:2017-01-19 01:37:06      阅读:290      评论:0      收藏:0      [点我收藏+]

Better to use a circuit breaker which supports the following set of features:

  • Automatically time-out calls that take longer than a defined threshold.
  • Maintain a small thread-pool (or semaphore) for each dependency and if it becomes full reject commands immediately, rather than queueing them up.
  • Trip a circuit-breaker automatically or manually to stop all requests to a service for a period of time if the error percentage passes a threshold.
  • Perform fallback logic when a request fails, is rejected, timed-out or short-circuited.

Hystrix also provides the following features:

  • Measure successes and failures (exceptions thrown by the client), and timeouts.

  • A dashboard to help diagnose issues.

Circuit Breaker Features

原文:http://www.cnblogs.com/codingforum/p/6298340.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!