Add historical state offload stream hook#3183
Merged
Conversation
Introduce a transport-agnostic changelog stream interface so historical state can be published to an external queue and replayed later without coupling the state store to a specific message system. Made-with: Cursor
Add a write-only cryptosim backend that exercises the SS historical offload hook with a buffered in-process stream so we can benchmark offload throughput using the production write path. Made-with: Cursor
Replace the hardcoded local offload stream with a generic factory registration point so benchmark runs can swap in Kafka, SQS, or another transport without rewriting the wrapper. Made-with: Cursor
Wire the SSHistoricalOffload benchmark backend to a simple Kafka/MSK producer so cryptosim can measure end-to-end offload throughput with a real queue while keeping the transport integration generic and small. Made-with: Cursor
Switch the cryptosim Kafka historical offload path to throughput-oriented defaults with async publishing, larger producer batches, and no required broker acks while keeping the settings configurable. Made-with: Cursor
Support AWS_MSK_IAM authentication for the cryptosim Kafka offload path so the benchmark can publish to MSK Serverless using normal AWS credential resolution while keeping the change localized to the Kafka transport. Made-with: Cursor
Allow the historical offload benchmark backend to skip transaction reads so Kafka offload runs exercise the write path without read-dependent execution failures. Made-with: Cursor
Route SSHistoricalOffload benchmark writes directly to the offload stream without persisting local state so the benchmark measures pure historical offload throughput. Made-with: Cursor
Align the rebased offload wrapper and tests with the current benchmark wrapper API so the branch stays buildable after landing on top of main. Made-with: Cursor
cd91224 to
8cc7ebc
Compare
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Use the configured state store settings for the historical offload benchmark path and keep the wrapper state aligned with successful publishes. Made-with: Cursor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3183 +/- ##
==========================================
- Coverage 58.95% 58.75% -0.21%
==========================================
Files 2060 2057 -3
Lines 168673 168560 -113
==========================================
- Hits 99444 99033 -411
- Misses 60529 60777 +248
- Partials 8700 8750 +50
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Remove the unused state store replay and local offload hook so this branch only keeps the publish-only benchmark path and the Kafka transport it actually exercises. Made-with: Cursor
Deduplicate the repeated "none" option in the Kafka offload config so the targeted lint check passes without changing behavior. Made-with: Cursor
Remove the local buffered fallback and its tests so the historical offload benchmark path requires explicit Kafka configuration. Made-with: Cursor
yzang2019
reviewed
Apr 7, 2026
Remove username/password-based Kafka auth paths so the benchmark config only keeps the auth modes used by the current offload flow. Made-with: Cursor
Provide a ready-to-edit cryptosim config for Kafka-based offchain pipeline testing so reviewers have a concrete example of the intended benchmark setup. Made-with: Cursor
yzang2019
approved these changes
Apr 7, 2026
Drop the indirect xdg-go dependencies that were left behind after removing the unused Kafka SCRAM auth path. Made-with: Cursor
cody-littley
reviewed
Apr 7, 2026
Move Kafka stream construction into the historical offload wrapper path, remove the global factory setup, and trim the sample config down to the non-default settings reviewers need to edit. Made-with: Cursor
cody-littley
approved these changes
Apr 8, 2026
yzang2019
added a commit
that referenced
this pull request
Apr 9, 2026
* main: Add receipt / log reads to cryptosim (#3081) persist blocks and FullCommitQCs in data layer via WAL (CON-231) (#3126) Update Changelog in prep to cut v6.4.1 (#3213) fix(sei-tendermint): resolve staticcheck warnings (#3207) Add historical state offload stream hook (#3183) feat: wire autobahn config propagation from top-level to GigaRouter (CON-232) (#3194)
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.
Describe your changes and provide context
Testing performed to validate your change