摘要 |
The present application provides a data processing method, apparatus and system based on distributed memories and databases. The method comprises: receiving a data processing request triggered by a user; determining, according to a budget identifier, whether a memory quota in a current memory fragment storing current budget data is greater than a budget quota; if yes, directly deducting the budget quota from the memory quota in the current memory fragment; if not, determining, according to the budget identifier, whether the sum of a remaining quota of a current database (DB) and the memory quota that are stored in the current memory fragment is greater than the budget quota; if yes, deducting the budget quota according to the remaining quota of the current DB and the memory quota; and storing a deduction record of deducting the budget quota in the current DB. By means of embodiments of the present application, data processing performance can be improved to satisfy highly concurrent requests, and the number of DBs can be reduced to save costs. |