Repository navigation
README: sizing guidance for message_retention - #95
Merged
Merged
Conversation
Explain what the retention has to cover (the slowest subscriber's polling interval, plus a margin for a reconnecting listener) and what the default costs for high-frequency broadcasts: at 60 messages per second, 1.day keeps about 5 million rows (~3.5 GB on SQLite), 5.minutes about 18,000. Measured on solid_cable 4.0.0 and 4.1.0; numbers and discussion in rails#94. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016abMvkfuZefDveQYGj6XN6
npezza93
approved these changes
Oct 4, 2026
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.
Follow-up to #94 ("prs welcome for the readme update").
Two sentences:
message_retention: what the retention has to cover (the slowest subscriber's polling interval, plus a margin for a reconnecting listener) and what the default costs for frequent broadcasts — at 60 messages per second,1.daykeeps about 5 million rows (≈3.5 GB on SQLite),5.minutesabout 18,000.broadcast rate × message_retentionrows, so for frequent broadcasts the retention setting matters more than the trim batch size.Numbers measured on 4.0.0 and 4.1.0 (SQLite, one Puma process,
polling_interval0.1 s); details and raw data in #94.Closes #94
https://claude.ai/code/session_016abMvkfuZefDveQYGj6XN6