Isoloop runtime topology

Main thread, an own worker, a pool worker and the bus worker

Isoloop runtime topology Main thread, an own worker, a pool worker and the bus worker Host app · createKernel() checks · Main thread Host app createKernel() checks Supervisor · beats · restarts · fate · Main thread Supervisor beats · restarts · fate Compositor · one rAF, frame budget · Main thread Compositor one rAF, frame budget Surfaces · <iso-surface> per visual · Main thread Surfaces <iso-surface> per visual Bus controller · ports · supervises bus · Main thread Bus controller ports · supervises bus Host connection · isoloop:host:<n> · Main thread Host connection isoloop:host:<n> Isolate modules · import(init.src) · Architecture component Isolate modules import(init.src) 1 isolate · own realm and document · Own worker · 1 thread · 1 isolate 1 isolate own realm and document 2 visual members · a root each, 1 document · Pool worker · 1 thread · 3 isolates 2 visual members a root each, 1 document 1 headless member · same thread, no surface · Pool worker · 1 thread · 3 isolates 1 headless member same thread, no surface Topic logs · memory · persistent · Bus worker · 1 thread · no isolates Topic logs memory · persistent LogEngine + codec · evicts above 8 MiB · Bus worker · 1 thread · no isolates LogEngine + codec evicts above 8 MiB Broker · grants · schema · dedup · Bus worker · 1 thread · no isolates Broker grants · schema · dedup OPFS segments · isoloop-bus Web Lock · Architecture component OPFS segments isoloop-bus Web Lock spawn new Worker + init init per member import() patches patches per member apply one beat per worker attach a port beat · metrics kernel.subscribe own bus port a port per member append logs persistent topics Main thread Own worker · 1 thread · 1 isolate Pool worker · 1 thread · 3 isolates Bus worker · 1 thread · no isolates Legend Page code on the main thread Isolate, or a group of isolates (count shown) Durable log (OPFS) Bus topic Kernel (main thread) Bus worker internals Outside Isoloop