System architectures, taken apart live
Every topic below is a running simulation, not a page of prose. Pick one, switch its behaviour, break it on purpose, and watch what actually happens.
Concurrency vs Parallelism
Dealing with a lot of things at once vs. doing a lot of things at once — switch from Sequential to Parallel and watch the wall clock actually drop instead of just interleaving.
Circuit Breaker
Open, half-open and closed states protecting a failing dependency.
Consistent Hashing
Why adding one node shouldn't reshuffle your entire cache.
Raft Consensus
Leader election, heartbeats and log replication — kill the leader mid-demo and watch the cluster vote in a new one before a single write is lost.
Retrieval-Augmented Generation
Embed a question, pull the nearest chunks from a vector store, and stuff them into the prompt — turn retrieval off and watch the same model start hallucinating an answer instead.