Serialize fan-out EVENT frames once#1459
Merged
Merged
Conversation
Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
* origin/main: perf(relay): bounded-concurrency multi-filter query execution (S2) (#1457) Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
e2f7e58 to
05563c2
Compare
wpfleger96
added a commit
that referenced
this pull request
Jul 2, 2026
…n-metrics * origin/main: feat: per-community workspace icon set by admins, served via NIP-11 (#1463) perf(relay): batch outbound websocket data frames (#1464) Make reaction ingest atomic (#1458) Serialize fan-out EVENT frames once (#1459) fix: agent reliability — no restart on channel-add, visible dead-letter notice (#1468) Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com> # Conflicts: # crates/buzz-relay/src/handlers/event.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Arc<Bytes>per unique subscription ID within each fan-out cycle.ConnectionManagerwithout changing existing string senders.filter_fanout_by_access; the persistent DM visibility owner fence is applied before frame caching too.W5 fences
event_frame_for_subpreserves the oldformat!(r#"["EVENT","{}",{}]"#, sub_id, event_json)wire shape; unit test asserts String and Bytes equality against that legacy format.HashMap<&str, Arc<Bytes>>; unit test asserts duplicate sub IDs share within one cache and a new cache gets a distinctArc.filter_fanout_by_accessreturns; the persistent DM visibility owner gate is also applied before caching/sending.Validation
bin/rustup run 1.95.0 cargo fmt --checkbin/rustup run 1.95.0 cargo test -p buzz-relay fanout_bin/rustup run 1.95.0 cargo test -p buzz-relaybin/rustup run 1.95.0 cargo clippy -p buzz-relay --all-targets -- -D warningsShips on
2df85d3f70459c529ceab67ccd26b25967107478.