Skip to content

Inspect DLQ and redrive through signed ingest - #23

Merged
o-mid merged 6 commits into
developfrom
feat/dlq-redrive
Sep 17, 2026
Merged

o-mid merged 6 commits into
developfrom
feat/dlq-redrive

Conversation

@o-mid

@o-mid o-mid commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

Poison events land on player.events.dlq after 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 signed POST /v1/events of the same event_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 TestReadRecent
  • After later commits: GET /v1/dlq with an API key; Architecture dead-letter table; redrive the same event_id and confirm balance is unchanged if it was already credited.
  • FAIL_INJECT stays off on the public API. Tools still cannot credit / set_vip.

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deployment failed for project engagepulse with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/o-mids-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
engagepulse Ready Ready Preview Sep 17, 2026 1:16pm UTC

@o-mid
o-mid merged commit 4124ca2 into develop Sep 17, 2026
2 of 3 checks passed
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