WO2023160551A1 - 请求处理方法及设备 - Google Patents
请求处理方法及设备 Download PDFInfo
- Publication number
- WO2023160551A1 WO2023160551A1 PCT/CN2023/077450 CN2023077450W WO2023160551A1 WO 2023160551 A1 WO2023160551 A1 WO 2023160551A1 CN 2023077450 W CN2023077450 W CN 2023077450W WO 2023160551 A1 WO2023160551 A1 WO 2023160551A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- data center
- request
- gateway
- processing request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Managing shopping lists, e.g. compiling or processing purchase lists
- G06Q30/0635—Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Definitions
- Embodiments of the present disclosure relate to the field of computer processing technologies, and in particular, to a request processing method and device, electronic equipment, storage media, computer programs, and computer program products.
- a country can be a region, or one or more countries can form a region.
- a user in country A1 may purchase a product from a seller in country A2.
- These purchasing processes form a large number of orders, which can be stored and managed by the data center. For example, when the data processing request is used to add an order, the data center can store the newly added order; when the data processing request is used to modify the order, the data center can modify the specified order; when the data processing request is used to delete the order, The data center can delete the specified order; when the data processing request is used to read the order data, the data center can return the data of the specified order.
- multiple data centers can usually be set up, but each area corresponds to a data center in charge of the area, and the data processing requests of users in this area are processed by the corresponding data center, and the data center is synchronously sent to the remaining data centers.
- the corresponding data center can modify the data of the order.
- Embodiments of the present disclosure provide a request processing method and device.
- an embodiment of the present disclosure provides a request processing method, which is applied to a first gateway, and the method includes:
- the data processing request is used to process the order
- an embodiment of the present disclosure provides a request processing device, which is applied to a first gateway, and the device includes:
- a data processing request receiving module configured to receive a data processing request, and the data processing request is used to process an order
- a target area determining module configured to determine the target area corresponding to the buyer of the order
- a data center determination module configured to select the primary data center corresponding to the target area from preset configuration information as the first data center for processing the data processing request, the preset configuration information including at least one area respectively The corresponding main data center;
- a data processing module configured to send the data processing request to the first data center for processing.
- an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
- the memory stores computer-executable instructions
- the at least one processor executes the computer-executed instructions stored in the memory, so that the electronic device implements the method as described in the first aspect.
- an embodiment of the present disclosure provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the computing device implements the first aspect. the method described.
- an embodiment of the present disclosure provides a computer program, the computer program is used to implement the method described in the first aspect.
- an embodiment of the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
- FIG. 1 is a schematic diagram of a data processing scenario applicable to an embodiment of the present disclosure
- Fig. 2 is a flow chart of steps of a request processing method provided by an embodiment of the present disclosure
- FIG. 3 and FIG. 4 are schematic diagrams of two processing flows of data processing requests provided by embodiments of the present disclosure.
- FIG. 5 and FIG. 6 are schematic diagrams of two layouts of a data center gateway provided by an embodiment of the present disclosure
- Fig. 7 is a structural block diagram of a request processing device provided by an embodiment of the present disclosure.
- Fig. 8 is a structural block diagram of an electronic device provided by an embodiment of the present disclosure.
- FIG. 1 is a schematic diagram of a data processing scenario applicable to an embodiment of the present disclosure.
- Fig. 1 exemplarily shows three data centers D1 to D3, and D1, D2 and D3 are connected to each other by communication, so as to perform data synchronization from the master data center to the slave data center.
- the data center here refers to the computer room used to process and store data.
- D1 is used to process data processing requests of m1 areas A1_1 to A1_m1. That is to say, the master data center of the area A1_1 to A1_m1 is D1, and D2 and D3 are the slave data centers of the area A1_1 to A1_m1. After D1 processes the data processing requests of the users in areas A1_1 to A1_m1, the data can be synchronized to D2 and D3.
- D2 is used to process the data processing requests of m2 areas A2_1 to A2_m2. That is to say, the master data center of A2_1 to A2_m2 is D2, and D1 and D3 are the slave data centers of areas A2_1 to A2_m2. After D2 processes the data processing requests of users in areas A2_1 to A2_m2, the data can be synchronized to D1 and D3.
- D3 is used to process the data processing requests of m3 areas A3_1 to A3_m3. That is to say, the master data center of A3_1 to A3_m3 is D3, and D1 and D2 are the slave data centers of areas A3_1 to A3_m3. After D3 processes the data processing requests of users in areas A3_1 to A3_m3, the data can be synchronized to D1 and D2.
- a region corresponds to only one master data center and multiple slave data centers, but one master data center can correspond to one or more regions, and one slave data center can correspond to one or more regions.
- the data processing request is processed by the master data center in the area corresponding to the user, and the master data center synchronizes it to the slave data center after processing.
- the user can be a buyer and a seller. For example, if the buyer U1 is in the area A1_1, the data processing request initiated by the buyer U1 for the order is processed by the main data center D1 in the area A1_1. For another example, if the seller U2 is in the area A2_1, then the data processing request initiated by the seller U2 for the order is processed by the main data center D2 in the area A2_1.
- the buyer U1 in area A1_1 wants to cancel the order after buying a commodity.
- the master data center D1 in area A1_1 changes the status of the order to cancel.
- the seller U2 of this product is in area A2_1, and U2 has shipped the order.
- the master data center D2 corresponding to area A2_1 changes the status of the order to shipped. In this way, the status of the same order in D1 and D2 is inconsistent.
- the embodiment of the present disclosure considers that no matter whether the buyer initiates a data processing request for an order or the seller initiates a data processing request for an order, the master data center in the target area corresponding to the purchaser processes the data processing request . In this way, for the same order, both the buyer and the seller modify the data in the same data processing center, thereby avoiding data inconsistency between the two data centers caused by the buyer and the seller modifying data in different data centers.
- the buyer U1 in area A1_1 wants to cancel the order after buying a product, at this time, D1 changes the status of the order to cancel.
- the data processing request for the order is processed by the master data center in the buyer's area, so when the seller U2 of this product ships the order, the master data center D1 corresponding to the area A1_1 will The status of the order was changed to Shipped. In this way, there is only one status of the same order, and there is no inconsistency of status.
- Fig. 2 is a flow chart of steps of a request processing method provided by an embodiment of the present disclosure.
- the method shown in Figure 2 can be applied in the first gateway, which is used to schedule and forward data processing requests, and the first gateway can be an independent device, or a virtual gateway integrated on other devices module.
- the request processing method includes:
- S101 Receive a data processing request, where the data processing request is used to process an order.
- the data processing request may be initiated by the buyer, the seller, or any other third party, which is not limited in the embodiments of the present disclosure.
- data processing requests can be divided into two categories: data write requests and data read requests.
- the data writing request is used for adding data, deleting data and modifying data.
- the data read request is used to read data from the data center, and will not modify, delete, or add data in the data center.
- the data processing request may be a data writing request, which is used to write the data of the newly generated order into the data center.
- the data processing request may be a data writing request, which is used to modify the status of the order in the data center.
- the data processing request may be a data writing request, which is used to delete the data of the specified order in the data center.
- the data processing request may be a data reading request, which is used to obtain relevant data of the order from the data center.
- the buyer or seller can initiate the above data processing request through their respective electronic devices.
- the above data processing request may be initiated in an application program or a webpage running on the electronic device.
- the target area may be any of the following areas: the area where the buyer is currently located, and the area where the buyer is registered. In practical applications, the target area may be set to be the area where the buyer is currently located or the area to which the buyer is registered according to certain requirements. A region here is a geographically divided area.
- the aforementioned target area may be determined according to the information carried in the data processing request.
- the data processing request may include at least one of the following information: the target area, domain name information of the device submitting the data processing request, and identity information of the purchaser.
- the data of all orders are divided into multiple sub-data sets according to the area of the buyer of the order.
- a region's subdatasets correspond to a master data center, which has sole permission to write to that region.
- a region corresponds to only one primary data center.
- a master data center may correspond to sub-datasets of one or more regions, and the sub-datasets of these regions of the master data center constitute the data set of the master data center. It can be understood that the data sets of the remaining data centers are the same as the data sets of the main data center, and are full data of all orders.
- the device may determine a target area, add the target area to the data processing request and send it.
- the device can determine the target area based on the following information: SIM (subscriber identity module, subscriber identity card) information on the device, the IP (internet protocol, network protocol) address of the device, and the system area of the device.
- SIM subscriber identity module
- subscriber identity card information on the device
- IP internet protocol, network protocol
- the target area when the target area is determined according to the SIM information, the area to which the SIM card belongs may be determined as the target area. For example, if the area is a country, then the MCC (mobile country code, mobile country code) of the SIM card can be used as the target area.
- MCC mobile country code, mobile country code
- the area to which the IP address belongs may be determined as the target area.
- the system area of the device may be determined as the target area.
- the system area of the device may be the area set by the user when using the device for the first time.
- the above three methods for determining the target area may have corresponding priorities, so that one of the methods may be selected according to the priority to determine the target area.
- the target area is determined according to the following priorities from high to low: the priority of the target area is determined by SIM information, the target area is determined by IP address, and the target area is determined by The system zone of the device determines the target zone.
- the device that initiates the data processing request does not determine the target area, that is, the data processing request does not carry the target area, so when the first gateway receives the data processing request , need to determine the target area.
- the first gateway may determine the target area according to the above domain name information. Specifically, the above domain name information is analyzed to obtain the target area corresponding to the purchaser of the order.
- domain name information corresponds to regions, and domain name information corresponding to different regions is different.
- the domain name information of the purchaser's device represents the current area where the purchaser is located, and the current area may be the target area. Since the relationship between the domain name information and the area is fixed, the accuracy of the target area determined according to the domain name information is relatively high.
- the area corresponding to the domain name information is the current area where the user initiating the data processing request is located, so the area may be the area where the buyer is currently located, or the area where the seller is currently located. If the data processing request is processed through the data center in the area where the seller is located, then, as in the prior art, the data processing requests of the seller and the buyer are processed by two data centers respectively, so there is an inconsistency in the status of the order The problem.
- the target area needs to be determined through the remaining methods. In this way, it is possible to avoid determining the area where the seller is currently located as the target area, which helps to improve the accuracy of the target area, avoids processing data processing requests through the data center in the area where the seller is located, and further ensures the state consistency of the order .
- the device that initiates the data processing request does not determine the target area, that is, the data processing request does not carry the target area, so when the first gateway receives the data processing request , need to determine the target area.
- the first gateway may also determine the target area according to the identity information, where the identity information is a unique identifier used to represent the purchaser.
- the identity information is a unique identifier used to represent the purchaser.
- the identification information here may be a character string corresponding to the purchaser one by one. Therefore, after the data center generates unique identification information for the purchaser, the corresponding relationship between the identification information and the attribution area can be recorded as registration information. Therefore, the embodiment of the present disclosure can also determine the target area through the buyer's identity information and registration information in the data processing request.
- the area corresponding to the identity information in the data processing request is obtained from the registration information as the target area corresponding to the purchaser of the order, and the registration information includes at least one identity information of the purchaser.
- the attribution area of information registration For example, if a buyer registers as the region A1_1 at the time of registration, then the target region of the data processing request for the buyer's order is A1_1, so the data processing request can be processed by the main data center D1 of A1_1.
- the area determined according to the buyer's identity information must be the buyer's belonging area, and cannot be the seller's area, so that it is not necessary to judge who is the initiator of the data processing request, and the accuracy of the target area can also be guaranteed degree, thereby ensuring the state consistency of the order.
- S103 Select the primary data center corresponding to the target area from the preset configuration information as the first data center for processing the data processing request, where the preset configuration information includes the primary data centers corresponding to at least one area respectively.
- the preset configuration information is obtained through pre-configuration, and the format of the preset configuration information can be set flexibly, as long as it can represent the corresponding relationship between the region and the main data center.
- the first format of the preset configuration information can be: ⁇ D1: A1_1, ..., A1_m1 ⁇ , ⁇ D2: A2_1, ..., A2_m2 ⁇ and ⁇ D3: A3_1, ..., A3_m3 ⁇ .
- the second format of the above preset configuration information may be: ⁇ A1, D1 ⁇ , ..., ⁇ A1_m1, D2 ⁇ , ⁇ A2_1, D2 ⁇ , ..., ⁇ A2_m2, D2 ⁇ , ⁇ A3_1, D3 ⁇ , ..., ⁇ A3_m3, D3 ⁇ .
- Embodiments of the present disclosure do not limit the format of the configuration information.
- the region and the main data center in the second format have a one-to-one correspondence, so that the region can be used as an index, and the main data center can be determined according to the region, which helps to improve the retrieval efficiency and further improve the determination of the first data center. Acquisition speed of the center.
- the first data center determined from the configuration information is D3.
- the configuration information can be modified.
- data center D1 when data center D1 is abnormal, it is necessary to modify the master data center corresponding to areas A1_1 to A1_m1 to data center D2 or D3, and modify D1 to be a slave data center.
- This modification can be obtained by modifying the above configuration information.
- the configuration information in the above-mentioned first format is taken as an example below for description.
- the modified configuration information can be: ⁇ D2: A1_1, ..., A1_m1, A2_1, ..., A2_m2 ⁇ and ⁇ D3: A3_1, ..., A3_m3 ⁇ .
- the embodiment of the present disclosure may stop processing the data processing request of the area corresponding to the main data center being modified in the preset configuration information during the process of modifying the above preset configuration information. Continue to process the data processing request of this area after modifying the configuration information.
- the first gateway when the first gateway receives a data processing request, it first determines the target area of the data processing request, and then determines the first data center in the target area, if the first data center is in the preset configuration information modified primary data center, then the first gateway will not send the data processing request to the first data center center for processing.
- the first gateway may also reply an indication message to the originator of the data processing request to remind that the data processing request cannot be processed temporarily.
- the above data processing request can be divided into a data write request and a data read request.
- the embodiment of the present disclosure determines the data center to process the data write request and the data read request according to different strategies.
- the data processing request is a data write request
- the data write request needs to be processed by the master data center and synchronized to the slave data center to ensure that the data in each data center is consistent. That is to say, the first gateway may select the primary data center corresponding to the target area from the preset configuration information as the first data center for processing the data write request, so as to process the data write request through the first data center. deal with.
- the data processing request is a data reading request
- it can be considered to process the data reading request from the data center, which can prevent all requests from being processed by the main data center and help reduce the load of the main data center. Furthermore, it can prevent the main data center from causing abnormality due to a large coincidence, and can ensure that the main data center is normal to process the data write request, which helps to improve the success rate and processing efficiency of the main data center for data write requests.
- the data read request may carry a real-time identifier, which is used to indicate that the data read request requires real-time data. Therefore, the first gateway can determine the data center that processes the data read request according to the real-time identifier. Since the primary data center is a data center that processes data write requests, the data in the primary data center is the latest data, that is, data with high real-time performance. Therefore, the master data center can process the data reading request with higher real-time requirement, and the slave data center can process the data read request with lower real-time requirement.
- the real-time identifier carried by the data read request is the first identifier
- the data read request has a high requirement for real-time performance
- the first gateway can select the master server corresponding to the target area from the preset configuration information.
- the data center serves as the first data center for processing the data read request, so as to process the data read request through the first data center.
- the high real-time requirement of the data reading request on the data can be guaranteed.
- the data read request for reading the state of an order has high requirements for real-time performance, and it can carry the first identifier, so that the read request can be performed by the main data center. Process the data read request to get the status of the order.
- the real-time identifier carried by the data read request is the second identifier
- the data read request has relatively low requirements for real-time performance
- the first gateway can process the data read request through the second data center, which No.
- the second data center is a data center other than the first data center in the target area.
- the data reading request for reading the commodity information of the order has low real-time requirements, and it can carry the second identification, so that the order can be read by the slave data center.
- the data read request of the product information is processed.
- the secondary data center can process the data reading request with low data real-time requirement, so that the load of the primary data center can be further reduced on the premise of satisfying the low data real-time requirement. Furthermore, it can prevent the main data center from causing abnormality due to a large coincidence, and can ensure that the main data center is normal to process the data write request, which helps to improve the success rate and processing efficiency of the main data center for data write requests.
- S104 Send the above data processing request to the first data center for processing.
- the above steps from S101 to S104 may be performed by the first gateway.
- the first gateway here may be a gateway corresponding to any data center.
- the gateway of each data center in the embodiment of the present disclosure can realize the receiving and forwarding of the data processing request in the embodiment of the present disclosure, that is, any gateway can execute the processes from S101 to S104.
- the embodiments of the present disclosure can also receive and forward the data processing request through other gateways when one gateway is abnormal, which helps to improve the processing success of the data processing request rate, to avoid a gateway abnormality and the overall unavailability.
- each data center has a gateway, which can balance the processing load of each gateway, avoid gateway abnormality caused by a large processing match of the gateway, and further improve the processing success rate of data processing requests.
- the first data center in this embodiment of the present disclosure may be a data center corresponding to the first gateway, or may be a data center corresponding to other gateways.
- the first gateway may send the data processing request to the first server for processing, and the first server is the server of the first data center.
- the first gateway can send the data processing request to the second server for processing through the second gateway.
- the second gateway is the server of the first data center, and the second gateway is the server of the first data center.
- the second server is the server of the first data center.
- FIG. 3 and FIG. 4 are schematic diagrams of two processing flows of data processing requests provided by embodiments of the present disclosure.
- data center D1 corresponds to server S1 and gateway G1
- data center D2 corresponds to server S2 and gateway G2
- data center D3 corresponds to server S3 and gateway G3.
- G1 when the gateway G1 receives the data processing request R1, G1 is the first gateway. If G1 determines that the first data center of R1 is D1, then the server S1 of D1 is the first server. Therefore, G1 can send R1 to S1 for processing.
- G1 when the gateway G1 receives the data processing request R2, G1 is the first gateway. If G1 determines that the first data center of R2 is D2, then the server S2 of D2 is the second server. Therefore, G1 can send R2 to G2, and G2 can send R2 to S2 for processing.
- D2 or D3 receives a data processing request
- D2 or D3 is the first gateway
- the first data center is determined according to the above process, so as to determine whether the first data center is the data corresponding to the first gateway.
- the center forwards the data processing request, and the forwarding process is similar to the process shown in FIG. 3 and FIG. 4 above, which will not be repeated here in the embodiments of the present disclosure.
- FIG. 5 and FIG. 6 are schematic diagrams of two layouts of a data center gateway provided by an embodiment of the present disclosure.
- a data center is configured with: an application programming interface (application programming interface, API) layer, a server, and a data system.
- API application programming interface
- the application program interface layer is used to receive the data processing request and forward it to the server, and the server is used to process the data in the data system according to the data processing request, and the data system can be understood as a database.
- the gateway may be an API in the API layer in the data center.
- the gateway may also be a service mounted on the server.
- the gateway is a service mounted on the server
- the first data center is the data center corresponding to the first gateway
- the first gateway is a service mounted on the server of the first data center, called First service. Therefore, in the process of the first gateway sending the data processing request to the first server for processing, the data processing request can be sent to the first server corresponding to the first service for the first service, and both the first gateway and the first server belong to First data center.
- the gateway is a service mounted on the server
- the first gateway is a service mounted on the server of the second data center, which can be called
- the second gateway is a service mounted on the server of the first data center, which can be called the second service
- the second data center is a data center other than the first data center. Therefore, the first gateway can send the data processing request to the second server for processing through the second gateway, and can send the data processing request to the second service for the first service, and the second service can send the data processing request to The second server corresponding to the second service performs processing. Both the second gateway and the second server belong to the first data center.
- the gateway is an API in the API layer of the data center
- the first gateway is an API in the application programming interface API layer of the first data center, called for the first API. Therefore, the process of the first gateway sending the data processing request to the first server for processing can be for the first API to send the data processing request to the first server corresponding to the first API for processing, the first gateway and the first server All belong to the first data center.
- the gateway is an API in the API layer of the data center
- the first gateway is an API in the API layer of the second data center
- the second gateway is No.
- An API in the API layer of a data center, and a second data center is a data center other than the first data center. Therefore, the first gateway can send the data processing request to the second server for processing through the second gateway, and can send the data processing request to the second API for the first API, and the second API sends the data processing request to The second server corresponding to the second API performs processing. Both the second gateway and the second server belong to the first data center.
- the gateway can be set at the API layer and the server side at the same time, so that when the API layer can determine the target area, since the first data center can be determined, the data processing request can be sent to the first data center through the API. If the API layer cannot determine the target area, since the first data center cannot be determined, the API needs to send the data processing request to its corresponding server first, so that the server can determine the target area and the first data center, and process the data The request is sent to the second gateway of the second server, and the second gateway sends the data processing request to the first data center.
- the embodiments of the present disclosure can realize the forwarding of the data processing request in various ways, which helps to improve the success rate of forwarding the data processing request, and further improves the processing success rate of the data processing request.
- FIG. 7 is a structural block diagram of a request processing device provided in an embodiment of the present disclosure, which is applied to the first gateway.
- the request processing apparatus 200 includes: a data processing request receiving module 201 , a target area determining module 202 , a data center determining module 203 and a data processing module 204 .
- the data processing request receiving module 201 is configured to receive a data processing request, and the data processing request is used to process the order.
- a target area determining module 202 configured to determine the target area corresponding to the buyer of the order.
- a data center determination module 203 configured to select the primary data center corresponding to the target area from preset configuration information as the first data center for processing the data processing request, the preset configuration information including at least one area corresponding to the main data center.
- the data processing module 204 is configured to send the data processing request to the first data center for processing.
- the data processing module 204 is also used for:
- the first data center is the data center corresponding to the first gateway, sending the data processing request to the first service
- the end performs processing
- the first server end is a server end of the first data center.
- the data processing request is sent to the second server for processing through the second gateway, and the second gateway is the first data center.
- the server end of the center, the second server end is the server end of the first data center.
- the first gateway is a service mounted on a server of the first data center.
- the first gateway is linked
- the service carried on the server of the second data center the second gateway is a service mounted on the server of the first data center, and the second data center is outside the first data center data center.
- the first gateway is an API in an application program interface API layer of the first data center.
- the first gateway is an API in the API layer of the second data center
- the second gateway is an API of the first data center
- the second data center is a data center other than the first data center.
- the above-mentioned data processing module 204 is also used for:
- the data processing request is a data write request or a data read request carrying a real-time identifier of the first identifier
- the data processing request is sent to the first data center for processing, and the data write The request is used to perform at least one of the following processing on the order: adding data, deleting data and modifying data.
- the device also includes:
- the second data processing module is configured to: if the data processing request is a data reading request, and the real-time identification carried by the data reading request is a second identification, then process the data reading request through the second data center For processing, the second data center is a data center other than the first data center.
- the device also includes:
- a configuration information modifying module configured to modify the preset configuration information.
- the stop processing module is configured to, during the process of modifying the preset configuration information, stop processing the data processing request of the area corresponding to the primary data center being modified in the preset configuration information.
- the data processing request includes the target area
- the target area determination module 202 is further configured to:
- the target area is extracted from a target field of the data processing request.
- the data processing request includes domain name information of the device that submitted the data processing request
- the target area determination module 202 is further configured to:
- the domain name information is analyzed to obtain the target area corresponding to the purchaser of the order.
- the data processing request includes the buyer's identity information
- the target area determining module 202 is further configured to:
- the area corresponding to the identity information is obtained from the registration information as the target area corresponding to the purchaser of the order, and the registration information includes at least one attribution area registered with the identity information of the purchaser.
- the request processing device provided in this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 2 above, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
- Fig. 8 is a structural block diagram of an electronic device 600 provided by an embodiment of the present disclosure.
- the electronic device 600 includes a memory 602 and at least one processor 601 .
- the memory 602 stores computer-executable instructions.
- At least one processor 601 executes the computer-executed instructions stored in the memory 602, so that the electronic device 601 implements the aforementioned method in FIG. 2 .
- the electronic device may also include a receiver 603 and a transmitter 604, the receiver 603 is used to receive information from other devices or devices, and forwards it to the processor 601, and the transmitter 604 is used to send information to other devices or devices .
- an embodiment of the present disclosure provides a request processing method, which is applied to a first gateway, and the method includes:
- the data processing request is used to process the order
- the sending the data processing request to the first data center for processing includes:
- the data processing request is sent to the first server for processing, and the first server is the service of the first data center end;
- the data processing request is sent to the second server for processing through the second gateway, and the second gateway is the first data center.
- the server end of the center, the second server end is the server end of the first data center.
- the first gateway when the first data center is the data center corresponding to the first gateway, the first gateway is mounted on services on the server side of the first data center;
- the first gateway is a service mounted on the server of the second data center
- the second gateway is a service mounted on the server of the second data center
- the service on the server end of the first data center, the second data center is a data center other than the first data center.
- the first gateway is the second an API in the application programming interface API layer of the data center;
- the first gateway is an API in the API layer of the second data center
- the second gateway is an API of the first data center
- the second data center is a data center other than the first data center.
- the sending the data processing request to the first data center for processing includes:
- the data processing request is a data write request or a data read request carrying a real-time identifier of the first identifier
- the data processing request is sent to the first data center for processing, and the data write The request is used to perform at least one of the following processing on the order: adding data, deleting data and modifying data.
- the method further includes:
- the data processing request is a data reading request
- the real-time identifier carried by the data reading request is the second identifier
- the data reading request is processed through the second data center
- the second data A center is a data center other than the first data center.
- the seventh example of the first aspect further includes:
- the data processing request includes the target area, and the target area corresponding to the buyer of the order is determined area, including:
- the target area is extracted from a target field of the data processing request.
- the data processing request includes domain name information of the device that submitted the data processing request, and the determination of the order Target regions for buyers of , including:
- the domain name information is analyzed to obtain the target area corresponding to the purchaser of the order.
- the data processing request includes the identity information of the buyer, and the buyer who determines the order Corresponding target areas include:
- the area corresponding to the identity information is obtained from the registration information as the target area corresponding to the purchaser of the order, and the registration information includes at least one attribution area registered with the identity information of the purchaser.
- a request processing device which is applied to the first gateway, and the device includes:
- a data processing request receiving module configured to receive a data processing request, and the data processing request is used to process an order
- a target area determining module configured to determine the target area corresponding to the buyer of the order
- a data center determination module configured to select the primary data center corresponding to the target area from preset configuration information as the first data center for processing the data processing request, the preset configuration information including at least one area respectively The corresponding main data center;
- a data processing module configured to send the data processing request to the first data center for processing.
- the data processing module is further configured to:
- the first data center is the data center corresponding to the first gateway, sending the data processing request to the first service
- the terminal performs processing, and the first server is the server of the first data center;
- the data processing request is sent to the second server for processing through the second gateway, and the second gateway is the first data center.
- the server end of the center, the second server end is the server end of the first data center.
- the first gateway when the first data center is the data center corresponding to the first gateway, the first gateway is mounted on services on the server side of the first data center;
- the first gateway is a service mounted on the server of the second data center
- the second gateway is a service mounted on the server of the second data center
- the service on the server end of the first data center, the second data center is a data center other than the first data center.
- the first gateway is the second an API in the application programming interface API layer of the data center;
- the first gateway is an API in the API layer of the second data center
- the second gateway is an API of the first data center
- the second data center is a data center other than the first data center.
- the data processing module is further used for:
- the data processing request is a data write request or a data read request carrying a real-time identifier of the first identifier
- the data processing request is sent to the first data center for processing, and the data write The request is used to perform at least one of the following processing on the order: adding data, deleting data and modifying data.
- the device further includes:
- the second data processing module is configured to: if the data processing request is a data reading request, and the real-time identification carried by the data reading request is a second identification, then process the data reading request through the second data center For processing, the second data center is a data center other than the first data center.
- the device further includes:
- a configuration information modifying module configured to modify the preset configuration information
- the stop processing module is configured to, during the process of modifying the preset configuration information, stop processing the data processing request of the area corresponding to the primary data center being modified in the preset configuration information.
- the data processing request includes the target area
- the target area determination module is further configured to:
- the target area is extracted from a target field of the data processing request.
- the data processing request includes domain name information of the device that submitted the data processing request, and the target area determination module Also used for:
- the domain name information is analyzed to obtain the target area corresponding to the purchaser of the order.
- the data processing request includes the identity information of the purchaser, and the target area determination module is further configured to :
- the area corresponding to the identity information is obtained from the registration information as the target area corresponding to the purchaser of the order, and the registration information includes at least one attribution area registered with the identity information of the purchaser.
- an electronic device including: at least one processor and a memory;
- the memory stores computer-executable instructions
- the at least one processor executes the computer-executed instructions stored in the memory, so that the electronic device implements the method according to any one of the first aspect.
- a computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, Making a computing device implement the method of any one of the first aspects.
- a computer program is provided, the computer program is used to implement the method described in any one of the first aspect.
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
Claims (15)
- 一种请求处理方法,应用于第一网关,其中,所述方法包括:接收数据处理请求,所述数据处理请求用于对订单进行处理;确定所述订单的购买方所对应的目标区域;从预设配置信息中选取所述目标区域对应的主数据中心作为对所述数据处理请求进行处理的第一数据中心,所述预设配置信息中包括至少一个区域分别对应的主数据中心;将所述数据处理请求发送给所述第一数据中心进行处理。
- 根据权利要求1所述的方法,其中,所述将所述数据处理请求发送给所述第一数据中心进行处理,包括:若所述第一数据中心是所述第一网关所对应的数据中心,则将所述数据处理请求发送给第一服务端进行处理,所述第一服务端是所述第一数据中心的服务端;若所述第一数据中心不是所述第一网关所对应的数据中心,则通过第二网关将所述数据处理请求发送给第二服务端进行处理,所述第二网关是所述第一数据中心的服务端,所述第二服务端是所述第一数据中心的服务端。
- 根据权利要求2所述的方法,其中,当所述第一数据中心是所述第一网关所对应的数据中心时,所述第一网关是挂载在所述第一数据中心的服务端上的服务;当所述第一数据中心不是所述第一网关所对应的数据中心时,所述第一网关是挂载在第二数据中心的服务端上的服务,所述第二网关是挂载在所述第一数据中心的服务端上的服务,所述第二数据中心是所述第一数据中心之外的数据中心。
- 根据权利要求2所述的方法,其中,当所述第一数据中心是所述第一网关所对应的数据中心时,所述第一网关是所述第一数据中心的应用程序接口API层中的API;当所述第一数据中心不是所述第一网关所对应的数据中心时,所述第一网关是第二数据中心的API层中的API,所述第二网关是所述第一数据中心的API层中的API,所述第二数据中心是所述第一数据中心之外的数据中心。
- 根据权利要求1至4任一项所述的方法,其中,所述将所述数据处理请求发送给所述第一数据中心进行处理,包括:若所述数据处理请求为数据写入请求或携带的实时性标识为第一标识的数据读 取请求,则将所述数据处理请求发送给所述第一数据中心进行处理,所述数据写入请求用于对所述订单进行以下至少一种处理:新增数据、删除数据和修改数据。
- 根据权利要求5所述的方法,其中,所述方法还包括:若所述数据处理请求为数据读取请求,且所述数据读取请求携带的实时性标识为第二标识,则通过第二数据中心对所述数据读取请求进行处理,所述第二数据中心是所述第一数据中心之外的数据中心。
- 根据权利要求1至6任一项所述的方法,其中,还包括:修改所述预设配置信息;在修改所述预设配置信息的过程中,停止对所述预设配置信息中的正在修改的主数据中心对应的区域的数据处理请求进行处理。
- 根据权利要求1至7任一项所述的方法,其中,所述数据处理请求中包括所述目标区域,所述确定所述订单的购买方所对应的目标区域,包括:从所述数据处理请求的目标字段中提取所述目标区域。
- 根据权利要求1至7任一项所述的方法,其中,所述数据处理请求中包括提交所述数据处理请求的设备的域名信息,所述确定所述订单的购买方所对应的目标区域,包括:对所述域名信息进行解析,得到所述订单的购买方所对应的目标区域。
- 根据权利要求1至7任一项所述的方法,其中,所述数据处理请求中包括所述购买方的身份标识信息,所述确定所述订单的购买方所对应的目标区域,包括:从注册信息中获取所述身份标识信息对应的区域作为所述订单的购买方所对应的目标区域,所述注册信息中包括至少一个购买方的身份标识信息注册的归属区域。
- 一种请求处理装置,其中,应用于第一网关,所述装置包括:数据处理请求接收模块,用于接收数据处理请求,所述数据处理请求用于对订单进行处理;目标区域确定模块,用于确定所述订单的购买方所对应的目标区域;数据中心确定模块,用于从预设配置信息中选取所述目标区域对应的主数据中心作为对所述数据处理请求进行处理的第一数据中心,所述预设配置信息中包括至少一个区域分别对应的主数据中心;数据处理模块,用于将所述数据处理请求发送给所述第一数据中心进行处理。
- 一种电子设备,其中,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述电子设备实现如权利要求1至10任一项所述的方法。
- 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,使计算设备实现如权利要求1至10任一项所述的方法。
- 一种计算机程序,其中,所述计算机程序用于实现如权利要求1至10任一项所述的方法。
- 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1至10任一项所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/842,024 US20250173776A1 (en) | 2022-02-28 | 2023-02-21 | Request processing method and device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210190744.9A CN114549137B (zh) | 2022-02-28 | 2022-02-28 | 请求处理方法及设备 |
| CN202210190744.9 | 2022-02-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023160551A1 true WO2023160551A1 (zh) | 2023-08-31 |
Family
ID=81661619
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/077450 Ceased WO2023160551A1 (zh) | 2022-02-28 | 2023-02-21 | 请求处理方法及设备 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20250173776A1 (zh) |
| CN (1) | CN114549137B (zh) |
| WO (1) | WO2023160551A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114549137B (zh) * | 2022-02-28 | 2025-10-03 | 北京有竹居网络技术有限公司 | 请求处理方法及设备 |
| CN115580583A (zh) * | 2022-09-07 | 2023-01-06 | 中国银行股份有限公司 | 微服务架构下的服务分流方法及装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106572069A (zh) * | 2015-10-12 | 2017-04-19 | 阿里巴巴集团控股有限公司 | 一种网络访问控制方法及服务器 |
| CN107315650A (zh) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | 网络交易系统和由网络交易系统执行的方法 |
| WO2021129008A1 (zh) * | 2019-12-23 | 2021-07-01 | 中国银联股份有限公司 | 服务调用方法、装置、设备及介质 |
| CN113094431A (zh) * | 2021-03-30 | 2021-07-09 | 北京达佳互联信息技术有限公司 | 读写分离方法、装置及服务器 |
| CN114549137A (zh) * | 2022-02-28 | 2022-05-27 | 北京有竹居网络技术有限公司 | 请求处理方法及设备 |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7233978B2 (en) * | 1998-07-08 | 2007-06-19 | Econnectix, Llc | Method and apparatus for managing location information in a network separate from the data to which the location information pertains |
| US20030065571A1 (en) * | 1999-10-14 | 2003-04-03 | Rabindranath Dutta | System, method, and program for determining the jurisdiction of a product delivery location by using the ip address of the client while selling items via electronic commerce over the internet |
| US20020082954A1 (en) * | 2000-12-22 | 2002-06-27 | Dunston Stephen J. | System and method for providing direct channel distribution over a global computer network |
| US8412625B2 (en) * | 2008-08-25 | 2013-04-02 | Bruno Pilo' & Associates, Llc | System and methods for a multi-channel payment platform |
| CN102831499B (zh) * | 2012-08-06 | 2016-08-03 | 北京亿速码数据处理有限责任公司 | 全国城市一卡通互联互通系统及方法 |
| CN103745299A (zh) * | 2013-12-16 | 2014-04-23 | 远光软件股份有限公司 | 一种跨数据中心抽取数据的方法及设备 |
| US10417690B2 (en) * | 2015-07-06 | 2019-09-17 | Newstore, Inc. | Method and system for order routing and management |
| CN106933548B (zh) * | 2015-12-29 | 2021-01-12 | 阿里巴巴集团控股有限公司 | 全局信息获取、处理及更新、方法、装置和系统 |
| CN106803836B (zh) * | 2016-12-27 | 2021-03-23 | 中国银联股份有限公司 | 一种多中心文件转发处理方法及装置 |
| CN110443593B (zh) * | 2019-08-07 | 2023-11-21 | 网联清算有限公司 | 交易处理方法及装置、交易处理系统和计算机系统 |
| CN110610405A (zh) * | 2019-09-12 | 2019-12-24 | 浙江省轨道交通运营管理集团有限公司 | 一种实现跨城跨区域互联互通的互联网票务平台 |
| CN112150160B (zh) * | 2020-09-30 | 2023-08-08 | 重庆市科学技术研究院 | 一种电子票券交易建议生成方法及系统 |
-
2022
- 2022-02-28 CN CN202210190744.9A patent/CN114549137B/zh active Active
-
2023
- 2023-02-21 US US18/842,024 patent/US20250173776A1/en active Pending
- 2023-02-21 WO PCT/CN2023/077450 patent/WO2023160551A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106572069A (zh) * | 2015-10-12 | 2017-04-19 | 阿里巴巴集团控股有限公司 | 一种网络访问控制方法及服务器 |
| CN107315650A (zh) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | 网络交易系统和由网络交易系统执行的方法 |
| WO2021129008A1 (zh) * | 2019-12-23 | 2021-07-01 | 中国银联股份有限公司 | 服务调用方法、装置、设备及介质 |
| CN113094431A (zh) * | 2021-03-30 | 2021-07-09 | 北京达佳互联信息技术有限公司 | 读写分离方法、装置及服务器 |
| CN114549137A (zh) * | 2022-02-28 | 2022-05-27 | 北京有竹居网络技术有限公司 | 请求处理方法及设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20250173776A1 (en) | 2025-05-29 |
| CN114549137B (zh) | 2025-10-03 |
| CN114549137A (zh) | 2022-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108470298B (zh) | 资源数值转移的方法、装置和系统 | |
| CN104980903B (zh) | 一种保护用户隐私的方法及装置 | |
| CN111047321A (zh) | 业务处理方法及装置、电子设备、存储介质 | |
| WO2015078402A1 (en) | Method, apparatus and device for exchanging name card | |
| TWI836075B (zh) | 基於圖形碼的業務處理方法及裝置、電子設備、儲存媒體 | |
| WO2023160551A1 (zh) | 请求处理方法及设备 | |
| GB2594018A (en) | Method, system, and computer readable medium for transferring cryptographic tokens | |
| CN108959465B (zh) | 业务数据的存储、读取方法、装置及服务器 | |
| CN111488615A (zh) | 业务数据区块链的跨链实现方法及装置 | |
| CN107038589A (zh) | 一种实体信息验证方法及装置 | |
| CN112860953A (zh) | 图数据库的数据导入方法、装置、设备及存储介质 | |
| CN107071864B (zh) | 一种用于连接无线接入点的方法、设备及系统 | |
| CN114675982B (zh) | 一种业务集成系统的数据获取通用方法及系统 | |
| CN114238397A (zh) | 用户数据处理方法、装置、设备、存储介质和程序产品 | |
| JP6941614B2 (ja) | サービス処理方法及び装置 | |
| CN113222565A (zh) | 交易系统、交易方法、装置、计算机设备和存储介质 | |
| US20180218419A1 (en) | Method and apparatus for providing digital product using user account synchronization | |
| US11978109B1 (en) | Integrating a wallet client with federated directory services | |
| CN106912118B (zh) | 一种用于创建服务号的方法、设备及系统 | |
| WO2016023426A1 (zh) | 实现o2o互联网服务的方法和装置 | |
| CN109462868A (zh) | 无线接入点查询目标信息的方法与设备 | |
| CN113971594B (zh) | 业务处理方法及装置 | |
| US20240070614A1 (en) | Methods for location mapping to facilitate collaboration for users sharing common attributes and devices thereof | |
| CN116797211A (zh) | 产品资源转移方法、装置、计算机设备和存储介质 | |
| CN118586920A (zh) | 多机房环境下聚合支付系统付款成功的通知方法及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23759176 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18842024 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23759176 Country of ref document: EP Kind code of ref document: A1 |
|
| WWP | Wipo information: published in national office |
Ref document number: 18842024 Country of ref document: US |