Tarsier LabsTarsier Labs
🐡
Home
Categories
Tags
Bookmarks
About
Back to tags

"$transaction"

0 articles

Deep Dive into Payment Webhook & Callback Handling β€” Optimistic Locking, Idempotency, Atomic Wallet Operations

Deep Dive into Payment Webhook & Callback Handling β€” Optimistic Locking, Idempotency, Atomic Wallet Operations

In-depth analysis of PaymentWebhookController (single endpoint routing + callback-token authentication) β†’ handleUniversalWebhook (deposit/withdrawal routing) β†’ handleInvoiceWebhook (updateMany optimistic locking + creditCash) β†’ handlePayoutWebhook (atomic unfreeze + CRITICAL degradation) β†’ WalletService (ensureWallet / creditCash / freezeCash / unfreezeCash + beforeBalance/afterBalance audit trail)

00
Management Backend
admin-next Lucky Draw Management System β€” Activity Configuration, Prize Weights, and Concurrency-Safe Draw Algorithm

admin-next Lucky Draw Management System β€” Activity Configuration, Prize Weights, and Concurrency-Safe Draw Algorithm

In-depth analysis of the complete implementation of the admin-next lucky draw management module, covering activity/prize CRUD, probability sum constraints, four types of prize validation, the core draw() seven-step transaction, weighted random algorithm, atomic concurrency control, PrizeSnapshot, and frontend components ActivityModal/PrizeModal/PrizesPanel/ResultsPanel

10
Management Backend