Re:Using load shedding to avoid overload
by lokar on Sunday October 10, 2021 @11:49PM
(#28824448)
Consider the two steady states:
You are keeping up and the queue is mostly empty, the order does not matter
You are not keeping up, the queue is growing. If nothing changes, the age of items removed from the front will grow and grow, and eventually all be timeouts or abandoned.
Re:Using load shedding to avoid overload
by tome on Monday October 11, 2021 @08:56AM
(#28827790)
Oh, I think I see. With a queue the failure state is that everything times out. With a stack you risk sacrificing only the oldest requests and keep the newest alive.
You are keeping up and the queue is mostly empty, the order does not matter
You are not keeping up, the queue is growing. If nothing changes, the age of items removed from the front will grow and grow, and eventually all be timeouts or abandoned.