resilience4j bulkhead与@bulkhead在Springboot中
我正在使用@BulkHead注释在Springboot中实现舱壁图案。我有这个配置 弹性4J.Bulkhead: 实例: PerformancesService: MaxConcurrentCalls:2 MaxWaitDuration:
我的服务方法上有 1毫秒 @bulkhead(name =“ performanceservice”,halldbackMethod =“ getDefaultPerformancedata”),
但是它无法正常工作。当我调用性能端点时,我直接获得getDefaultPerformancedAta()。
我做错了什么。
I am implementing bulkhead pattern in springboot using @bulkhead annotation. I have this configuration
resilience4j.bulkhead:
instances:
performanceService:
maxConcurrentCalls: 2
maxWaitDuration: 1ms
on my service method I have
@Bulkhead(name = "performanceService", fallbackMethod = "getDefaultPerformanceData")
However it is not working. When I call performance endpoint I am directly getting the getDefaultPerformanceData().
is there something I am doing wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论