The invention discloses a method of high-speed concurrent
processing of user requests of a Key-Value
database. The method of the high-speed concurrent
processing of the user requests of the Key-Value
database comprises the steps of (1) receiving the user requests, and sequentially adding the user requests into a request buffering
queue; (2) initializing a key code classification queuing
list, continuously popping the user requests out from the request buffering
queue according to a first-in first-out order, sorting the user requests to different pending
processing queues according to different key codes of the user requests, and adding a mapping relation between the key codes and the pending processing queues into the key code classification queuing
list; and (3) initializing a request
assembly, continuously popping the user requests out on the head portion of the pending processing queues to the request
assembly, using worker threads with a preset number to carry out concurrent processing on the user requests in the request
assembly, and returning processing results to users. The method of the high-speed concurrent processing of the user requests of the Key-Value
database has the advantages of being high in concurrent processing fine grit, good in concurrent processing capacity, high in use ratio of hardware resources, balanced in load of all processor cores in a multi-core processor, and capable of ensuring sequence among read-write dependent requests.