Resource access processing method, device, server and storage medium

Through distributed lock technology and multi-location data center synchronization, the problem of chaotic resource access processing and data loss in complex distributed systems is solved, the orderliness of resource access and multi-activity in different places are achieved, and the processing efficiency is improved.

CN111679917BActive Publication Date: 2024-09-17CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010501297.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-04
Publication Date
2024-09-17
Estimated Expiration
2040-06-04

AI Technical Summary

Technical Problem

In complex distributed systems, simultaneous access to data resources by multiple clients may lead to confusion in resource access processing and data loss, and the existing system cannot implement off-site data operations, resulting in abnormal data writing.

Method used

Through distributed lock technology, orderly processing of data is achieved, and resource access requests are synchronized between data centers in multiple locations to ensure orderliness of resource access and multi-activity in different locations.

Benefits of technology

It avoids data processing result errors caused by multi-process operations of resource access, realizes multi-activity in different places, ensures the synchronous processing of resource access in multiple data centers, and improves the efficiency of resource access processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111679917B
    Figure CN111679917B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a resource access processing method, device, server and storage medium. The method includes: receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists; if the second resource access information does not exist, obtaining a first resource access request sent by the first client; processing the first resource access request according to the first resource access information, and synchronizing the first resource access request and the first resource access information to servers in other data centers, so that servers in other data centers process the first resource access request according to the first resource access information. The above scheme realizes the orderly processing of resource access requests initiated by different clients, and enables clients to access resources in different data centers, realizing multi-site active-active.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of resource access processing, and in particular to a resource access processing method, device, server and storage medium. Background Art

[0002] In complex distributed systems, there are often situations where multiple clients access a data resource at the same time. In this case, if multi-process operations are allowed, it may cause confusion in resource access processing and inaccurate resource access processing results.

[0003] In addition, for the current resource access processing system, the client can only access resources through the server in the local data center and cannot perform remote operations. If the local data center server fails, the current operation data cannot be written normally, resulting in data loss. Summary of the invention

[0004] The embodiments of the present invention provide a resource access processing method, device, server and storage medium to realize orderly processing of data through distributed lock technology, and realize multi-site activeness, so that clients in multiple locations can access resources locally through data center servers, thereby improving resource access processing efficiency.

[0005] In one embodiment, the present invention provides a resource access processing method, the method comprising:

[0006] receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists;

[0007] If the second resource access information does not exist, obtaining the first resource access request sent by the first client;

[0008] The first resource access request is processed according to the first resource access information, and the first resource access request and the first resource access information are synchronized to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0009] In another embodiment, the present invention further provides a resource access processing device, the device comprising:

[0010] A receiving module, configured to receive first resource access information sent by a first client, and determine whether second resource access information of a second client exists;

[0011] an acquisition module, configured to acquire a first resource access request sent by the first client if the second resource access information does not exist;

[0012] A processing module is used to process the first resource access request according to the first resource access information, and synchronize the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0013] In yet another embodiment, an embodiment of the present invention further provides a server, including: one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the resource access processing method described in any one of the embodiments of the present invention.

[0016] In yet another embodiment, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the resource access processing method as described in any one of the embodiments of the present invention is implemented.

[0017] In an embodiment of the present invention, by receiving the first resource access information sent by the first client and determining whether the second resource access information of the second client exists; if the second resource access information does not exist, obtaining the first resource access request sent by the first client, thereby achieving orderly access to resources and avoiding the problem of multi-process operation of resource access, which leads to erroneous data processing results. By processing the first resource access request according to the first resource access information, and synchronizing the first resource access request and the first resource access information to the servers of other data centers, so that the servers of other data centers process the first resource access request according to the first resource access information, multi-active in different locations is achieved, and synchronous processing of resource access in multiple data centers is ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart of a resource access processing method provided by an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a resource access process provided by an embodiment of the present invention;

[0020] Figure 3 A flowchart of a resource access processing method provided by another embodiment of the present invention;

[0021] Figure 4 A schematic diagram of the structure of a resource access processing device provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of the structure of a resource access processing server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0024] Figure 1 This is a flow chart of a resource access processing method provided by an embodiment of the present invention. The resource access processing method provided by this embodiment can be applied to the case of processing a resource access request initiated by a client to a data center. The method can be specifically executed by a resource access processing device, which can be implemented by software and / or hardware, and the device can be integrated in a resource access processing server. Figure 1 , the method of the embodiment of the present invention specifically includes:

[0025] S110: Receive first resource access information sent by a first client, and determine whether second resource access information of a second client exists.

[0026] In the embodiment of the present application, the resource access processing method is executed by a server in a data center. There are at least two data centers. The servers in each data center can execute the method of the embodiment of the present application. There is at least one server in each data center, which can be a server cluster, such as Figure 2 As shown, node 1, node 2, node 3 and node 4 are servers in the data center, which can be redis servers. A dynomite agent is mounted in each redis server. Figure 2 Only two data centers are shown, but this does not limit the number of data centers. In fact, the number of data centers can be set according to actual conditions. Different data centers can be set in different regions to achieve remote data storage and remote operation.

[0027] The method in the embodiment of the present application is performed from the perspective of a server in a data center, and can also be applied to servers in other data centers. For example, the first client in the embodiment of the present application can be client 1 in data center 1, or client 2 in data center 2, or a client in another data center, again without limitation. The second client can be a client that accesses the same server as the first client, and accesses resources in the same data center as the first client.

[0028] Specifically, in a data center, multiple clients are allowed to access resources on the server. If multiple clients access resources and process data on the server through multiple processes, it may cause confusion and conflict in processing operations, resulting in errors in resource access processing results. In an embodiment of the present application, in order to avoid data processing conflicts and errors, when receiving the first resource access information sent by the first client, the first resource access request of the first client is not directly processed, but it is first determined whether there is the second resource access information sent by the second client. If there is the second resource access information sent by the second client, it means that the second client's resource access already exists. If there is no second resource access information sent by the second client, it means that there is no resource access by the second client. Among them, the second client is not specific, but refers to any client other than the first client.

[0029] Exemplarily, the first client inserts the first resource access information in the form of a key-value pair into the redis server. Since the redis server is a single-threaded operation, if there is currently a second client accessing the resource, that is, the key-value pair containing the second resource access information has been inserted into the redis server, the key-value pair containing the first resource access information fails to be inserted. If there is currently no second client accessing the resource, that is, the key-value pair containing the second resource access information has not been inserted into the redis server, the key-value pair containing the first resource access information can be inserted successfully.

[0030] S120: If the second resource access information does not exist, obtain a first resource access request sent by the first client.

[0031] In order to avoid confusion and conflict in processing operations caused by multiple clients accessing resources and processing data on the server through multiple processes, when it is determined that there is no second resource access information, that is, when it is determined that there is no resource access by the second client, the first resource access request sent by the first client is obtained so as to process the resource access request of the first client, thereby avoiding conflicts in the processing of multi-process resource access requests and ensuring the accuracy of the data processing results.

[0032] S130. Process the first resource access request according to the first resource access information, and synchronize the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0033] If there are multiple servers in other data centers, the first resource access request and the first resource access information are synchronized to multiple servers in other data centers to achieve data synchronization and update. The data in the server of the data center and the server of the other data center are synchronized and updated. Specifically, in order to achieve that resource access can be executed synchronously in multiple data centers, the first resource access request and the first resource access information are synchronized to the servers in other data centers, so that the servers in other data centers can also process the first resource access request, thereby ensuring data synchronization.

[0034] The servers in other data centers process the first resource access request in the same way as the servers in the current data center process the first resource access request. After receiving the first resource access information, they determine whether there is second resource access information of a second client. If the second resource access information does not exist, the first resource access request is processed.

[0035] In an embodiment of the present invention, by receiving the first resource access information sent by the first client and determining whether the second resource access information of the second client exists; if the second resource access information does not exist, obtaining the first resource access request sent by the first client, thereby achieving orderly access to resources and avoiding the problem of multi-process operation of resource access, which leads to erroneous data processing results. By processing the first resource access request according to the first resource access information, and synchronizing the first resource access request and the first resource access information to the servers of other data centers, so that the servers of other data centers process the first resource access request according to the first resource access information, multi-active in different locations is achieved, and synchronous processing of resource access in multiple data centers is ensured.

[0036] Figure 3 This is a flow chart of a resource access processing method provided by another embodiment of the present invention. For details not described in detail in this embodiment, please refer to the above embodiment. Figure 3 The resource access processing method provided in this embodiment may include:

[0037] S210: Receive first resource access information sent by a first client.

[0038] S220, determining whether there is second resource access information of the second client, if yes, executing S230-S240, if no, executing S250.

[0039] S230: Determine a processing progress of the second resource access request of the second client.

[0040] Specifically, if there is second resource access information of a second client, it means that there is a second resource access request of the second client at this time, and the second resource access request needs to be processed. The first resource access request should be processed after the second resource access request is processed to avoid resource access request processing conflicts. Therefore, the processing progress of the second resource access request is determined so that the first resource access request can be processed according to the processing progress of the second resource access request.

[0041] S240: Determine whether to process the first resource access request according to the processing progress.

[0042] In an embodiment of the present application, determining whether to process the first resource access request according to the processing progress includes: if it is determined that the processing of the second resource access request of the second client is completed, processing the first resource access request.

[0043] Specifically, if it is determined that the processing of the second resource access request is completed, the first resource access request is processed; if it is determined that the processing of the second resource access request is not completed, the first resource access request is not processed.

[0044] For example, if the redis server has finished processing the second resource access request, it will delete the inserted second resource access information. At this time, the first resource access information can be successfully inserted into the redis server, so as to process the first resource access request. If the second resource access information is still retained in the redis server, it means that the second resource access request has not been processed. Therefore, the first resource access request is not processed temporarily. When it is detected that the second resource access information inserted in the redis server is deleted, the first resource access information is inserted to process the first resource access request.

[0045] S250: Obtain a first resource access request sent by the first client.

[0046] S260: If a third resource access request and third resource access information are received from a server in another data center, obtain a timestamp in the third resource access information and a timestamp in the first resource access information.

[0047] Exemplarily, the current data center may also receive a third resource access request and third resource access information sent by other data centers to synchronize data in the server of the current data center. In order to avoid confusion and errors in resource access processing, the timestamp in the third resource access information and the timestamp in the first resource access information are obtained to determine the operation time of the resource access information according to the timestamp, and determine whether to process the resource access request and the processing order according to the operation time.

[0048] S270: Determine a processing method for the third resource access request and the first resource access request according to the timestamp, the third resource access request and the first resource access request.

[0049] In an embodiment of the present application, a processing method for the third resource access request and the first resource access request is determined based on the timestamp, the third resource access request and the first resource access request, including: if the first resource access request is the same as the third resource access request, the resource access request corresponding to the smallest timestamp is processed; if the first resource access request is different from the third resource access request, the processing order of the third resource access request and the first resource access request is determined according to the sorting of the timestamps.

[0050] Specifically, if the first resource access request and the third resource access request received by the server of the current data center are the same, there is no need to repeatedly process the resource access requests, only the resource access request corresponding to the smallest timestamp needs to be processed, and the resource access request corresponding to a timestamp greater than the smallest timestamp does not need to be processed. If the first resource access request and the third resource access request received by the server of the current data center are different, they are sorted according to the size of the timestamp, and the resource access request with the smaller timestamp is processed first.

[0051] S280. Synchronize the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0052] The technical solution of the embodiment of the present invention determines whether there is second resource access information of the second client, and if so, determines the processing of the first resource access request based on the processing progress of the second resource access request; if not, directly processes the first resource access request, thereby realizing orderly processing of resource access requests.

[0053] Figure 4 This is a schematic diagram of the structure of a resource access processing device provided by an embodiment of the present invention. The device may be applicable to the case where a resource access request initiated by a client to a data center is processed. The device may be implemented by software and / or hardware, and the device may be integrated in a resource access processing server. Figure 4 , the device specifically comprises:

[0054] The receiving module 310 is used to receive the first resource access information sent by the first client, and determine whether there is the second resource access information of the second client;

[0055] An acquisition module 320, configured to acquire a first resource access request sent by the first client if the second resource access information does not exist;

[0056] The processing module 330 is used to process the first resource access request according to the first resource access information, and synchronize the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0057] In the embodiment of the present application, the device further includes:

[0058] a processing progress determination module, configured to determine a processing progress of the second resource access request of the second client if the second resource access information exists;

[0059] The request processing determination module is used to determine whether to process the first resource access request according to the processing progress.

[0060] In the embodiment of the present application, the request processing determination module is specifically used to:

[0061] If it is determined that the processing of the second resource access request of the second client is completed, the first resource access request is processed.

[0062] In an embodiment of the present application, if a third resource access request and third resource access information sent by a server in another data center are received, the request processing determination module includes:

[0063] A timestamp acquisition unit, configured to acquire the timestamp in the third resource access information and the timestamp in the first resource access information;

[0064] A timestamp determination unit is used to determine a processing method for the third resource access request and the first resource access request according to the timestamp, the third resource access request and the first resource access request.

[0065] In the embodiment of the present application, the timestamp determination unit includes:

[0066] A first judgment subunit, configured to process the resource access request corresponding to the smallest timestamp if the first resource access request is the same as the third resource access request;

[0067] The second judgment subunit is configured to determine a processing order of the third resource access request and the first resource access request according to the order of timestamps if the first resource access request is different from the third resource access request.

[0068] In the embodiment of the present application, data in the server of the data center and the servers of the other data centers are updated synchronously.

[0069] The resource access processing device provided in the embodiments of the present application can execute the resource access processing method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0070] Figure 5 A schematic diagram of the structure of a resource access processing server provided by an embodiment of the present invention. Figure 5 A block diagram of an exemplary server 412 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The server 412 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0071] like Figure 5 As shown, the resource access processing server 412 may include: one or more processors 416; a memory 428, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 416, the one or more processors 416 implement the resource access processing method provided by the embodiment of the present invention, including:

[0072] receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists;

[0073] If the second resource access information does not exist, obtaining the first resource access request sent by the first client;

[0074] The first resource access request is processed according to the first resource access information, and the first resource access request and the first resource access information are synchronized to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0075] The components of the resource access processing server 412 may include, but are not limited to, one or more processors or processor 416, memory 428, and a bus 418 connecting the various server components (including the memory 428 and the processor 416).

[0076] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0077] The resource access processing server 412 typically includes a variety of computer server readable storage media. These storage media can be any available storage media that can be accessed by the resource access processing server 412, including volatile and non-volatile storage media, removable and non-removable storage media.

[0078] The memory 428 may include computer server readable storage media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The resource access processing server 412 may further include other removable / non-removable, volatile / non-volatile computer server storage media. By way of example only, the storage server 434 may be used to read and write non-removable, non-volatile magnetic storage media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 via one or more data storage medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0079] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in the memory 428, such program modules 442 including, but not limited to, operating servers, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 442 generally perform the functions and / or methods of the embodiments described herein.

[0080] The resource access processing server 412 may also communicate with one or more external servers 414 (e.g., keyboards, pointing servers, displays 426, etc.), one or more servers that enable users to interact with the resource access processing server 412, and / or any server that enables the resource access processing server 412 to communicate with one or more other computing servers (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 422. Furthermore, the resource access processing server 412 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 420. Figure 5 As shown, the network adapter 420 communicates with other modules of the resource access processing server 412 via the bus 418. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the resource access processing server 412, including but not limited to: microcode, server drivers, redundant processing units, external disk drive arrays, RAID servers, tape drives, and data backup storage servers, etc.

[0081] The processor 416 executes various functional applications and resource access processing by running at least one of the other programs among the multiple programs stored in the memory 428, such as implementing a resource access processing method provided by an embodiment of the present invention.

[0082] An embodiment of the present invention provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to perform a resource access processing method when executed by a computer processor, including:

[0083] receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists;

[0084] If the second resource access information does not exist, obtaining the first resource access request sent by the first client;

[0085] The first resource access request is processed according to the first resource access information, and the first resource access request and the first resource access information are synchronized to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information.

[0086] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable storage media. The computer-readable storage medium may be a computer-readable signal storage medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor server, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible storage medium containing or storing a program, which may be used by or in combination with an instruction execution server, device or device.

[0087] A computer-readable signal storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal storage medium may also be any computer-readable storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution server, device, or device.

[0088] The program code contained on the computer-readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0089] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0090] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A resource access processing method, characterized in that: The method is executed by a server in a data center, where there are at least two data centers and at least one server in each data center; the server is a redis server; and the method includes: receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists; If the second resource access information does not exist, obtaining the first resource access request sent by the first client; Processing the first resource access request according to the first resource access information, and synchronizing the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information; the processing of the first resource access request by the servers in other data centers is the same as the processing of the first resource access request by the servers in the current data center; The method further comprises: If the second resource access information sent by the second client is received, and the first resource access information sent by the first client is not received, inserting the second resource access information; If the first resource access information sent by the first client is received before the second resource access information is deleted, the first resource access information is not inserted, and the first resource access request is not processed; If the processing of the second resource access request is completed, the inserted second resource access information is deleted and the first resource access information is inserted; If it is detected that the first resource access information exists and the second resource access information does not exist, inserting the first resource access information and processing the first resource access request; Receiving first resource access information sent by a first client, and determining whether second resource access information of a second client exists, includes: In the case where the first client inserts the first resource access information in the form of a key-value pair into the redis server, if there is currently a second client accessing the resource, that is, the key-value pair containing the second resource access information has been inserted into the redis server, the key-value pair containing the first resource access information fails to be inserted; if there is currently no second client accessing the resource, that is, the key-value pair containing the second resource access information has not been inserted into the redis server, the key-value pair containing the first resource access information is successfully inserted; The method further comprises: If a third resource access request and third resource access information are received from a server in another data center, obtaining a timestamp in the third resource access information and a timestamp in the first resource access information; Determine, according to the timestamp, the third resource access request and the first resource access request, a processing method for the third resource access request and the first resource access request; Determining, according to the timestamp, the third resource access request, and the first resource access request, a processing method for the third resource access request and the first resource access request, including: If the first resource access request is the same as the third resource access request, processing the resource access request corresponding to the smallest timestamp; If the first resource access request is different from the third resource access request, the processing order of the third resource access request and the first resource access request is determined according to the order of the timestamps.

2. The method according to claim 1, characterized in that: The data in the server of the data center and the data in the servers of the other data centers are updated synchronously.

3. A resource access processing device, characterized in that: In each server configured in each data center, there are at least two data centers, each data center has at least one server, and the server is a redis server; the device includes: A receiving module, configured to receive first resource access information sent by a first client, and determine whether second resource access information of a second client exists; an acquisition module, configured to acquire a first resource access request sent by the first client if the second resource access information does not exist; a processing module, configured to process the first resource access request according to the first resource access information, and synchronize the first resource access request and the first resource access information to servers in other data centers, so that the servers in other data centers process the first resource access request according to the first resource access information; the processing of the first resource access request by the servers in other data centers is the same as the processing of the first resource access request by the servers in the current data center; The device also includes: an inserting module, configured to insert the second resource access information if the second resource access information sent by the second client is received and the first resource access information sent by the first client is not received; A retaining module, configured to not insert the first resource access information and not process the first resource access request if the first resource access information sent by the first client is received before the second resource access information is deleted; a deleting module, configured to delete the inserted second resource access information and insert the first resource access information if the processing of the second resource access request is completed; A processing module, configured to insert the first resource access information and process the first resource access request if it is detected that the first resource access information exists and the second resource access information does not exist; Plug-in modules, specifically for: In the case where the first client inserts the first resource access information in the form of a key-value pair into the redis server, if there is currently a second client accessing the resource, that is, the key-value pair containing the second resource access information has been inserted into the redis server, the key-value pair containing the first resource access information fails to be inserted; if there is currently no second client accessing the resource, that is, the key-value pair containing the second resource access information has not been inserted into the redis server, the key-value pair containing the first resource access information is successfully inserted; If a third resource access request and third resource access information sent by a server in another data center are received, the device further includes the request processing determination module, and the request processing determination module includes: A timestamp acquisition unit, configured to acquire the timestamp in the third resource access information and the timestamp in the first resource access information; a timestamp determination unit, configured to determine a processing method for the third resource access request and the first resource access request according to the timestamp, the third resource access request and the first resource access request; In the embodiment of the present application, the timestamp determination unit includes: A first judgment subunit, configured to process the resource access request corresponding to the smallest timestamp if the first resource access request is the same as the third resource access request; The second judgment subunit is configured to determine a processing order of the third resource access request and the first resource access request according to the order of timestamps if the first resource access request is different from the third resource access request.

4. A resource access processing server, characterized in that: The server comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the resource access processing method as described in claim 1 or 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the resource access processing method as claimed in claim 1 or 2 is implemented.