atproto relay in zig zlay.waow.tech
relay zig atproto
Something went wrong. Try again.
narrow persist_order to cover only dp.persist() master
move resequenceFrame, heap dupe, and broadcast_queue.push() outside the ordering lock. persist_order now covers only the DB persist call and seq store — the minimum needed for monotonic sequence assignment. this eliminates the cascade where producers spin on persist_order while another producer is blocked in a full broadcast_queue.push(). slight out-of-order in the ring is acceptable — seq is embedded in frame data and consumers/history track by seq. metrics showed persist_order_spins_total dominating at ~1,100 hosts (548M spins) while push_lock_spins was zero — confirming the critical section width was the bottleneck. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author zzstoatzz Co-author Claude Opus 4.6 Date (Apr 4, 2026, 7:09 PM UTC) Commit c8efaa16 c8efaa16a782c575f2f8c8881182220e4bb3ee8e Parent fe8a08cd fe8a08cd5a86614389f1abe4ce3757a4764f51ae