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

Filter what Jetstream ingests, persists, and emits #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

malpercio-dev
Copy link

This PR adds to Jetstream the ability to specify collections that you'd like Jetstream to ingest -- much like you would subscribe with wantedCollections, this will cause the Jetstream instance to only persist and emit the collections configured.

Additionally adds the ability to opt out of identity and account events.

Environment variables added:
JETSTREAM_WANTED_COLLECTIONS -- An space-delimited string of Collection NSIDs to filter which records Jetstream should persist and emit. If not provided, retains behavior of persisting and emitting all collections.
JETSTREAM_SHOULD_EMIT_IDENTITY -- whether or not Jetstream should persist and emit identity events. Default true.
JETSTREAM_SHOULD_EMIT_ACCOUNT -- whether or not Jetstream should persist and emit account events. Default true.

My exposure to Golang has so far been limited to small open source contributions like this, very open to any feedback on any potential improvements here. 🙂

@malpercio-dev malpercio-dev changed the title Filter what Jetstream ingests, persists. and emits Filter what Jetstream ingests, persists, and emits Dec 14, 2024
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.

1 participant