CN115766872A - Request processing method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN115766872A
CN115766872A CN202211426195.7A CN202211426195A CN115766872A CN 115766872 A CN115766872 A CN 115766872A CN 202211426195 A CN202211426195 A CN 202211426195A CN 115766872 A CN115766872 A CN 115766872A
Authority
CN
China
Prior art keywords
service
identification information
client
request
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211426195.7A
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 E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202211426195.7A priority Critical patent/CN115766872A/en
Publication of CN115766872A publication Critical patent/CN115766872A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a request processing method, a request processing device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: the method is applied to the routing proxy server and is characterized by comprising the following steps: receiving a service acquisition request sent by a client; the service acquisition request carries service identification information; sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; and forwarding the request feedback information to the target client. The invention solves the technical problem of low project testing efficiency in the related technology.

Description

Request processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a request processing method and apparatus, a storage medium, and an electronic device.
Background
In the process of program development, an internet company needs to access one or more third-party application services, and before a project is online, functions contained in a program need to be tested; for example, when there are a plurality of parallel projects in the service requester a company, that is, there are a plurality of sets of test environments, and there is only one set of test environment in the B company providing the third party service, the company B needs to frequently switch the environment configuration. And the received request or transaction link cannot be effectively determined to return to the target test environment in the multiple sets of test environments of company a, which easily causes iteration blocking of the service request of company a, thus causing the efficiency of project testing to be low.
Disclosure of Invention
The embodiment of the invention provides a request processing method, a request processing device, a storage medium and electronic equipment, and aims to at least solve the technical problem of low project testing efficiency in the related art.
According to an aspect of the embodiments of the present invention, there is provided a request processing method, applied to a routing proxy server, including: receiving a service acquisition request sent by a client; the service acquisition request carries service identification information; sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; and forwarding the request feedback information to the target client.
According to another aspect of the embodiments of the present invention, there is also provided a request processing method applied to a server, including: receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information; storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests; generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule; and forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
According to another aspect of the embodiments of the present invention, there is also provided a request processing apparatus, applied to a routing proxy server, including: the receiving unit is used for receiving a service acquisition request sent by a client; the service acquisition request carries service identification information; the sending unit is used for sending the service acquisition request to a server and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; the first determining unit is used for determining a target client according to the corresponding relation between the service identification information and the client set; and the forwarding unit is used for forwarding the request feedback information to the target client.
According to another aspect of the embodiments of the present invention, there is also provided a request processing apparatus, applied to a server, including: a receiving unit, which receives a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information; the storage unit is used for storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests; a generating unit, configured to generate corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service provision rule; and the forwarding unit is used for forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the request processing method through the computer program.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above request processing method when running.
In the embodiment of the invention, a service acquisition request sent by a receiving client is adopted; the service acquisition request carries service identification information; sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; in the method, the target client is determined according to the corresponding relation between the service identification information and the client set, the service requests of a plurality of sets of test environments of the client can be met without changing code service logic and an integral link, the operation is simple and convenient, manpower and material resources are saved, the project test efficiency is effectively improved, and the technical problem of lower project test efficiency in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative request processing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an application environment of an alternative request processing method according to an embodiment of the invention;
FIG. 3 is a flow diagram illustrating an alternative request processing method according to an embodiment of the invention;
FIG. 4 is a flow diagram illustrating an alternative request processing method according to an embodiment of the invention;
FIG. 5 is a block diagram illustrating an alternative request processing method according to the related art;
FIG. 6 is a block diagram illustrating an alternative request processing method according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating an alternative request processing method according to an embodiment of the present invention;
FIG. 8 is a block diagram of an alternative request processing device according to an embodiment of the invention;
FIG. 9 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
FIG. 10 is a schematic diagram of an alternative request processing device according to an embodiment of the invention;
fig. 11 is a schematic structural diagram of another alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a request processing method is provided, and optionally, as an optional implementation manner, the request processing method may be applied, but not limited, to an application environment as shown in fig. 1. The application environment comprises: a terminal device 102 for man-machine interaction with a user, a routing proxy server 104 and a server 106. The user 108 and the terminal device 102 can perform human-computer interaction, and a request processing application program runs in the terminal device 102. The terminal device 102 includes a human-machine interaction screen 1022, a processor 1024, and a memory 1026. The man-machine interaction screen 1022 is used for displaying a target source code file under the current project; the processor 1024 is configured to obtain a service obtaining request under the current project. The storage 1026 is used for storing service acquisition requests under the current project.
In addition, the routing proxy server 104 includes a database for storing service acquisition requests sent by clients and a processing engine. The processing engine is used for receiving a service acquisition request sent by a client; the service acquisition request carries service identification information; sending the service acquisition request to a server 106, and receiving request feedback information fed back by the server 106 aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; forwarding the request feedback information to the target client; and displaying the request feedback information at the client of the terminal equipment 102.
In addition, the server 106 includes a database 1062 and a processing engine 1064, and the database 1062 is used for storing the service acquisition request. The processing engine 1064 is configured to receive a service acquisition request sent by the routing proxy server; the service acquisition request carries service identification information; storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests; generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule; and forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
In one or more embodiments, the request processing method described above in the present application may be applied to the application environment shown in fig. 2. As shown in fig. 2, a human-computer interaction may be performed between a user 202 and a user device 204. The user equipment 204 includes a memory 206 and a processor 208. The user device 204 in this embodiment may refer to and execute the operation executed by the terminal device 102, and obtain the request processing result of the current item.
Optionally, the terminal device 102 and the user device 204 include, but are not limited to, a mobile phone, a set-top box, a television, a tablet computer, a notebook computer, a PC, a vehicle-mounted electronic device, a wearable device, and the like, and the routing proxy server 104 may include, but is not limited to, a wireless network or a wired network. Wherein, this wireless network includes: WIFI and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The server 106 may include, but is not limited to, any hardware device capable of performing computations. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.
In the related art, as shown in fig. 5, with the development of business, direct network service systems of different companies cooperate more and more, and when a plurality of projects are parallel in a company a as a service requester, that is, when there are a plurality of sets of test environments, and a company B providing third-party services has only one set of test environment, the company B needs to frequently switch the environment configuration. And the failure to effectively determine the target test environment in the multiple sets of test environments returned to company a in the received request or transaction link easily causes iteration blocking of the service request of company a, thus resulting in low project test efficiency,
in order to solve the above technical problem, as an optional implementation manner, as shown in fig. 3, an embodiment of the present invention provides a request processing method, including the following steps:
s302, receiving a service acquisition request sent by a client; the service acquisition request carries service identification information.
Specifically, as shown in fig. 6, for example, the company a testing environment 1 (one of the clients) and the company a testing environment 2 (another client) respectively send different service acquisition requests to the routing proxy server, where the service identification information includes, but is not limited to, the service identification information is "request 1: service application number =123456 requests proxy interface: teststable: www.xxx.com/request1", and the like.
S304, sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information.
Specifically, for example, the routing proxy server sends the service acquisition request with the service identification information to the internal server of company B through the company B gateway service DMZ zone. As shown in fig. 7, the request feedback information fed back by the server is then received through the company B gateway service DMZ zone.
S306, determining the target client according to the corresponding relation between the service identification information and the client set.
Specifically, the method includes, but is not limited to, the routing proxy server determining a target client to be forwarded in a correspondence between the service identification information and the client set, that is, a mapping relationship between the service application number and the request address is searched.
S308, the request feedback information is forwarded to the target client.
In the embodiment of the invention, a service acquisition request sent by a receiving client is adopted; the service acquisition request carries service identification information; sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information comprises the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; in the method, the target client is determined according to the corresponding relation between the service identification information and the client set, the service requests of a plurality of sets of test environments of the client can be met without changing code service logic and an integral link, the operation is simple and convenient, manpower and material resources are saved, the project test efficiency is effectively improved, and the technical problem of lower project test efficiency in the related technology is solved.
In one or more embodiments, before sending the service acquisition request to the server, the method includes:
and establishing a corresponding relation between the current client and the service identification information according to the service identification information in the service acquisition request sent by the current client.
In the embodiment of the invention, when the routing proxy server receives the service acquisition request every time, the corresponding relation between the current client and the service identification information is established according to the service acquisition request and the service identification information carried by the service acquisition request. Therefore, the server requesting access can be accurately identified when the server faces a plurality of service acquisition requests, iteration blockage of the requests is avoided, request response time is shortened, and user experience is improved.
In one or more embodiments, the establishing a correspondence between a current client and service identification information according to the service identification information in a service acquisition request sent by the current client includes:
establishing an address translation mapping table according to service identification information in a service acquisition request sent by a current client; the address translation mapping table includes a corresponding relationship between the current client and the service identification information.
Specifically, the routing proxy server can accurately establish a direct association between the client and the service request by establishing an address translation mapping table, and then can accurately forward the request feedback information of the server.
In one or more embodiments, the creating an address translation mapping table according to the service identification information in the service acquisition request sent by the current client includes:
and establishing the address translation mapping table corresponding to the network address, the port number, the request interface and the service serial number of the current client.
In an embodiment of the present invention, the address translation mapping table includes, but is not limited to, a table as shown in table 1, for example.
TABLE 1
Service flow number Request interface Company A Environment IP Company A Port
123456 request1 192.168.1.1 8043
678901 request2 192.168.1.2 8668
In one or more embodiments, the determining a target client according to a correspondence between the service identification information and the client set includes:
and inquiring the address conversion mapping table, and determining the target client side for the client side corresponding to the current service identification information.
Specifically, for example, the service identification information in the current service identification information includes "123456" routing proxy server to determine the target client from the client with the IP address of 192.168.1.1 and the port of 8043.
In one or more embodiments, the determining a target client according to a correspondence between the service identification information and the client set further includes:
and according to the corresponding relation between the service identification information and the client side set, when the client side matched with the service identification information is not inquired, all the client sides in the client side set are used as target client sides.
Specifically, the service identification information in the current service identification information includes "123666", and when the routing proxy server does not inquire a client matched with the service identification information, all clients of company a are determined as target clients. That is, the routing proxy server sends the request feedback information to all registered clients of the requesting party in a group, so that the clients sending the service request information can be effectively ensured to be capable of effectively acquiring the request feedback information.
As an optional implementation manner, as shown in fig. 4, an embodiment of the present invention provides a request processing method, which is applied to a server, and includes the following steps:
s402, receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information.
Specifically, for example, the server here is an internal server of company B, and this includes, but is not limited to, the routing proxy server sending the service acquisition request with the service identification information to the internal server of company B through the company B gateway service DMZ zone. As shown in fig. 7, the request feedback information fed back by the server is then received through the company B gateway service DMZ zone.
S404, storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests.
In particular, when the same server provides services to multiple clients simultaneously, multiple service acquisition requests may be stored in the asynchronous task queue.
S406, generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule.
Specifically, the service providing rule herein includes, but is not limited to, confirming an order of generating the request feedback information according to a request time of the service acquisition request, and an order of transmitting the request feedback information to the routing proxy server.
S408, the request feedback information is forwarded to the routing proxy server, so that the routing proxy server determines the target client according to the corresponding relation between the service identification information and the client set.
In the embodiment of the invention, the method comprises the steps of receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information; storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests; generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule; in the method, the routing proxy server can meet the service requests of a plurality of sets of test environments of the client without changing code service logic and an integral link according to the corresponding relation between the service identification information and the client set, and the method is simple and convenient to operate, not only saves manpower and material resources, but also effectively improves project test efficiency, and further solves the technical problem of lower project test efficiency in the related technology.
In an embodiment, the request processing method further includes the following steps:
1. the different test environments of the requesting party (company a) call the service interface with the need to provide a unique identification of the environment. As shown in FIG. 5, the interfaces called by different test environments are different or the same interface parameters provide the identification of the environment from which the request originated.
Specifically, the requester needs to provide the IP and port of all test environments, and the different test environment configurations of the requester call the service identifier of the request source environment in the interface parameter of the access side (company B).
2. The routing proxy server needs to establish a mapping relationship between the IP and port environment identifications of the requesting testing environment and the unique service serial number (e.g., loan serial number) in the request.
3. When receiving asynchronous notification (request feedback information) sent by an internal service system of an access party (company B), the asynchronous notification is forwarded to a routing agent by a gateway service DMZ of the access party, the routing agent analyzes a unique service flow number (loan flow number), inquires an environment mapping table according to the flow number, inquires an IP (Internet protocol) and a port of a test environment of a source request party, and forwards the asynchronous notification to a specified environment. When the internal system of the access company B initiates an asynchronous notification, the asynchronous notification is forwarded to a routing agent through a gateway service DMZ area, and a source IP address and a port configured in a mapping relation table of a service serial number (loan application number) in a message are checked. If yes, forwarding to a specified source environment (target client); and if the information can not be found, sending the request feedback information to the test environment of all registered requesters in a group mode.
The embodiment of the invention also has the following beneficial technical effects:
1. and a plurality of test environments are supported, different requesters use the same test account number for requesting, and synchronous/asynchronous results are returned to the corresponding test environment.
2. When the access party needs to simply adjust the test environment, the interface request is added with the environment identifier to distinguish the source environment, so that the realization is simple and code service logic change and other changes on the whole link are not needed.
3. Aiming at a plurality of sets of test environments of an access party, only a source environment can receive a request of an asynchronous notification, and after receiving the request of the asynchronous notification, a routing agent analyzes a loan application number in the request, matches the test environment of a unique requester and forwards the request to the test environment of the unique requester, so that the normal operation of a subsequent process can be ensured without interfering other test environments.
4. The time and workload of basic configuration and maintenance of the test environment by operation and maintenance personnel, database management personnel, middleware personnel and service system personnel are reduced, and the cost of manpower and material resources is greatly reduced.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a request processing apparatus for implementing the request processing method, which is applied to a routing proxy server. As shown in fig. 8, the apparatus includes:
a receiving unit 802, configured to receive a service acquisition request sent by a client; the service acquisition request carries service identification information;
a sending unit 804, configured to send the service acquisition request to a server, and receive request feedback information fed back by the server for the service acquisition request; wherein, the request feedback information comprises the service identification information;
a first determining unit 806, configured to determine a target client according to a correspondence between the service identification information and the client set;
a forwarding unit 808, configured to forward the request feedback information to the target client.
In the embodiment of the invention, a service acquisition request sent by a receiving client is adopted; the service acquisition request carries service identification information; sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information; determining a target client according to the corresponding relation between the service identification information and the client set; in the method, the target client is determined according to the corresponding relation between the service identification information and the client set, the service requests of a plurality of sets of test environments of the client can be met without changing code service logic and an integral link, the operation is simple and convenient, manpower and material resources are saved, the project test efficiency is effectively improved, and the technical problem of lower project test efficiency in the related technology is solved.
In one or more embodiments, the request processing apparatus further includes:
and the establishing unit is used for establishing the corresponding relation between the current client and the service identification information according to the service identification information in the service acquisition request sent by the current client.
In one or more embodiments, the establishing unit specifically includes:
the establishment module is used for establishing an address translation mapping table according to the service identification information in the service acquisition request sent by the current client; the address translation mapping table includes a corresponding relationship between the current client and the service identification information.
In one or more embodiments, the service identification information includes a network address, a port number, a request interface, and a service serial number, and the establishing module includes:
and the establishing subunit is used for establishing the address conversion mapping table which corresponds to the network address, the port number, the request interface and the service serial number of the current client.
In one or more embodiments, the first determining unit 806 includes:
and the first determining module is used for inquiring the address conversion mapping table and determining the client corresponding to the current service identification information as the target client.
In one or more embodiments, the first determining unit further includes:
and the second determining module is used for taking all the clients in the client set as target clients when the clients matched with the service identification information are not inquired according to the corresponding relation between the service identification information and the client set.
According to another aspect of the embodiment of the present application, there is also provided a request processing apparatus for implementing the request processing method, which is applied to a server. As shown in fig. 10, the apparatus includes:
a receiving unit 1002, which receives a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information;
a storage unit 1004, configured to store the service acquisition request in an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests;
a generating unit 1006, configured to generate corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service provision rule;
a forwarding unit 1008, configured to forward the request feedback information to the routing proxy server, so that the routing proxy server determines a target client according to a correspondence between the service identifier information and the client set.
In the embodiment of the invention, the method comprises the steps of receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information; storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests; generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule; in the method, the routing proxy server can meet the service requests of a plurality of sets of test environments of the client without changing code service logic and an integral link according to the corresponding relation between the service identification information and the client set, and the method is simple and convenient to operate, not only saves manpower and material resources, but also effectively improves project test efficiency, and further solves the technical problem of lower project test efficiency in the related technology.
According to another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the request processing method, where the electronic device may be the routing proxy server shown in fig. 1. The present embodiment takes the electronic device as a server as an example for explanation. As shown in fig. 9, the electronic device comprises a memory 902 and a processor 904, the memory 902 having stored therein a computer program, the processor 904 being arranged to perform the steps of any of the above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, receiving a service acquisition request sent by a client; the service acquisition request carries service identification information;
s12, sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information;
s13, determining a target client according to the corresponding relation between the service identification information and the client set;
and S14, forwarding the request feedback information to the target client.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 902 may be configured to store software programs and modules, such as program instructions/modules corresponding to the request processing method and apparatus in the embodiment of the present application, and the processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, implements the request processing method. The memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 902 may further include memory located remotely from the processor 904, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 902 may be, but not limited to, specifically configured to store service identification information and request feedback information. As an example, as shown in fig. 9, the memory 902 may include, but is not limited to, a receiving unit 802, a sending unit 804, a first determining unit 806, and a forwarding unit 808 in the request processing apparatus. In addition, other module units in the request processing apparatus may also be included, but are not limited to these, and are not described in detail in this example.
Optionally, the transmitting device 906 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmitting device 906 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 906 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 908 for displaying the request feedback information; and a connection bus 910 for connecting the respective module components in the above-described electronic apparatus.
According to another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the vehicle driving track sharing method, where the electronic device may be a terminal device shown in fig. 1. The embodiment takes the electronic device as a mobile terminal as an example for explanation. As shown in fig. 11, the electronic device comprises a memory 1102 and a processor 1104, wherein the memory 1102 stores a computer program and the processor 1104 is arranged to execute the steps of any of the above method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s21, receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information;
s22, storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests;
s23, generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule;
and S24, forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 11 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 11 is a diagram illustrating a structure of the electronic apparatus. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
The memory 1102 may be configured to store software programs and modules, such as program instructions/modules corresponding to the vehicle driving track sharing method and apparatus in the embodiment of the present application, and the processor 1104 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1102, that is, implements the vehicle driving track sharing method. The memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1102 can further include memory located remotely from the processor 1104 and such remote memory can be coupled to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1102 may be specifically, but not limited to, used for storing service identification information and request feedback information. As an example, as shown in fig. 11, the memory 1102 may include, but is not limited to, a receiving unit 1002, a storage unit 1004, a generating unit 1006, and a forwarding unit 1008 in the vehicle driving track sharing device. In addition, the vehicle driving track sharing device may further include, but is not limited to, other module units in the vehicle driving track sharing device, which is not described in detail in this example.
Optionally, the transmitting device 1106 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1106 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, the transmitting device 1106 is a Radio Frequency (RF) module used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1108 for displaying the feedback information; and a connection bus 1110 for connecting the respective module components in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. The nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
In one or more embodiments, the present application also provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the request processing method. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s11, receiving a service acquisition request sent by a client; the service acquisition request carries service identification information;
s12, sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information;
s13, determining a target client according to the corresponding relation between the service identification information and the client set;
and S14, forwarding the request feedback information to the target client.
Or a computer program for performing the steps of:
s21, receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information;
s22, storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests;
s23, generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule;
and S24, forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is only a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (11)

1. A request processing method is applied to a routing proxy server, and is characterized by comprising the following steps:
receiving a service acquisition request sent by a client; the service acquisition request carries service identification information;
sending the service acquisition request to a server, and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information;
determining a target client according to the corresponding relation between the service identification information and the client set;
and forwarding the request feedback information to the target client.
2. The method of claim 1, wherein before sending the service acquisition request to the server, the method comprises:
and establishing a corresponding relation between the current client and the service identification information according to the service identification information in the service acquisition request sent by the current client.
3. The method according to claim 2, wherein the establishing a correspondence between the current client and the service identification information according to the service identification information in the service acquisition request sent by the current client comprises:
establishing an address translation mapping table according to service identification information in a service acquisition request sent by a current client; the address translation mapping table includes a corresponding relationship between the current client and the service identification information.
4. The method of claim 3, wherein the service identification information includes a network address, a port number, a request interface, and a service serial number, and the establishing an address translation mapping table according to the service identification information in the service acquisition request sent by the current client comprises:
and establishing the address translation mapping table corresponding to the network address, the port number, the request interface and the service serial number of the current client.
5. The method of claim 3, wherein determining the target client according to the correspondence between the service identification information and the client set comprises:
and inquiring the address conversion mapping table, and determining the target client side for the client side corresponding to the current service identification information.
6. The method of claim 1, wherein determining the target client according to a correspondence between the service identification information and the set of clients, further comprises:
and according to the corresponding relation between the service identification information and the client side set, when the client side matched with the service identification information is not inquired, all the client sides in the client side set are used as target client sides.
7. A request processing method is applied to a server and is characterized by comprising the following steps:
receiving a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information;
storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests;
generating corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service providing rule;
and forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
8. A request processing apparatus applied to a routing proxy server, comprising:
the receiving unit is used for receiving a service acquisition request sent by a client; the service acquisition request carries service identification information;
the sending unit is used for sending the service acquisition request to a server and receiving request feedback information fed back by the server aiming at the service acquisition request; wherein, the request feedback information includes the service identification information;
the first determining unit is used for determining a target client according to the corresponding relation between the service identification information and the client set;
and the forwarding unit is used for forwarding the request feedback information to the target client.
9. A request processing apparatus, applied to a server, comprising:
a receiving unit, which receives a service acquisition request sent by a routing proxy server; the service acquisition request carries service identification information;
the storage unit is used for storing the service acquisition request into an asynchronous task queue; wherein the asynchronous task queue user stores a plurality of service acquisition requests;
a generating unit, configured to generate corresponding request feedback information for each service acquisition request in the asynchronous task queue according to a preset service provision rule;
and the forwarding unit is used for forwarding the request feedback information to the routing proxy server so that the routing proxy server determines a target client according to the corresponding relation between the service identification information and the client set.
10. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 6, or claim 7.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program and the processor is arranged to execute the method of any of claims 1 to 6, or claim 7, by means of the computer program.
CN202211426195.7A 2022-11-15 2022-11-15 Request processing method and device, storage medium and electronic equipment Pending CN115766872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211426195.7A CN115766872A (en) 2022-11-15 2022-11-15 Request processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211426195.7A CN115766872A (en) 2022-11-15 2022-11-15 Request processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115766872A true CN115766872A (en) 2023-03-07

Family

ID=85371201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211426195.7A Pending CN115766872A (en) 2022-11-15 2022-11-15 Request processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115766872A (en)

Similar Documents

Publication Publication Date Title
CN103339901B (en) Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node
CN102845123B (en) Virtual private cloud connection method and tunnel proxy server
CN111917900B (en) Domain name agent request processing method and device
CN110601906A (en) Data transmission method and device based on block chain
CN107181804B (en) The method for down loading and device of resource
US20190089648A1 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
US6654350B1 (en) Method and apparatus for tracking a transaction across a multi-hop network
CN113766019B (en) Internet of things system based on cloud and edge computing combination
CN105959188B (en) Method and device for controlling user terminal to be on-line
CN101808051A (en) Application integration gateway and control method thereof
CN118018517A (en) Data processing method, network element equipment and readable storage medium
WO2016114750A1 (en) Data link layer information
CN110012107B (en) Data communication method, equipment, device, system and storage medium
CN111585786A (en) Realization of secret-free building method of big data cluster
CN116016164A (en) Virtual service network construction method based on software defined network
CN112968965B (en) Metadata service method, server and storage medium for NFV network node
US7543030B2 (en) Peer-to-peer communication for instant messaging between different instant message application types
CN114025009A (en) Method, system, proxy server and device for forwarding request
CN115766872A (en) Request processing method and device, storage medium and electronic equipment
CN109962834B (en) Information processing method, system, terminal and computer storage medium
JP2023543323A (en) Distributed management system and management method for smart card management device
CN113630298A (en) Intelligent control system, method and device
CN108900575B (en) Long connection hierarchical communication method and system based on mobile terminal
CN114363183A (en) Service chain address pool slicing processing method, device and system
CN114039946A (en) Message transmission method and device, electronic device 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