[go: up one dir, main page]

CN111914150A - Access request distribution method and related equipment - Google Patents

Access request distribution method and related equipment Download PDF

Info

Publication number
CN111914150A
CN111914150A CN202010754519.4A CN202010754519A CN111914150A CN 111914150 A CN111914150 A CN 111914150A CN 202010754519 A CN202010754519 A CN 202010754519A CN 111914150 A CN111914150 A CN 111914150A
Authority
CN
China
Prior art keywords
request
access request
access
identifier
target system
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
CN202010754519.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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010754519.4A priority Critical patent/CN111914150A/en
Priority to PCT/CN2020/122919 priority patent/WO2021114890A1/en
Publication of CN111914150A publication Critical patent/CN111914150A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The invention relates to the technical field of computers, and provides an access request distribution method and related equipment. The access request shunting method receives a first access request of a request end; judging the access type of a request end according to the first access request; when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request; returning the COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier; receiving a second access request carrying a COOKIE identifier of a request terminal; and shunting the second access request to the target system according to the COOKIE identifier in the second access request. The method and the device shunt the access requests, balance the access pressure of the system to be accessed and improve the stability of the system to be accessed.

Description

Access request distribution method and related equipment
Technical Field
The invention relates to the technical field of computers, in particular to an access request distribution method, an access request distribution device, computer equipment and a computer readable storage medium.
Background
Currently, a system to be accessed that provides an access service includes a plurality of systems. The data volume of the access request of the system to be accessed is too large, the pressure of the system to be accessed is increased, the problems of interruption, no response, response overtime, overlong response time and the like easily occur to the server, and the stability of the system to be accessed is reduced.
How to improve the stability of the system to be accessed becomes a problem to be solved.
Disclosure of Invention
In view of the foregoing, there is a need for an access request offloading method, an access request offloading device, a computer device, and a computer-readable storage medium, which can offload an access request, balance access pressure of a system to be accessed including multiple systems, and improve stability of the system to be accessed.
A first aspect of the present application provides an access request offloading method, where the access request offloading method includes:
receiving a first access request of a request end;
judging the access type of the request terminal according to the first access request;
when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request;
returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier;
receiving a second access request carrying the COOKIE identifier of the request terminal;
and shunting the second access request to the target system according to the COOKIE identifier in the second access request.
In another possible implementation manner, the determining a target system from a plurality of systems according to the service identifier of the first access request includes:
acquiring a service routing table, wherein the service routing table comprises service identification and a system which are stored in an associated manner;
inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier of the first access request as a key word;
and when the system associated with the service identifier of the first access request is inquired from the service routing table by taking the service identifier of the first access request as a key, determining the inquired system as a target system.
In another possible implementation manner, the access request offloading method further includes:
and when the system associated with the service identifier of the first access request is not inquired from the service routing table by taking the service identifier of the first access request as a key word, returning prompt information to the request end to remind that the access is wrong.
In another possible implementation manner, the access request offloading method further includes:
and when the access type of the request terminal is an interface call request, shunting the first access request to a specified system according to the service identifier of the first access request.
In another possible implementation manner, the returning, by the target system, the COOKIE identifier to the request end includes:
and forwarding the first access request to the target system, enabling the target system to generate the COOKIE identification, and responding to the first access request to return the COOKIE to the request terminal.
In another possible implementation manner, the offloading the second access request to the target system according to the COOKIE identifier in the second access request includes:
judging whether the target data is stored locally in the request end or not according to the target data description information in the second access request;
when the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end;
and when the target data is not stored in the request end, the second request is sent to the target system, and the target data is sent to the request end through the target system.
In another possible implementation manner, the access request offloading method further includes:
acquiring a first time point for receiving the first access request;
acquiring a second time point for receiving the second access request;
calculating a time difference between the first time point and the second time point;
and when the time difference exceeds a preset time difference, sending a prompt message of requesting overtime to the request terminal to prompt the request terminal to acquire the COOKIE identifier again.
A second aspect of the present application provides an access request splitting apparatus, including:
the first receiving module is used for receiving a first access request of a request end;
the judging module is used for judging the access type of the request terminal according to the first access request;
the determining module is used for determining a target system from a plurality of systems according to the service identifier of the first access request when the access type of the request terminal is a webpage request;
a returning module, configured to return a COOKIE identifier to the request end through the target system, so that the request end stores the COOKIE identifier;
a second receiving module, configured to receive a second access request carrying the COOKIE identifier from the request end;
and the shunting module is used for shunting the second access request to the target system according to the COOKIE identifier in the second access request.
A third aspect of the application provides a computer device comprising a processor for implementing the access request forking method when executing computer-readable instructions stored in a memory.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor, implement the access request forking method.
The invention receives a first access request of a request end; judging the access type of the request terminal according to the first access request; when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request; returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier; receiving a second access request carrying the COOKIE identifier of the request terminal; and shunting the second access request to the target system according to the COOKIE identifier in the second access request. The method and the system have the advantages that different types of access requests are distributed, the access requests are distributed to the target system, access pressure of the system to be accessed including the systems is balanced, and stability of the system to be accessed is improved.
Drawings
Fig. 1 is a flowchart of an access request offloading method provided in an embodiment of the present invention.
Fig. 2 is a structural diagram of an access request offloading device according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the access request distribution method of the present invention is applied to one or more computer devices. The computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
Example one
Fig. 1 is a flowchart of an access request offloading method according to an embodiment of the present invention. The access request shunting method is applied to computer equipment and is used for shunting the access requests, balancing the access pressure of a system to be accessed comprising a plurality of systems and improving the stability of the system to be accessed.
As shown in fig. 1, the access request offloading method includes:
101, receiving a first access request of a request end.
The requesting terminal may comprise a mobile terminal or a PC terminal. A first access request of a mobile terminal or a first access request of a PC terminal may be received.
The first access request may include a type identifier, a service identifier, description information of target data that needs to be requested, and the like.
In a specific embodiment, when the request end needs to provide services for a plurality of systems to be accessed or needs to request target data, the request end sends the first access request to one of the systems through a offload server (computer device). Receiving the first access request of the requesting end based on a TCP (Transmission Control Protocol) or a UDP (User Datagram Protocol).
102, determining the access type of the request terminal according to the first access request.
When the first access request is received, a type identifier may be extracted from the first access request, and the access type of the request end is determined according to the type identifier of the first access request.
The access type of the request end comprises a webpage request, an interface calling request and the like.
For example, when the type identifier of the first access request is "1", it is determined that the access type of the request end is an interface call request; and when the type identifier of the first access request is '2', determining that the access type of the request end is a webpage request. The identification of the type of the first access request may also comprise an identification of other characters.
103, when the access type of the request terminal is a web page request, determining a target system from a plurality of systems according to the service identifier of the first access request.
In a specific embodiment, the determining a target system from the plurality of systems according to the service identifier of the first access request includes:
acquiring a service routing table, wherein the service routing table comprises service identification and a system which are stored in an associated manner;
inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier of the first access request as a key word;
and when the system associated with the service identifier of the first access request is inquired from the service routing table by taking the service identifier of the first access request as a key, determining the inquired system as a target system.
For example, the service routing table association stores mapping relationships between service identifiers and systems, that is, "yh ═ prd1 and cx ═ prd 2", where "yh" and "cx" are service identifiers, and "═ is a one-to-one mapping relationship, and" prd1 "and" prd2 "are systems (including system routes). The system may include a serving system, a called system, and the like. Https:// xxx. pic. com. cn/login? Extracting a service identifier of the first access request as "yh" from the biz-yh according to the keyword "biz", and inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier "yh" of the first access request as the keyword as "prd 1". When the system associated with the service identifier of the first access request is searched in the service routing table by taking the service identifier of the first access request as a key to be 'prd 1', the 'prd 1' is determined as the target system.
And 104, returning the COOKIE identifier to the request terminal through the target system, so that the request terminal stores the COOKIE identifier.
In a specific embodiment, the returning, by the target system, a COOKIE (data stored on the user local terminal) identifier to the request end includes:
and forwarding the first access request to the target system, enabling the target system to generate the COOKIE identification, and responding to the first access request to return the COOKIE to the request terminal.
When the first access request is forwarded to the target system, the target system intercepts the first access request through a front interceptor of the target system, generates the COOKIE information when the access type in the first access request is identified as a webpage request, and writes the COOKIE information into response information returned to the request terminal.
In another embodiment, the access request offloading method further includes:
and when the system associated with the service identifier of the first access request is not inquired from the service routing table by taking the service identifier of the first access request as a key word, returning prompt information to the request end to remind that the access is wrong.
As in the above example, when the service identifier of the first access request is "hh", the service identifier "hh" of the first access request is used as a key to query the system associated with the service identifier of the first access request from the service routing table, and a prompt message (e.g. 404) is returned to the requesting end to remind the requesting end of an access error.
And 105, receiving a second access request carrying the COOKIE identifier of the request terminal.
In a specific embodiment, the first access request may be a same-domain cascade request of the first access request, and the second access request carries the COOKIE identifier.
And when the request end receives response information returned by the target system in response to the first access request, writing the COOKIE identifier in the response information into the request end.
106, shunting the second access request to the target system according to the COOKIE identifier in the second access request.
In a specific embodiment, the offloading the second access request to the target system according to the COOKIE identifier in the second access request includes:
judging whether the target data is stored locally in the request end or not according to the target data description information in the second access request;
when the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end;
and when the target data is not stored in the request end, the second request is sent to the target system, and the target data is sent to the request end through the target system.
When the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end, and the request end does not need to acquire the target data from the target system.
In another embodiment, the access request offloading method further includes:
and when the access type of the request terminal is an interface call request, shunting the first access request to a specified system according to the service identifier of the first access request.
And shunting the access request of the request terminal to different systems according to the access type of the request terminal.
In another embodiment, the access request offloading method further includes:
acquiring a first time point for receiving the first access request;
acquiring a second time point for receiving the second access request;
calculating a time difference between the first time point and the second time point;
and when the time difference exceeds a preset time difference, sending a prompt message of requesting overtime to the request terminal to prompt the request terminal to acquire the COOKIE identifier again.
Receiving a first access request of a request end by the access request shunting method of the first embodiment; judging the access type of the request terminal according to the first access request; when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request; returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier; receiving a second access request carrying the COOKIE identifier of the request terminal; and shunting the second access request to the target system according to the COOKIE identifier in the second access request. The method and the system realize the appeal that the service monopolizes one system and meet the requirements of the request end on the safety and stability of the system; different request flows are isolated to different systems, and when the request quantity on one system suddenly increases or the service fails, other systems are ensured not to be influenced. The embodiment shunts different types of access requests, shunts the access requests to the target system, balances the access pressure of the system to be accessed including a plurality of systems, and improves the stability of the system to be accessed.
Example two
Fig. 2 is a structural diagram of an access request offloading device according to a second embodiment of the present invention. The access request shunting device 20 is applied to a computer device. The access request shunting device 20 is used for classifying the objects to be monitored according to the indexes, so that the accuracy of the classification result is improved.
As shown in fig. 2, the access request offloading device 20 may include a first receiving module 201, a determining module 202, a determining module 203, a returning module 204, a second receiving module 205, and an offloading module 206.
The first receiving module 201 is configured to receive a first access request of a requesting end.
The requesting terminal may comprise a mobile terminal or a PC terminal. A first access request of a mobile terminal or a first access request of a PC terminal may be received.
The first access request may include a type identifier, a service identifier, description information of target data that needs to be requested, and the like.
In a specific embodiment, when the request end needs to provide services for a plurality of systems to be accessed or needs to request target data, the request end sends the first access request to one of the systems through a offload server (computer device). Receiving the first access request of the requesting end based on a TCP (Transmission Control Protocol) or a UDP (User Datagram Protocol).
A determining module 202, configured to determine an access type of the request end according to the first access request.
When the first access request is received, a type identifier may be extracted from the first access request, and the access type of the request end is determined according to the type identifier of the first access request.
The access type of the request end comprises a webpage request, an interface calling request and the like.
For example, when the type identifier of the first access request is "1", it is determined that the access type of the request end is an interface call request; and when the type identifier of the first access request is '2', determining that the access type of the request end is a webpage request. The identification of the type of the first access request may also comprise an identification of other characters.
A determining module 203, configured to determine, when the access type of the requesting end is a web page request, a target system from multiple systems according to the service identifier of the first access request.
In a specific embodiment, the determining a target system from the plurality of systems according to the service identifier of the first access request includes:
acquiring a service routing table, wherein the service routing table comprises service identification and a system which are stored in an associated manner;
inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier of the first access request as a key word;
and when the system associated with the service identifier of the first access request is inquired from the service routing table by taking the service identifier of the first access request as a key, determining the inquired system as a target system.
For example, the service routing table association stores mapping relationships between service identifiers and systems, that is, "yh ═ prd1 and cx ═ prd 2", where "yh" and "cx" are service identifiers, and "═ is a one-to-one mapping relationship, and" prd1 "and" prd2 "are systems (including system routes). The system may include a serving system, a called system, and the like. Https:// xxx. pic. com. cn/login? Extracting a service identifier of the first access request as "yh" from the biz-yh according to the keyword "biz", and inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier "yh" of the first access request as the keyword as "prd 1". When the system associated with the service identifier of the first access request is searched in the service routing table by taking the service identifier of the first access request as a key to be 'prd 1', the 'prd 1' is determined as the target system.
A returning module 204, configured to return the COOKIE identifier to the request end through the target system, so that the request end stores the COOKIE identifier.
In a specific embodiment, the returning, by the target system, a COOKIE (data stored on the user local terminal) identifier to the request end includes:
and forwarding the first access request to the target system, enabling the target system to generate the COOKIE identification, and responding to the first access request to return the COOKIE to the request terminal.
When the first access request is forwarded to the target system, the target system intercepts the first access request through a front interceptor of the target system, generates the COOKIE information when the access type in the first access request is identified as a webpage request, and writes the COOKIE information into response information returned to the request terminal.
In another embodiment, the return module is further configured to return a prompt message to the requesting end to remind that the access is wrong when the system associated with the service identifier of the first access request is not queried from the service routing table with the service identifier of the first access request as a key.
As in the above example, when the service identifier of the first access request is "hh", the service identifier "hh" of the first access request is used as a key to query the system associated with the service identifier of the first access request from the service routing table, and a prompt message (e.g. 404) is returned to the requesting end to remind the requesting end of an access error.
A second receiving module 205, configured to receive a second access request carrying the COOKIE identifier from the request end.
In a specific embodiment, the first access request may be a same-domain cascade request of the first access request, and the second access request carries the COOKIE identifier.
And when the request end receives response information returned by the target system in response to the first access request, writing the COOKIE identifier in the response information into the request end.
And an offloading module 206, configured to offload the second access request to the target system according to the COOKIE identifier in the second access request.
In a specific embodiment, the offloading the second access request to the target system according to the COOKIE identifier in the second access request includes:
judging whether the target data is stored locally in the request end or not according to the target data description information in the second access request;
when the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end;
and when the target data is not stored in the request end, the second request is sent to the target system, and the target data is sent to the request end through the target system.
When the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end, and the request end does not need to acquire the target data from the target system.
In another embodiment, the offloading module is further configured to offload, when the access type of the request end is an interface call request, the first access request to a specified system according to the service identifier of the first access request.
And shunting the access request of the request terminal to different systems according to the access type of the request terminal.
In another embodiment, the access request offloading device further includes a reminding module, configured to obtain a first time point for receiving the first access request;
acquiring a second time point for receiving the second access request;
calculating a time difference between the first time point and the second time point;
and when the time difference exceeds a preset time difference, sending a prompt message of requesting overtime to the request terminal to prompt the request terminal to acquire the COOKIE identifier again.
The access request offloading device 20 of the second embodiment updates the first index to the preset index set to update the index for restricting access request offloading, so as to improve the accuracy of classifying the object to be supervised. The embodiment classifies the objects to be supervised according to the weights and the scores of the second indexes of the objects to be supervised, so that the accuracy of classification results is improved.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions, when executed by a processor, implement the steps in the foregoing access request offloading method embodiment, for example, the steps 101 and 106 shown in fig. 1:
101, receiving a first access request of a request end;
102, judging the access type of the request terminal according to the first access request;
103, when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request;
104, returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier;
105, receiving a second access request carrying the COOKIE identifier from the request end;
106, shunting the second access request to the target system according to the COOKIE identifier in the second access request.
Alternatively, the computer readable instructions, when executed by the processor, implement the functions of the modules in the above device embodiments, for example, the module 201 and 206 in fig. 2:
a first receiving module 201, configured to receive a first access request from a requesting end;
a determining module 202, configured to determine an access type of the request end according to the first access request;
a determining module 203, configured to determine, when the access type of the requesting end is a web page request, a target system from multiple systems according to the service identifier of the first access request;
a returning module 204, configured to return a COOKIE identifier to the request end through the target system, so that the request end stores the COOKIE identifier;
a second receiving module 205, configured to receive a second access request carrying the COOKIE identifier from the request end;
and an offloading module 206, configured to offload the second access request to the target system according to the COOKIE identifier in the second access request.
Example four
Fig. 3 is a schematic diagram of a computer device according to a third embodiment of the present invention. The computer device 30 includes a memory 301, a processor 302, and computer readable instructions 303, such as an access request forking program, stored in the memory 301 and executable on the processor 302. The processor 302, when executing the computer readable instructions 303, implements the steps in the above-described access request distribution method embodiments, such as 101-106 shown in fig. 1:
101, receiving a first access request of a request end;
102, judging the access type of the request terminal according to the first access request;
103, when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request;
104, returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier;
105, receiving a second access request carrying the COOKIE identifier from the request end;
106, shunting the second access request to the target system according to the COOKIE identifier in the second access request.
Alternatively, the computer readable instructions, when executed by the processor, implement the functions of the modules in the above device embodiments, for example, the module 201 and 206 in fig. 2:
a first receiving module 201, configured to receive a first access request from a requesting end;
a determining module 202, configured to determine an access type of the request end according to the first access request;
a determining module 203, configured to determine, when the access type of the requesting end is a web page request, a target system from multiple systems according to the service identifier of the first access request;
a returning module 204, configured to return a COOKIE identifier to the request end through the target system, so that the request end stores the COOKIE identifier;
a second receiving module 205, configured to receive a second access request carrying the COOKIE identifier from the request end;
and an offloading module 206, configured to offload the second access request to the target system according to the COOKIE identifier in the second access request.
Illustratively, the computer readable instructions 303 may be partitioned into one or more modules that are stored in the memory 301 and executed by the processor 302 to perform the present method. The one or more modules may be a series of computer-readable instructions capable of performing certain functions and describing the execution of the computer-readable instructions 303 in the computer device 30. For example, the computer readable instructions 303 may be divided into the first receiving module 201, the determining module 202, the determining module 203, the returning module 204, the second receiving module 205, and the splitting module 206 in fig. 2, where the specific functions of the modules are described in embodiment two.
Those skilled in the art will appreciate that the schematic diagram 3 is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30, and may include more or less components than those shown, or combine certain components, or different components, for example, the computer device 30 may also include input and output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
The memory 301 may be used to store the computer-readable instructions 303, and the processor 302 may implement the various functions of the computer device 30 by executing or executing the computer-readable instructions or modules stored in the memory 301 and invoking data stored in the memory 301. The memory 301 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer device 30, and the like. In addition, the Memory 301 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage devices.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer readable instruction code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, Read Only Memory (ROM), Random Access Memory (RAM), etc.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the access request offloading method according to various embodiments of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned. Furthermore, it is to be understood that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. A plurality of modules or means recited in the system claims may also be implemented by one module or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An access request offloading method, characterized in that the access request offloading method includes:
receiving a first access request of a request end;
judging the access type of the request terminal according to the first access request;
when the access type of the request terminal is a webpage request, determining a target system from a plurality of systems according to the service identifier of the first access request;
returning a COOKIE identifier to the request terminal through the target system, and enabling the request terminal to store the COOKIE identifier;
receiving a second access request carrying the COOKIE identifier of the request terminal;
and shunting the second access request to the target system according to the COOKIE identifier in the second access request.
2. The method for offloading access requests according to claim 1, wherein the determining a target system from a plurality of systems according to the service identifier of the first access request includes:
acquiring a service routing table, wherein the service routing table comprises service identification and a system which are stored in an associated manner;
inquiring a system associated with the service identifier of the first access request from the service routing table by taking the service identifier of the first access request as a key word;
and when the system associated with the service identifier of the first access request is inquired from the service routing table by taking the service identifier of the first access request as a key, determining the inquired system as a target system.
3. The access request splitting method according to claim 2, wherein the access request splitting method further comprises:
and when the system associated with the service identifier of the first access request is not inquired from the service routing table by taking the service identifier of the first access request as a key word, returning prompt information to the request end to remind that the access is wrong.
4. The access request splitting method according to claim 1, wherein the access request splitting method further comprises:
and when the access type of the request terminal is an interface call request, shunting the first access request to a specified system according to the service identifier of the first access request.
5. The method of claim 1, wherein the returning, by the target system, a COOKIE identification to the requesting end comprises:
and forwarding the first access request to the target system, enabling the target system to generate the COOKIE identification, and responding to the first access request to return the COOKIE to the request terminal.
6. The method of claim 1, wherein offloading the second access request to the target system according to a COOKIE identifier in the second access request comprises:
judging whether the target data is stored locally in the request end or not according to the target data description information in the second access request;
when the target data is stored in the request end, returning a local reading identifier to the request end, so that the request end reads the target data from the request end;
and when the target data is not stored in the request end, the second request is sent to the target system, and the target data is sent to the request end through the target system.
7. The access request splitting method according to claim 1, wherein the access request splitting method further comprises:
acquiring a first time point for receiving the first access request;
acquiring a second time point for receiving the second access request;
calculating a time difference between the first time point and the second time point;
and when the time difference exceeds a preset time difference, sending a prompt message of requesting overtime to the request terminal to prompt the request terminal to acquire the COOKIE identifier again.
8. An access request splitting apparatus, characterized in that the access request splitting apparatus comprises:
the first receiving module is used for receiving a first access request of a request end;
the judging module is used for judging the access type of the request terminal according to the first access request;
the determining module is used for determining a target system from a plurality of systems according to the service identifier of the first access request when the access type of the request terminal is a webpage request;
a returning module, configured to return a COOKIE identifier to the request end through the target system, so that the request end stores the COOKIE identifier;
a second receiving module, configured to receive a second access request carrying the COOKIE identifier from the request end;
and the shunting module is used for shunting the second access request to the target system according to the COOKIE identifier in the second access request.
9. A computer device comprising a processor for executing computer readable instructions stored in a memory to implement the access request offloading method of any of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the access request forking method according to any one of claims 1 to 7.
CN202010754519.4A 2020-07-30 2020-07-30 Access request distribution method and related equipment Pending CN111914150A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010754519.4A CN111914150A (en) 2020-07-30 2020-07-30 Access request distribution method and related equipment
PCT/CN2020/122919 WO2021114890A1 (en) 2020-07-30 2020-10-22 Access request distribution method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010754519.4A CN111914150A (en) 2020-07-30 2020-07-30 Access request distribution method and related equipment

Publications (1)

Publication Number Publication Date
CN111914150A true CN111914150A (en) 2020-11-10

Family

ID=73286471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010754519.4A Pending CN111914150A (en) 2020-07-30 2020-07-30 Access request distribution method and related equipment

Country Status (2)

Country Link
CN (1) CN111914150A (en)
WO (1) WO2021114890A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760238A (en) * 2020-12-28 2022-07-15 浙江省公众信息产业有限公司 Internet of things information processing method and system for peer-to-peer network and Internet of things equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056333A (en) * 2009-11-05 2011-05-11 中国移动通信集团河南有限公司 WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server
CN106453452A (en) * 2015-08-07 2017-02-22 百度在线网络技术(北京)有限公司 Data access request processing method and server used for processing data access request
CN106998370A (en) * 2017-06-15 2017-08-01 北京微影时代科技有限公司 Access control method, device and system
CN108881430A (en) * 2018-06-14 2018-11-23 平安科技(深圳)有限公司 Session keeping method, device, computer equipment and storage medium
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9860339B2 (en) * 2015-06-23 2018-01-02 At&T Intellectual Property I, L.P. Determining a custom content delivery network via an intelligent software-defined network
CN108763396B (en) * 2018-05-22 2024-09-17 未鲲(上海)科技服务有限公司 Access request processing method, device, computer equipment and storage medium
CN111274516B (en) * 2018-12-04 2024-04-05 阿里巴巴新加坡控股有限公司 Page display method, page configuration method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056333A (en) * 2009-11-05 2011-05-11 中国移动通信集团河南有限公司 WAP (wireless application protocol) gateway, service processing method thereof and WAP proxy server
CN106453452A (en) * 2015-08-07 2017-02-22 百度在线网络技术(北京)有限公司 Data access request processing method and server used for processing data access request
CN106998370A (en) * 2017-06-15 2017-08-01 北京微影时代科技有限公司 Access control method, device and system
CN108881430A (en) * 2018-06-14 2018-11-23 平安科技(深圳)有限公司 Session keeping method, device, computer equipment and storage medium
CN111314459A (en) * 2020-02-13 2020-06-19 北京奇艺世纪科技有限公司 Service request method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760238A (en) * 2020-12-28 2022-07-15 浙江省公众信息产业有限公司 Internet of things information processing method and system for peer-to-peer network and Internet of things equipment
CN114760238B (en) * 2020-12-28 2024-08-23 浙江省公众信息产业有限公司 Internet of things information processing method and system for peer-to-peer network and Internet of things equipment

Also Published As

Publication number Publication date
WO2021114890A1 (en) 2021-06-17

Similar Documents

Publication Publication Date Title
AU2019332682B2 (en) Cost optimized dynamic resource allocation in a cloud infrastructure
WO2021217863A1 (en) Order identifier generation method and apparatus, server, and storage medium
CN111897818B (en) Data storage method, device, electronic equipment and storage medium
EP3418911A1 (en) Data caching method and apparatus
WO2011047474A1 (en) Systems and methods for social graph data analytics to determine connectivity within a community
CN106878275B (en) Identity verification method and device and server
WO2022041889A1 (en) Fund routing method and apparatus, electronic device, and storage medium
CN106095842A (en) Online course searching method and device
CN109684093A (en) Data processing method and system
CN110019444B (en) Operation request processing method, device, equipment and system
CN114529209B (en) User allocation method, device, equipment and storage medium
CN111953609A (en) Data packet processing method based on OVS and related equipment
CN111914150A (en) Access request distribution method and related equipment
US9965812B2 (en) Generating a supplemental description of an entity
US9201960B2 (en) Virtual agent response to customer inquiries
KR20150136338A (en) Method of creating multi tenancy history, server performing the same and storage media storing the same
CN113012797B (en) Physical examination department recommendation method, device, equipment and storage medium
CN117171185B (en) Logistics data changing method and related equipment based on industrial identification
CN111897728B (en) Interface debugging method and related equipment
KR101792187B1 (en) System and method for question answering service using statistical method
CN112395575A (en) Authority management method, device, equipment and storage medium
CN109828870B (en) Interface test environment management method and device, electronic equipment and storage medium
CN116628005A (en) Structured query statement processing method, device, equipment and storage medium
CN112256713B (en) Method, device, equipment and readable storage medium for dynamically updating renewal duration
CN112950154B (en) Flow information matching method, device, equipment 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