Staying up
Circuit breakers, concurrency, and seeing inside a running system.
After this course: You can stop a failing dependency from taking your system with it, reason about what runs at the same time as what, and answer "is it healthy?" with evidence instead of a guess.
4 lessons, 73 minutes of reading. $29, yours for good.
- Circuit breakers: stop calling the thing that is down (free): One dependency gets slow. Within minutes everything is slow — including the parts that have nothing to do with it. Then it all falls over together. When something is down, the fastest correct response is to stop calling it. Failing immediately is a feature: it frees the resources everything else needs to keep working.
- Threads, async, and processes — choosing, and not corrupting things: You add threads to make it faster and it is barely faster. Or it is faster and now produces a wrong number occasionally, in a way you cannot reproduce. Pick the concurrency model from what you are blocked on. Then make shared state either immutable or explicitly guarded — there is no third option that works.
- Observability: what you always want to see: Something is wrong. Everything you can see is green. You start guessing, and the guessing is the outage — the fault was findable in thirty seconds if the right number had been on a screen. Instrument the promises you make to users, not the parts you happen to own. "The API is up" is not a promise anyone cares about.
- The bug that leaves no trace: overwriting work you never saw: Nothing failed. No error, no conflict, no warning. A change somebody made last week is simply not in the file any more, and nobody can say when it left. A write that does not check what it is replacing cannot tell your edits from your edits plus the silent deletion of somebody else’s. Carry the version you read, and refuse if it moved.
Every course