Repository navigation
Inspect DLQ and redrive through signed ingest - #23
Merged
Merged
Conversation
|
Deployment failed for project engagepulse with the following error: Learn More: https://vercel.com/o-mids-projects?upgradeToPro=build-rate-limit |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Poison events land on
player.events.dlqafter three retries, but ops cannot list those dead letters or send them through ingest again. There is no skip-HMAC admin credit, so a redrive has to be a new signedPOST /v1/eventsof the sameevent_id.Solution
Read the last N dead letters from Kafka (newest first). List them per brand behind
X-API-Key. Arena redrive is a human click: the BFF signs the original event and posts ingest. Ledger uniqueness still holds, so a second run stays credit-once.How to test
KAFKA_BROKERS=127.0.0.1:19092 go test ./internal/kafka -count=1 -run TestReadRecentGET /v1/dlqwith an API key; Architecture dead-letter table; redrive the sameevent_idand confirm balance is unchanged if it was already credited.FAIL_INJECTstays off on the public API. Tools still cannotcredit/set_vip.