Skip to content

feat(leaderboard): serve atomic prior snapshot during rank recomputation (#1932) - #2078

Closed
ryder777777 wants to merge 1 commit into
Arena1X:mainfrom
ryder777777:fix-1932-leaderboard-snapshot-consistency
Closed

ryder777777 wants to merge 1 commit into
Arena1X:mainfrom
ryder777777:fix-1932-leaderboard-snapshot-consistency

Conversation

@ryder777777

Copy link
Copy Markdown

Closes #1932

Summary

Freeze the complete prior global snapshot at the start of LeaderboardService.recalculateRanks(), serve concurrent getLeaderboard and getTopN reads from that complete prior snapshot while recomputing, and atomically swap to the newly computed snapshot once the transaction commits.

Modified Files

  • backend/src/leaderboard/leaderboard.service.ts
  • backend/src/leaderboard/leaderboard.service.spec.ts

Verification

  • Verified with npx eslint (0 errors) and npx jest unit tests passing in backend/.

@ryder777777

Copy link
Copy Markdown
Author

/claim #1932

Payout Wallet (Binance USDT TRC20 / Tron Network): TXmG2bbkS5m2ZfT535o5kQNpwYzhb5JUYg

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
insight-arena-4rll Error Error Oct 20, 2026 7:19pm UTC

This branch had an error being deployed

1 failed deployment
Preview — e08f6670 Deployed Oct 20, 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.

[Backend] — Leaderboard Snapshot Consistency During Recompute

2 participants