Tencent QQ Game user points how to do?

Tencent"s qq generally consumes points when fighting landlords. His qq coins are usually stored in memory.
in addition, he also has recharged qq coins, if stored in memory, how to ensure that after each successful recharge, the currency of memory will be relatively increased?
is his user data finally landed on db?

Mar.09,2021

must have landed on db, or how to persist it. That's what you got from rmb. It's fun to have a power outage in memory.
it's just recharge, consumption points, which are not necessarily stored in DB after each operation.
you may use other technologies to delay putting them into the database, as long as you ensure the final consistency of the database

.
Menu