replace go-dsqueue with cascadeq - #1194
Draft
gammazero wants to merge 3 commits into
Draft
Conversation
This was referenced Jul 23, 2026
Closed
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #1194 +/- ##
==========================================
- Coverage 63.85% 63.83% -0.03%
==========================================
Files 269 269
Lines 27144 27151 +7
==========================================
- Hits 17334 17333 -1
- Misses 8097 8102 +5
- Partials 1713 1716 +3
... and 15 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Replace the provide queue use of go-dsqueue with cascadeq. The efficiency of go-dsqueue depends on the ability of the datastore in use to support ordered query responses without reading all queued items into memory to provide that ordering of queued item(s). With go-dsqueue is it also necessary to store additional ordering information with each queued item, taking up additional space. Using cascadeq eliminates the need for a datastore implementation to efficiently return ordered query results as these are always stored in queue order when persisted to disk. Storage is also more efficient as there is no need to store additional ordering information with each item.
gammazero
force-pushed
the
replace-go-dsqueue
branch
from
August 4, 2026 06:57
6427b70 to
1e7ee08
Compare
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.
Replace the provide queue use of
go-dsqueuewithcascadeq.The intended benefits are:
The efficiency of go-dsqueue depends on the ability of the datastore in use to support ordered query responses without reading all queued items into memory to provide that ordering of queued item(s). With go-dsqueue is it also necessary to store additional ordering information with each queued item, taking up additional space.
Using cascadeq eliminates the need for a datastore implementation to efficiently return ordered query results as these are always stored in queue order when persisted to disk. Storage is also more efficient as there is no need to store additional ordering information with each item.
A potential downside to this PR is the case where is user wants all data written to S3, so an S3-backed datastore is used. In this case, cascadeq would not allow the user to write all data to S3, without some additional work.
Related PRs: