feat: SBE v7 egressSeq — log-position order key on trade + status egress#119
Merged
Conversation
…ess (Layer 2, match side) Stamps every OrderStatusBatch/TradeExecutionBatch entry with the Aeron cluster-log position of the producing ingress command (header.position() -> Engine.currentLogPosition, the bookVersion source): deterministic across replicas, monotonic across leaders, shared by all events of one command. Gives consumers one order key spanning both egress streams (which flush trades-before-statuses). ORDER KEY ONLY, and documented as such in the schema: the log position is sparse (timers advance it) and non-unique (per command, not per event) -- statusSeq/tradeId remain the dense gap-detect sequences. Group TAIL extension sinceVersion=7; mixed-roll safe (v6 peers skip via group blockLength, v7 readers of v6 streams get the null value -> normalize to 0). Determinism goldens unchanged (egressSeq invisible to the logical MatchEventSink): corpus 67/0. Publisher/encoder tests 45/0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Test plan
🤖 Generated with Claude Code