airavata-courses / CAPtivate

Experiments with distributed system design for Applied Distributed Systems course
0 stars 4 forks source link

Implement circuit breaking #122

Closed adithyaselv closed 4 years ago

adithyaselv commented 4 years ago

There is a limitation in number of requests that our microservices can handle (introduced manually to mimic real systems) and since these systems can't infinitely scale horizontally , there is a issue of overloading of CPU leading to complete failure of the system leading to loss of data.

This can be prevented by implementing circuit breakers which stop the service when a fault is expected

adithyaselv commented 4 years ago

fixed by #124

adithyaselv commented 4 years ago

Circuit breaker visualisation in kiali

circuit-breaking

Results for circuit breaker with Jmeter test for 1000 users per second

circuit-breaking-2