System InternalsLearn ↗Event LoopCONNECTSETGETDELTICKCLOSE

Event Loop — pick a scenario

0/3 done

Pick one and press Start, then click Next › to step through it.

Watch for

Commands from different clients executing strictly one at a time on the single thread — never two at once.

More about this scenario
You'll learn

How one thread serves many clients by never blocking — accept, then run each ready command to completion in turn.

How it runs

CONNECT puts a client in the accept backlog. Each TICK is one turn of the loop: it accepts pending connections and runs the ready command callbacks, one after another, against the shared in-memory store.