CN113986995A - Request distribution method and device, storage medium and electronic equipment - Google Patents

Request distribution method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113986995A
CN113986995A CN202111313030.4A CN202111313030A CN113986995A CN 113986995 A CN113986995 A CN 113986995A CN 202111313030 A CN202111313030 A CN 202111313030A CN 113986995 A CN113986995 A CN 113986995A
Authority
CN
China
Prior art keywords
machine room
user
request
query request
identifier
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.)
Pending
Application number
CN202111313030.4A
Other languages
Chinese (zh)
Inventor
姚贤煌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111313030.4A priority Critical patent/CN113986995A/en
Publication of CN113986995A publication Critical patent/CN113986995A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a request distribution method, a request distribution device, a storage medium and electronic equipment. The method comprises the following steps: receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier; determining a target machine room corresponding to the query request based on the machine room position identifier; and sending the query request to a user center server corresponding to a target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, and the request is sent to the user center server corresponding to the target machine room, so that the automatic distribution of the query request is realized.

Description

Request distribution method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of resource allocation technologies, and in particular, to a request distribution method, an apparatus, a storage medium, and an electronic device.
Background
In some application scenarios of the hybrid cloud, for example, data-sensitive scenarios such as medical treatment and government affairs, the cloud manufacturers used by different organizations may be different, and the locations of the servers may be arranged in different regions.
In order to realize data interaction between different mixed clouds and different manufacturers, the prior art generally adopts a scheme that: the method specially develops a request interface of localized data, distinguishes data of different areas and machine rooms in a process, and calls a corresponding interface when the data of which area is needed.
However, in a special interface development manner, the upstream system needs to sense a special interface of the downstream system and invest research and development resources to perform business process modification. In addition, when an area and a machine room need to be newly added, all service links need to be adjusted, and the flexibility is not sufficient.
Disclosure of Invention
The embodiment of the invention provides a request distribution method, a request distribution device, a storage medium and electronic equipment, so that a request interface does not need to be specially developed, and the flexibility of request distribution is improved.
In a first aspect, an embodiment of the present invention provides a request distribution method, including: receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier;
determining a target machine room corresponding to the query request based on the machine room position identifier;
and sending the query request to a user center server corresponding to a target machine room so as to query user data corresponding to the user identification.
In a second aspect, an embodiment of the present invention further provides a request distribution apparatus, including:
the device comprises a request receiving module, a query processing module and a query processing module, wherein the request receiving module is used for receiving a query request, the query request comprises a user identifier, and the user identifier comprises a machine room position identifier;
the machine room determining module is used for determining a target machine room corresponding to the query request based on the machine room position identifier;
and the request distribution module is used for sending the query request to a user center server corresponding to the target machine room so as to query the user data corresponding to the user identification.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device 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 request distribution method according to any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the request distribution method described in any of the embodiments of the present invention.
The method comprises the steps of receiving a query request, wherein the query request comprises a user identifier which comprises a machine room position identifier; determining a target machine room corresponding to the query request based on the machine room position identifier; and sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, the query request is sent to the user center server corresponding to the target machine room, and automatic distribution of the query request is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a request distribution method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a request distribution method according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating a request distribution provided by a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a request distribution method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a request distribution apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a request distribution method according to an embodiment of the present invention, where the method is applicable to a case where a query request is automatically distributed in a hybrid cloud, and the method may be executed by a request distribution apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and the apparatus may be configured on an electronic computing device, for example, a cloud server. The method specifically comprises the following steps:
s110, receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier.
The query request may be a data query request initiated by a user through a user center of a current machine room, where the current machine room refers to a local machine room used by the current user. Cloud vendors include, but are not limited to, Aliskiren, Tencent cloud, China telecom, AWS (China) and Huazhiyun. It should be noted that the scenario to which the embodiment of the present invention is applied may include a medical scenario or a government scenario, and cloud vendors used by different organizations for storing data may be different, areas in which the cloud vendors are located may be different, and machine rooms used may be different. The query request may include, but is not limited to, a user identifier and request data, the user identifier is a unique identifier of a queried user, the user data may be accurately matched through the user identifier, the user identifier includes, but is not limited to, a machine room location identifier, and the machine room location identifier may be a machine room location identifier of a user data storage.
Optionally, the machine room location identifier includes a manufacturer code, an area code, and a machine room code. The manufacturer code refers to a code of a cloud manufacturer deployed by a business system used by a user, and may be represented by a number with a preset number of bits, for example, arry cloud may be represented by 10, tenuous cloud may be represented by 11, and huayun cloud may be represented by 12. The region code refers to a code of a geographical position where a cloud manufacturer computer room is located, and can be represented by a preset number of digits. For example, the geographic locations may be divided by cities, e.g., may be represented by 0001 for Beijing, 0002 for Shanghai, etc. The machine room code can be a specific number of the machine room, and it can be understood that in the same area, a plurality of machine rooms of cloud manufacturers can exist, and the machine rooms can be distinguished through the number.
Optionally, the user identifier further includes a random number with a preset number of digits. The random number is multi-bit data generated randomly, and the data of a plurality of users in the same computer room can be distinguished by setting the random number.
And S120, determining a target machine room corresponding to the query request based on the machine room position identifier.
The target machine room refers to a machine room in which user data corresponding to the user identifier is stored.
Specifically, in some embodiments, the position of the target machine room can be directly determined through the machine room position identifier, and the query request is sent to the user center server corresponding to the target machine room, so that cloud calling of data of each machine room can be realized; in another embodiment, whether the user data corresponding to the query request is in the current machine room or not can be judged according to the machine room position identification, and the target machine room is determined according to the judgment result, so that the local storage of the key data can be ensured, and the operation requirement of the cloud can be met.
S130, sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification.
The user center server refers to a server used by a user center system, and the user data can be queried through the user center server, and specifically, the user data can be queried in a user database through SQL.
The embodiment of the invention provides a request distribution method, which comprises the steps of receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier; determining a target machine room corresponding to the query request based on the machine room position identifier; and sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, the query request is sent to the user center server corresponding to the target machine room, and automatic distribution of the query request is achieved.
Example two
Fig. 2 is a flow chart diagram of a request distribution method according to a second embodiment of the present invention, and based on the second embodiment, the "determining a target machine room corresponding to the query request based on the machine room location identifier" is further refined. The specific implementation manner of the method can be seen in the detailed description of the technical scheme. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein. As shown in fig. 2, the method of the embodiment of the present invention specifically includes the following steps:
s210, receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier.
And S220, judging whether the user data corresponding to the query request is in the current machine room or not based on the machine room position identification, and if so, determining the current machine room as a target machine room.
The current machine room refers to a local cloud manufacturer machine room where a user initiates a query request.
Specifically, if the corresponding identifier of the current machine room is the same as the machine room location identifier, the current machine room is determined as the target machine room, and the user data corresponding to the query request is stored in the local machine room, where the identifier of the current machine room includes a manufacturer code, a region code, and a machine room code.
And S230, if not, sending the query request to a target machine room according to the machine room position identifier.
If the corresponding identifier of the current machine room is different from the position identifier of the machine room, it is indicated that the user data of the query request is not stored in the local machine room, and the user data of other cloud manufacturers needs to be remotely called.
Specifically, according to manufacturer codes, area codes and machine room codes in the machine room position identifiers, the machine room where the user data corresponding to the user identifier is located is determined, the machine room is determined to be a target machine room, and the query request received by the local machine room user center is sent to the remote target machine room.
On the basis of the above embodiment, after the query request is sent to the target machine room according to the machine room location identifier, the user center of the target machine room is configured to determine whether the user data corresponding to the query request is in the current machine room based on the machine room location identifier.
Exemplarily, fig. 3 is a schematic diagram of request distribution provided by an embodiment of the present invention, where a user center of a cloud manufacturer B receives an inquiry request sent by a user, extracts a user identifier in the inquiry request, further determines whether user data corresponding to the user identifier is stored in a current machine room according to the user identifier, and if so, determines the machine room as a target machine room, and performs data inquiry through the inquiry request; if not, the query request is sent to a user center of the cloud manufacturer A, and whether user data corresponding to the user identification is stored in the current machine room is judged. Specifically, the user identifier in the query request is extracted, whether user data corresponding to the user identifier is stored in the current machine room or not is judged according to the user identifier, if yes, the machine room is determined as a target machine room, and data query is performed through the query request. In the embodiment of the invention, the user identification is judged for the second time, so that the condition of request sending error can be avoided.
It should be noted that the user center does not know that the query request is forwarded, and therefore, the user center determines whether the user data corresponding to the user identifier is stored in the current machine room each time the user center receives the query request.
S240, sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification.
The embodiment of the invention provides a request distribution method, which comprises the steps of receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier; judging whether user data corresponding to the query request is in a current machine room or not based on the machine room position identification, if so, determining the current machine room as a target machine room, and if not, sending the query request to the target machine room according to the machine room position identification; and sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, the query request is sent to the user center server corresponding to the target machine room, and automatic distribution of the query request is achieved.
EXAMPLE III
Fig. 4 is a flowchart of a request distribution method provided in the third embodiment of the present invention, and the third embodiment of the present invention and various alternatives in the foregoing embodiments may be combined. In this embodiment of the present invention, optionally, before receiving the query request, the method further includes: receiving a registration request, wherein the registration request comprises user source information and regional information, and the user source information comprises manufacturer information and machine room information; and generating a user identifier based on the user source information and the area information.
As shown in fig. 4, the method of the embodiment of the present invention specifically includes the following steps:
s310, receiving a registration request, wherein the registration request comprises user source information and regional information, and the user source information comprises manufacturer information and machine room information.
The registration request is a request triggered when a user registers an account, and includes user source information and regional information, wherein the user source information includes manufacturer information and machine room information, the manufacturer information refers to information of a cloud manufacturer, the machine room information refers to machine room number information, and the regional information refers to a geographical position of a machine room used during registration and can be obtained through an IP address.
And S320, generating a user identifier based on the user source information and the area information.
Illustratively, the user source information and the regional information are coded, i.e. the manufacturer, the region and the machine room are represented in a digital coding mode. For example, the cloud manufacturer may be represented by numeral 10, the area by numeral 350303, and the machine room by 01, and then a random number with a preset number of digits is added, and the random number is sequentially arranged to form the user identifier.
On the basis of the above embodiment, after generating the user identifier based on the user source information and the area information, the method further includes: the method comprises the steps of obtaining user data to be stored, and sending the user data and corresponding user identification to a database server corresponding to the user identification, so that the database server stores the user data and the corresponding user identification in a correlation mode.
The user data to be stored may be user information filled in when the user registers, and the database server may be configured to store the user data and establish association with the user identifier.
In the embodiment of the invention, the database server stores the user data and the corresponding user identification in an associated manner, so that the data can be conveniently inquired subsequently through the user identification, and the data searching efficiency is improved.
S330, receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier.
S340, determining a target machine room corresponding to the query request based on the machine room position identifier.
And S350, sending the query request to a user center server corresponding to the target machine room so as to query the user data corresponding to the user identification.
The embodiment of the invention provides a request distribution method, which comprises the steps of receiving a registration request, wherein the registration request comprises user source information and regional information, the user source information comprises manufacturer information and machine room information, and generating a user identifier based on the user source information and the regional information; further, receiving a query request, wherein the query request includes a user identifier, and the user identifier includes a machine room location identifier; determining a target machine room corresponding to the query request based on the machine room position identifier; and sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, the query request is sent to the user center server corresponding to the target machine room, and automatic distribution of the query request is achieved.
Example four
Fig. 5 is a schematic structural diagram of a request distribution apparatus according to a fourth embodiment of the present invention, where the request distribution apparatus provided in this embodiment may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the request distribution method according to the fourth embodiment of the present invention. The device may specifically include: a request receiving module 410, a room determining module 420, and a request distributing module 430.
The request receiving module 410 is configured to receive a query request, where the query request includes a user identifier, and the user identifier includes a machine room location identifier; a machine room determining module 420, configured to determine, based on the machine room location identifier, a target machine room corresponding to the query request; and the request distribution module 430 is configured to send the query request to a user center server corresponding to the target machine room so as to query the user data corresponding to the user identifier.
The embodiment of the invention provides a request distribution device, which receives a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier; determining a target machine room corresponding to the query request based on the machine room position identifier; and sending the query request to a user center server corresponding to the target machine room so as to query user data corresponding to the user identification. According to the technical content, the target machine room is determined through the machine room position identification in the user identification, the query request is sent to the user center server corresponding to the target machine room, and automatic distribution of the query request is achieved.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the machine room location identifier includes a manufacturer code, an area code, and a machine room code.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the user identifier further includes a random number with a preset number of digits.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the machine room determining module 420 may be further configured to:
judging whether the user data corresponding to the query request is in the current machine room or not based on the machine room position identification, and if so, determining the current machine room as a target machine room;
and if not, sending the query request to a target machine room according to the machine room position identifier.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, after the query request is sent to the target machine room according to the machine room location identifier, the user center of the target machine room is configured to determine whether the user data corresponding to the query request is in the current machine room based on the machine room location identifier.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, before receiving the query request, the apparatus may further be configured to:
receiving a registration request, wherein the registration request comprises user source information and regional information, and the user source information comprises manufacturer information and machine room information;
and generating a user identifier based on the user source information and the area information.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the apparatus may further be configured to:
the method comprises the steps of obtaining user data to be stored, and sending the user data and corresponding user identification to a database server corresponding to the user identification, so that the database server stores the user data and the corresponding user identification in a correlation mode.
The request distribution device provided by the embodiment of the invention can execute the request distribution method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 36 having a set (at least one) of program modules 26 may be stored, for example, in system memory 28, such program modules 26 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 26 generally perform the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may 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) via the network adapter 20. As shown in FIG. 6, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a request distribution method provided by the present embodiment.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a request distribution method, including:
receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier;
determining a target machine room corresponding to the query request based on the machine room position identifier;
and sending the query request to a user center server corresponding to a target machine room so as to query user data corresponding to the user identification.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A request distribution method, comprising:
receiving a query request, wherein the query request comprises a user identifier, and the user identifier comprises a machine room position identifier;
determining a target machine room corresponding to the query request based on the machine room position identifier;
and sending the query request to a user center server corresponding to a target machine room so as to query user data corresponding to the user identification.
2. The method of claim 1, wherein the room location identifier comprises a manufacturer code, an area code, and a room code.
3. The method of claim 2, wherein the user identifier further comprises a preset number of random numbers.
4. The method of claim 1, wherein the determining a target machine room corresponding to the query request based on the machine room location identifier comprises:
judging whether the user data corresponding to the query request is in the current machine room or not based on the machine room position identification, and if so, determining the current machine room as a target machine room;
and if not, sending the query request to a target machine room according to the machine room position identifier.
5. The method according to claim 4, wherein after sending the query request to a target machine room according to the machine room location identifier, the user center of the target machine room is configured to determine whether user data corresponding to the query request is in a current machine room based on the machine room location identifier.
6. The method of claim 1, wherein prior to receiving the query request, the method further comprises:
receiving a registration request, wherein the registration request comprises user source information and regional information, and the user source information comprises manufacturer information and machine room information;
and generating a user identifier based on the user source information and the area information.
7. The method of claim 6, wherein after generating the user identifier based on the user source information and the region information, the method further comprises:
the method comprises the steps of obtaining user data to be stored, and sending the user data and corresponding user identification to a database server corresponding to the user identification, so that the database server stores the user data and the corresponding user identification in a correlation mode.
8. A request distribution apparatus, comprising:
the device comprises a request receiving module, a query processing module and a query processing module, wherein the request receiving module is used for receiving a query request, the query request comprises a user identifier, and the user identifier comprises a machine room position identifier;
the machine room determining module is used for determining a target machine room corresponding to the query request based on the machine room position identifier;
and the request distribution module is used for sending the query request to a user center server corresponding to the target machine room so as to query the user data corresponding to the user identification.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a request distribution method as recited in any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the request distribution method of any one of claims 1-7 when executed by a computer processor.
CN202111313030.4A 2021-11-08 2021-11-08 Request distribution method and device, storage medium and electronic equipment Pending CN113986995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111313030.4A CN113986995A (en) 2021-11-08 2021-11-08 Request distribution method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111313030.4A CN113986995A (en) 2021-11-08 2021-11-08 Request distribution method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113986995A true CN113986995A (en) 2022-01-28

Family

ID=79747085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111313030.4A Pending CN113986995A (en) 2021-11-08 2021-11-08 Request distribution method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113986995A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033577A (en) * 2022-08-15 2022-09-09 深圳市星卡软件技术开发有限公司 Storage method, query method and device for equipment order data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033577A (en) * 2022-08-15 2022-09-09 深圳市星卡软件技术开发有限公司 Storage method, query method and device for equipment order data

Similar Documents

Publication Publication Date Title
CN108737325B (en) Multi-tenant data isolation method, device and system
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN112738791B (en) User information correlation backfill method, device, equipment and medium based on 5G core network
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN114528044B (en) Interface calling method, device, equipment and medium
CN109819023B (en) Distributed transaction processing method and related product
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN112600928A (en) File transmission method and device, electronic equipment and medium
CN113766042A (en) Container address configuration method, system, device, equipment and medium
CN114385091A (en) Method and device for realizing network disk drive character, network disk and storage medium
CN107817962B (en) Remote control method, device, control server and storage medium
CN112528274A (en) Data processing method and device, electronic equipment and storage medium
CN114356521A (en) Task scheduling method and device, electronic equipment and storage medium
CN112835632A (en) Method and device for calling end capability and computer storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN111475230B (en) Application function configuration method and device and electronic equipment
US20190149601A1 (en) Device list synchronizing method and apparatus, device, and computer storage medium
CN112948138A (en) Method and device for processing message
CN113691937B (en) Method for determining position information, cloud mobile phone and terminal equipment
CN112866979B (en) User information association method, device, equipment and medium based on 5G service interface
CN112738153B (en) Gateway selection method, system, device, server and medium in service system
CN112818204B (en) Service processing method, device, equipment and storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN114356925A (en) Identification generation method and device, electronic equipment and storage medium
CN109327726B (en) Barrage message processing method and device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination