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 CachingEnvelopeStack #4242

Merged
merged 7 commits into from
Nov 13, 2024
Merged

Conversation

iambriccardo
Copy link
Member

@iambriccardo iambriccardo commented Nov 12, 2024

This PR implements a new CachingEnvelopeStack which caches one element in memory before delegating to the inner EnvelopeStack implementation.

Closes: https://github.com/getsentry/team-ingest/issues/586

@@ -38,7 +39,7 @@ impl SqliteStackProvider {
}

impl StackProvider for SqliteStackProvider {
type Stack = SqliteEnvelopeStack;
type Stack = CachingEnvelopeStack<SqliteEnvelopeStack>;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, we want to directly use it with the SqliteStackProvider.

@iambriccardo iambriccardo requested a review from jjbayer November 12, 2024 13:18
@iambriccardo iambriccardo marked this pull request as ready for review November 12, 2024 13:18
@iambriccardo iambriccardo requested a review from a team as a code owner November 12, 2024 13:18
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Couple of nit picks.

@iambriccardo iambriccardo merged commit 4552934 into master Nov 13, 2024
23 checks passed
@iambriccardo iambriccardo deleted the riccardo/feat/thin-cache branch November 13, 2024 08:42
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