Load balancing: equal requests are not equal work topologyRound robin sends each new request to the next server in a fixed cycle. Each highlight marks an arrival. Components: Users (client): normal; Load balancer (gateway): normal; Server A (server): normal; Server B (server): normal, highlighted; Small server C (server): normal. Moving: request from Users to Load balancer.UsersLoad balancerServer AServer BSmall server Crequest
Spread the load, add capacity and watch where the limits move.
Start with: Load balancing: equal requests are not equal work · 1 story available
Circuit breaker: stop calling what is already failing topologyEach error adds one to a run of consecutive failures. At five in a row, the breaker opens. Components: Client (client): normal; Circuit breaker (circuit breaker): closed, normal; Dependency (server): degraded. Moving: request from Client to Circuit breaker; error from Dependency to Circuit breaker.ClientCircuit breakerclosedDependencydegradedrequesterror
Timeouts, circuit breakers and failing without taking everything down.
Start with: Circuit breaker: stop calling what is already failing · 2 stories available
Cache-aside: check the cache before the database topologyWithout a cache, every read goes to the database, even when the key is the same. Components: Client (client): normal; App (server): normal; Cache (cache): normal; Database (database): busy. Moving: response from Database to App; request from App to Database.ClientAppCacheDatabasebusyresponserequest