Basic
The smallest example: four isolates, each with its own surface, on three event loops. A and B have a worker each; C and D share one, a pool. They talk only through topics on the bus, which runs in a worker of its own. Every isolate has a Block and a Crash button, so you can break any part and watch what keeps running. The landing page runs it live.
- Block keeps an isolate's loop busy for 3 s. The kernel kills a loop that stays busy for 2 s and restarts it, and the isolate rebuilds its state from the records its topics still hold.
- Crash reports an error as the isolate's own. Only that isolate restarts, even in a pool.
- Block the main thread freezes every surface on screen, while the loops behind them keep running.
C and D read A's count, so they tick when A does. When A is down they wait for its next record; their own work carries on.
main thread: -- fps
An isolate that crashes more than 3 times within a minute is marked failed, and the kernel stops restarting it.
Own workers: one event loop each
Pool "shared": one worker, one event loop
A pool is a unit of failure: block C and D stalls with it, and both restart together.