-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: read team token from kafka headers in blobby (#18337)
Recently we read tens of millions of messages knowing the only action was to drop them. For every message we had to parse the body to get the token so we could check if we wanted to drop it. Let's put the team token into the kafka headers since if there's an incident we always care about those values. And then we can read the team token from the header and drop the message without parsing it when the team does not have session recording enabled. This still also reads the body to check for team token as a fallback. If nothing else this lets us deploy this without worrying about rolling out a switcheroo So token in headers, team not found - return early (new behaviour) token in headers, team found - does parse the body, but doesn't check the team again token not in headers, team not found - return early (as before) token not in headers, team found - (as before)
- Loading branch information
1 parent
292e3db
commit cf4ba98
Showing
8 changed files
with
416 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.