Course
Distributed Systems Fundamentals
How clocks, retries, consistency levels, consensus, and deployment windows actually behave across a network — and the production failure modes that only exist because it is one.
Keep reading
Related articles from the SudoSecurity blog.
What is Platform as a Service? The Sweet Spot Between "Too Easy" and "Too Much Work"
Platform as a Service sits between raw servers and fully managed software. You push code, the platform runs it. No Nginx config, no OS patches, no 3 AM server alerts. Here is what PaaS actually gives you, what it costs you in control, and how to decide if it is the right layer for your application.
The World now is Serverless and Container based
A new report from Datadog reveals that serverless computing could be entering the mainstream. This has already been the case in my world for the past few years. Results show that more than half of all organizations are using serverless on one of the three major public cloud providers: Amazon,
AWS Emulator Puts AWS on Your Laptop. Keep Your IAM Tests Off It.
AWS released AWS Emulator on November 11, a free local server that answers AWS API calls on 127.0.0.1 with per-run keys and fresh certificates.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.
Reviews
Enrolled members can rate this course.
No reviews yet.
Time, Retries, and Delivery
What the network and the clock actually promise — timeouts that say nothing, retries that amplify incidents, and duplicates that are guaranteed.
- 01Clocks Are Lying to YouWall-clock timestamps cannot order events across machines, because NTP is allowed to move your clock backward.16mOpen
- 02A Timeout Is Not an AnswerA timeout tells you a response did not arrive — retry discipline is what decides whether that ambiguity becomes a duplicate charge or a retry storm.15mOpen
- 03Idempotency Is a Processing PropertyExactly-once delivery does not exist; exactly-once processing is a dedup key committed in the same transaction as the effect.15mOpen
- 04The Queue Promises Delivery, Not Order, Not OnceVisibility timeouts, offset commits, and dead-letter queues are the real queue contract — at least once, possibly out of order, maybe twice to a dead consumer.15mOpen
Consistency in Real Systems
The spectrum between linearizable and eventual, what CAP forces during a partition, and why R + W > N is not the guarantee it is sold as.
- 01Consistency Is a Slider, Not a SwitchLinearizable, sequential, causal, and eventual are points on a spectrum — and most real reads sit somewhere between 'just committed' and 'probably replayed'.16mOpen
- 02CAP Is a Question About PartitionsCAP does not ask you to pick two of three; it asks what each part of your system does on the day the network splits.14mOpen
- 03R + W > N Is an Availability DialQuorum arithmetic promises overlap between read and write sets, but sloppy quorums, hinted handoff, and client-supplied timestamps quietly refund the guarantee.14mOpen
- 04There Is No BEGIN Across a Network BoundaryTwo-phase commit blocks on a dead coordinator, sagas compensate instead of rolling back, and the outbox pattern exists because a commit and a publish cannot be atomic.16mOpen
Consensus and Coordination
How Raft reaches agreement, why electing a leader does not stop the old one, and the fencing tokens that close the gap.
- 01Consensus Is Not ElectionRaft's real job is getting a cluster to commit log entries in one order despite crashes — election is just how it buys the right to try.16mOpen
- 02A Lock Without a Fence Is a SuggestionLeases expire while their holder is frozen mid-write; only a monotonically checked fencing token stops the deposed leader from writing anyway.15mOpen
Failure Modes That Only Exist in Production
Partial failure, metastable cascades, mixed-version fleets, and tail latency — the problems that appear only at scale and under real load.
- 01Slow Is More Dangerous Than DownA dependency answering in 30 seconds instead of 30 milliseconds does more damage than one that refuses connections — and your retry policy can keep the outage alive after the cause heals.16mOpen
- 02Half Your Fleet Is Always BehindA rolling deploy is a window where N and N−1 coexist, so every contract — schema, wire format, API — must be compatible in both directions.14mOpen
- 03You Cannot Grep a Distributed SystemA request spanning forty services needs a propagated trace context, not forty log streams — and users live at p99, where one slow dependency hits most of them.14mOpen