Protected Balance Read
The payment service reduces balance for account id = 1 in accounts by 100 using a read-then-change flow. Write a transaction: start it, read balance while locking that account row, deduct 100, then finish the transaction.
Влез, за да видиш историята на решенията
ВходВлез, за да използваш ИИ ментора
Вход