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

DM-43180: Filter out old messages in fan-out service #13

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

kfindeisen
Copy link
Member

This PR adds a timestamp-based filter that rejects old messages instead of forwarding them to Prompt Processing. Ignoring old messages makes Prompt Processing more robust against network problems that cause large volumes of messages to be delivered at once.

The filter is configured by a mandatory envvar, MESSAGE_EXPIRATION, giving the maximum age in seconds.

This makes it easier to figure out what is imported (and fixes a
duplicate import that had slipped through the cracks).
The MESSAGE_EXPIRATION envvar sets the maximum allowed age of a
message, in seconds. Ignoring old messages makes Prompt Processing more
robust against network problems that cause large volumes of messages to
be delivered at once. (The messages are not lost permanently; they can
be processed in catch-up.)
@kfindeisen kfindeisen merged commit 38c0266 into main Jun 17, 2024
2 checks passed
@kfindeisen kfindeisen deleted the tickets/DM-43180 branch June 17, 2024 19:22
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