Skip to content

Multi-tenant system with separated circuit breakers? #2564

Answered by martincostello
matt-rauch asked this question in Q&A
Discussion options

You must be logged in to vote

Well it's just going to use more resources. You'd have to test it out and see how it fares to work exactly how many.

"Expensive" is a relative term. Throwing exceptions to control program flow is relatively expensive, but how often it's done determines whether doing so would cause performance issues in a web application deployed at scale.

As a general rule of thumb, it's best to create as few execution strategies as you can and re-use them. For example, if you wanted a 1 second retry policy for all request, you'd create a single timeout strategy configured to do that and re-use it for every single request - you wouldn't create a new one for every request.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@matt-rauch
Comment options

@matt-rauch
Comment options

@martincostello
Comment options

Answer selected by matt-rauch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants