具有断路器模式的C#中的微服务示例 [英] Microservices example in C# with circuit breaker pattern

查看:121
本文介绍了具有断路器模式的C#中的微服务示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在微服务中实现断路器设计模式。但是我找不到任何例子。

你能提供吗?我帮忙。



-Lax

Hi,
I need to implement circuit breaker design pattern in the Micro services.But i am not able to find any example for that.
Can you please provide me some, help in that.

-Lax

推荐答案

你可以自己轻松找到一些:

断路器设计模式 - 维基百科,免费的百科全书 [ ^ ],

自动重试和断路器变得简单Anders Lybecker'博客! [ ^ ],

alexandrnikitin / CircuitBreaker.Net:Circuit ... - GitHub [ ^ ] 。



或者,还有一些:让我谷歌那个给你 [ ^ ]。



但是我或者可能没有帮助你。首先,请看我对这个问题的评论。此外,不要试图否认代码示例的有用性,我必须说它既不是必要的也不是认真重要的软件开发方式。再次,认真对待设计模式。这不是你必须开始的地方。此时,你不能确定你真的需要这种设计模式。



-SA
You could easily find some out by yourself:
Circuit breaker design pattern - Wikipedia, the free encyclopedia[^],
Automatic Retry and Circuit Breaker made easy | Anders Lybecker's Weblog![^],
alexandrnikitin/CircuitBreaker.Net: Circuit… — GitHub[^].

Or, for some more: Let me Google that for you[^].

But it my or may not help you. First of all, please see my comment to the question. Besides, not trying to deny the usefulness of code samples, I must say it's neither necessary nor seriously important way of doing software development. And again, take design pattern seriously. This is not where you have to start with. At this moment, you cannot be sure that you really need this design pattern.

—SA


这篇关于具有断路器模式的C#中的微服务示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆