Bus worker crash → restart → reattach

Bus worker crash → restart → reattach A sequence diagram generated by Archify. publish (never answered) the client keeps it; past 1,000waiting, calls reject withbus_unavailable no beat or worker error terminate() new Worker + boot {restart} after 2 crashes while loading:safeMode, newest segment setaside attach {reattach: true, port} right away: the new bus buffersuntil it is ready reattach {busPort} subscribe again pending commits dropped: up toone interval repeats re-send unanswered publishes persistent: (producer, epoch,seq) answers with the old offset Web Lock (waits ≤ 2 s), restore no lock or no sync handles:memory, bus:durability_degraded segments restored reset (memory topics) persistent topics resume fromcommitted instead ready {restored} wake suspended headless The bus fails; isolates keep running New bus, ports moved at once Restore and resume Isolate · keeps running · Sequence participant Isolate keeps running Kernel · bus controller · Sequence participant Kernel bus controller Bus worker · old · Sequence participant Bus worker old Bus worker · new · Sequence participant Bus worker new OPFS · persistent topics · Sequence participant OPFS persistent topics Legend main request return security async trace message