Skip to content

Soak credit-once with duplicate deliveries - #28

Merged
o-mid merged 4 commits into
developfrom
feat/credit-once-soak
Sep 18, 2026
Merged

o-mid merged 4 commits into
developfrom
feat/credit-once-soak

Conversation

@o-mid

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

Copy link
Copy Markdown
Owner

Problem

Credit-once under duplicate HTTP delivery was only an in-process ledger test. Nothing load-tested ingest → worker with extra deliveries of the same event_id.

Solution

make soak sends N unique first deposits and replays each event_id extra times against a local API. Credits Δ must equal N and each player balance stays 100. Railway URLs are refused.

How to test

go test ./internal/soak -count=1
With make run up: make soak. Do not point -url at Railway.

@vercel

vercel Bot commented Sep 18, 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 18, 2026 9:54am UTC

@o-mid
o-mid merged commit 2913d8e into develop Sep 18, 2026
4 checks passed
@o-mid
o-mid deleted the feat/credit-once-soak branch September 18, 2026 09:57

This branch was successfully deployed

1 active deployment
Preview — 16438841 Deployed Sep 18, 2026 by vercel[bot]
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