Method and device for storing high-concurrency data
Abstract:
A method and device for storing high-concurrency data. The method comprises: receiving high-concurrency data sent from a plurality of clients (110); pushing the high-concurrency data into a primary data queue, and responding to a corresponding client (120); consuming the high-concurrency data in the primary data queue by using multithreading (130); fragmenting the high-concurrency data according to the number of local queues (140); pushing the fragmented high-concurrency data into the local queues (150); and consuming the high-concurrency data in the local queues and storing the high-concurrency data in a database (160). By means of data asynchronous storage, high-concurrency data is temporarily stored in the primary data queue and the local queues, thereby alleviating pressure on the database, avoiding the problem of a database crash in the case of a high-concurrency storage, and improving the efficiency of storing high-concurrency data.
Public/Granted literature
Information query
Patent Agency Ranking
0/0