CodingLevel 3

Error handling

Easynot started
Mediumnot started
Hardnot started
Error handling & resiliencePreventing a single broken service from bringing down the entire company.3 minResource leak (handles that never close)Every request opens a handle and forgets to close it, the pool fills until new work is turned away.3 minConnection pool exhaustionA slow dependency quietly holds every connection hostage until new requests have nowhere to go.4 minHTTP connection leaksWhy failing to read the response body will slowly choke your server to death.3 minSQL data accessExtracting exactly what you need, nothing more, nothing less.3 minBlocking accept with no timeoutA server thread that blocks forever on a stalled connection is a thread you'll never get back.4 minConnection pool leaksBorrowing a book from the library and never returning it.3 minFile descriptor leaksEvery open() hands back a file descriptor from a finite per-process table, forget to close() and the table fills until the process can open nothing more.5 minHandling a write errorA write isn't done when the function returns, it's done when the data is durable. Until then, never tell the client "saved."4 minHTTP client timeoutsWhy default HTTP clients are dangerous ticking time bombs.3 minHTTP retries without backoffHow 'trying again immediately' accidentally launches a DDoS attack against your own database.3 minHTTP retry idempotencyWhy automatically retrying a failed HTTP POST request might accidentally charge a user's credit card twice.3 minHTTP status ignored (fetch)Why JavaScript's `fetch()` pretends that a 500 Server Error is a massive success.3 minK-fold cross-validationHow to ensure your model didn't just get lucky on the test test.3 minTarget leakageWhen your model cheats on the final exam by looking at the answer key.3 minTemp file leaksA temp file is a guest, not a tenant, if nobody shows it the door, it stays forever.3 minTime series validationWhy randomly splitting data will make you lose millions in the stock market.3 minTLS socket without a clean shutdownHanging up by yanking the cable instead of saying goodbye, the other side can't tell whether you finished talking or got cut off, so it keeps the line open just in case.4 min