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

Add subscriptions store cache #48

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Conversation

eminano
Copy link
Collaborator

@eminano eminano commented Jun 27, 2024

This PR adds an in memory cache layer to the webhook subscriptions store. It aims to be an ephemeral lightweight cache to minimise calls to the persistent store, since the subscriptions need to be retrieved on each WAL event received (this can be very frequent on data ingestion/deletion).
The cache can be configured to sync with the underlying store on a given interval, which will determine the staleness of the cache. In case of large numbers of subscriptions which are constantly updated, this wrapper will not be optimal and should not be used. It is disabled by default.

@eminano eminano requested a review from exekias June 27, 2024 12:59
@eminano eminano merged commit d4d571c into main Jun 27, 2024
3 checks passed
@eminano eminano deleted the add-subscriptions-store-cache branch June 27, 2024 15:35
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