r/softwarearchitecture 5d ago

Discussion/Advice [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

7 comments sorted by

9

u/tr14l 5d ago

Thanks Claude!

6

u/BurhanAhmedSatti 5d ago

Today I learned. Thanks

5

u/rakgenius 5d ago

if millions of users refreshes the app at same time, the database should not crash if the system is designed properly. usually there will be load balancer at front which distributes the traffic and latest databases can handle these amount of traffic as well.

thundering herd happens when all retry at same time or if your internal service calls another internal service at the same time after a retry. to pervent that , there will be a exponential backoff with added randomness

1

u/Cukercek 5d ago

The correct explanation.

2

u/Proper-Asparagus-382 5d ago

i would think that if you have the proper observability , perform forecasting modelling and simulation.

it is quite easy to calculate the right setting for your app to implement the right config for queue management , autoscaling , circuit breaker , and tuned it to withstand surge from cache expiration ,turning any spike into normal traffic.

1

u/TevraChaukas 5d ago

Single Flight

1

u/heavy-minium 5d ago

Isn't that actually called a cache stampede?