Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spooler): Add file backed envelope stacks #4138

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from

Conversation

iambriccardo
Copy link
Member

@iambriccardo iambriccardo commented Oct 14, 2024

This PR implements a new file backend envelope stack, creating a file per own_key project_key combination. The files have a custom format designed for fast access and the data layout is explained in code comments.

The whole idea of this mechanism is that we always append and remove data from the end of the file, meaning no in-memory buffering takes place. When a file is found to be empty, it will be removed from the file system.

In the future, given our file-per-pair model, we could parallelize spools and batch them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants