updated usage of @CircuitBreaker
annotation
- @CircuitBreaker(name = "backend", fallbackMethod = "exampleFallbackMethod")
+ @CircuitBreaker(name = "@tenantCircuitBreakerResolver.resolveName('backend')", fallbackMethod = "exampleFallbackMethod")
whats happening in background:
- CB configuration is duplicated during spring context startup
- for each registered CB in CBregistry configuration is extracted and copypasted for all supported tenants
- only possible drawback: multitenant setup/configuration is created for all registered CBs (even for those without multitenant resolving