Tag: design-concurrency
All the articles with the tag "design-concurrency".
-
System Design - How Java Virtual Threads Work
How Java virtual threads let blocking request code handle more concurrent I/O by parking on a small set of carrier threads, and where CPU work, pinning, and resource limits still matter.
-
System Design - How TiKV Raftstore's Batch System Dispatches Messages
A source-code walk through TiKV Raftstore's BatchSystem, RaftPoller, StoreFsm, and PeerFsm: how messages become bounded batches of per-Region work without one busy Region starving the rest.
-
System Design - How Structured Concurrency Works
Structured concurrency makes concurrent tasks belong to a lexical scope: the scope waits for them, propagates failure, and cancels unfinished siblings so work cannot quietly outlive its request.
-
System Design - How Backpressure Protects a Flink Stream Pipeline
Follow a slow Flink sink backward through network buffers, receiver credits, and upstream tasks to see why bounded queues protect a streaming pipeline.
-
System Design - How Fencing Tokens Stop Stale Lock Holders
Why a distributed lease cannot stop a paused worker from writing, and how ordered fencing tokens let a storage system reject stale requests.
-
System Design - How PostgreSQL SKIP LOCKED Powers a Job Queue
Follow two workers claiming jobs with PostgreSQL row locks, then add leases and fencing to survive crashes without promising exactly-once execution.