Overload: When Work Arrives Faster Than It Can Be Finished
Imagine a service receiving 60 jobs each second and finishing 50. Ten jobs are left waiting after the first second. If the same pattern continues, another ten join them in the next. The service is still working, but it is falling further behind.
These are invented round numbers. For this example, each job takes about the same effort, the service keeps the same capacity and every unfinished job stays in line. They show overload: more work arrives than the system can handle in that time.
A queue can hold the unfinished work. It cannot supply the missing capacity.
What Actually Happens During a DDoS Attack?
The Waiting Room Starts Filling Up
Queues are useful for short bursts. If arrivals slow down afterward, the service has a chance to catch up. Sustained excess demand creates a different problem: requests wait longer, and storing the waiting work uses memory. Eventually, the queue may fill and new requests may be rejected.
Google's engineering guidance on cascading failures explains this cost of letting work pile up. A longer queue can turn a brief wait into a result that arrives too late to be useful.
The limiting resource varies. A service might run short of processor time, memory or available connections. It may be waiting for a database that cannot keep up. This specific limit is the bottleneck.
Even the number of requests can hide the problem. One request may take far more work than another. As Google's discussion of overload points out, counting requests alone can miss differences in their cost.
The Retry Arrives Before the Recovery
Now suppose an application sends a request and waits for an answer. After a set time, it gives up waiting; that limit is a timeout. The application, also called the caller, then tries again. The original request may still be occupying resources. Its replacement adds more work to the same strained service.
If many callers behave this way together, delays generate retries, and retries generate more delays. The attempted recovery becomes part of the overload.
A timeout also leaves an awkward uncertainty: the operation might have completed even though its reply didn't arrive in time. Repeating an action that changes something can repeat the change.
The Amazon Builders' Library describes several controls for retries. Limit how many attempts a caller makes. Add backoff, a wait before trying again. Add jitter, deliberate random variation in that wait, so callers don't all return at the same instant.
Those choices give the service breathing room while keeping one failed request from creating an unlimited stream of replacements.
- Stay online through short outages with battery power for your router and computer.
- Save your work and shut down cleanly instead of losing it to a flicker.
- Charge your phone from the built-in USB port even while the power is out.
Sometimes Refusing Work Preserves Service
An overloaded system can reduce incoming work, add capacity or do less work for each response. Distributing requests helps when other machines have spare capacity. It helps less when every machine depends on the same overloaded database.
Load shedding means rejecting selected work so the system can continue useful work for others. Accepting everything can leave everyone waiting; controlled refusal can preserve availability, keeping the service usable for requests it can finish.
The cause still needs investigation. Legitimate demand, reduced capacity and a deliberate denial-of-service attack can all produce overload. Slowness alone doesn't distinguish them.
On the web, 503 Service Unavailable is a response code that can indicate temporary overload or planned maintenance. HTTP, the rules for web requests and responses, allows the server to include a Retry-After suggestion saying when the caller should try again.
Resource Exhaustion: The Missing Capacity That Stops the Work

Bandwidth Explained: Why a Fast Plan Can Still Feel Slow

Denial of Service: How an Attack Makes a System Unusable

QUOTE:
"Amateurs hack systems, professionals hack people."
