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

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

Info

Publication number
CN114531493B
CN114531493B CN202011320727.XA CN202011320727A CN114531493B CN 114531493 B CN114531493 B CN 114531493B CN 202011320727 A CN202011320727 A CN 202011320727A CN 114531493 B CN114531493 B CN 114531493B
Authority
CN
China
Prior art keywords
service
target
dependent
network server
identification information
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.)
Active
Application number
CN202011320727.XA
Other languages
Chinese (zh)
Other versions
CN114531493A (en
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011320727.XA priority Critical patent/CN114531493B/en
Publication of CN114531493A publication Critical patent/CN114531493A/en
Application granted granted Critical
Publication of CN114531493B publication Critical patent/CN114531493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a request processing method, a request processing device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving target service identification information of target service sent by a network server; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory can be achieved. And the success rate of the service to call the dependent service which needs to be called can be improved.

Description

Request processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for processing a request, an electronic device, and a storage medium.
Background
The service grid is used to control how data is shared between different parts of the application. The service grid is built into the application's specialized infrastructure layer. This visible infrastructure layer may record whether different parts of the application can interact normally. Thus, with the continued development of applications, service grids are particularly important in optimizing communications and avoiding downtime.
In a service grid implementation with a web server as the sidecar container, service requests are forwarded through the web server. Specifically, a network server and a network server control plane are operated in the side car container, and the service request forwarding behavior of the network server is completely controlled by the network server control plane. In the related art, after a service is started, the web server control plane needs to send service configuration information of all services to the web server, so that the service calls the service that the service needs to call.
However, if more services are provided, the network server control plane issues more service configuration information to the network server, and more service configuration information occupies more memory, resulting in memory waste.
Disclosure of Invention
In order to solve the technical problem of memory waste caused by more service configuration information issued to a network server by a network server control plane and more memory occupied by more service configuration information in the related art, an embodiment of the present disclosure provides a request processing method, apparatus, electronic device and storage medium, where the technical scheme of the present disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a request processing method, the method including:
receiving target service identification information of target service sent by a network server, wherein the target service is the service corresponding to the determined target service request after the network server receives the target service request;
reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service;
and sending service configuration information of a target dependent service to the network server so that the network server sends the target business request to the target server corresponding to the service configuration information, wherein the target dependent service is the dependent service with the dependent service identification information.
Optionally, before the reading the dependency service identification information of the dependency service required to be invoked by the target service in the dependency set corresponding to the target service, the method further includes:
for each service, establishing a dependency set corresponding to the service;
for each service, determining the dependent service required to be invoked by the service operation, and writing the dependent service identification information of the dependent service required to be invoked by the service operation into the dependent set corresponding to the service.
Optionally, the target service identification information is a target service name, the dependent service identification information is a dependent service name, and all the dependent service names of the dependent services required to be invoked when the service runs are stored in a concentrated manner in the dependence corresponding to each service;
reading the dependent service identification information of the dependent service required to be called by the target service in running from the target dependent set corresponding to the target service, wherein the method comprises the following steps:
determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set;
and reading the dependent service names of all the dependent services required to be invoked by the target service operation from the target dependent set.
Optionally, the sending the service configuration information of the target dependent service to the network server, so that the network server sends the target service request to a target server corresponding to the service configuration information, includes:
and sending service address information of each target dependent service to a network server so that the network server sends the target service request to a server corresponding to each service address information, wherein the target dependent service is a dependent service with a dependent service name of the dependent service required to be called when the target service runs.
Optionally, after the sending the service configuration information of the target dependent service to the network server, the method further includes:
writing service configuration information of the target dependent service into the target dependent set;
and after receiving the target service identification information of the target service sent by the network server again, sending the service configuration information of the target dependent service stored in the target dependent set to the network server.
According to a second aspect of embodiments of the present disclosure, there is provided a request processing apparatus, the apparatus comprising:
the system comprises an identification information receiving module, a service request module and a service request module, wherein the identification information receiving module is configured to execute target service identification information of target service sent by a network server, and the target service is the service corresponding to the determined target service request after the network server receives the target service request;
The identification information reading module is configured to execute the reading of the identification information of the dependent service required to be called when the target service runs from the target dependency set corresponding to the target service;
and the configuration information sending module is configured to send service configuration information of a target dependent service to the network server so that the network server sends the target business request to a target server corresponding to the service configuration information, wherein the target dependent service is the dependent service with the dependent service identification information.
Optionally, the apparatus further includes:
the dependency set establishing module is configured to establish a dependency set corresponding to each service before reading the dependency service identification information of the dependency service required to be invoked when the target service runs from the dependency set corresponding to the target service;
the identification information writing module is configured to execute the dependence service which needs to be called by the service operation time for each service, and write the dependence service identification information of the dependence service which needs to be called by the service operation time into the dependence set corresponding to the service.
Optionally, the target service identification information is a target service name, the dependent service identification information is a dependent service name, and all the dependent service names of the dependent services required to be invoked when the service runs are stored in a concentrated manner in the dependence corresponding to each service;
the identification information reading module is specifically configured to perform:
determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set;
and reading the dependent service names of all the dependent services required to be invoked by the target service operation from the target dependent set.
Optionally, the configuration information sending module is specifically configured to perform:
and sending service address information of each target dependent service to a network server so that the network server sends the target service request to a server corresponding to each service address information, wherein the target dependent service is a dependent service with a dependent service name of the dependent service required to be called when the target service runs.
Optionally, the apparatus further includes:
a configuration information writing module configured to perform writing of service configuration information of a target dependent service into the target dependent set after the configuration information transmitting module transmits the service configuration information of the target dependent service to the web server;
Correspondingly, the configuration information sending module is specifically configured to send the service configuration information of the target dependent services stored in the target dependent set to the network server after receiving the target service identification information of the target service sent by the network server again.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the request processing method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the request processing method of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to implement the request processing method of the first aspect.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
Drawings
FIG. 1 is a flow chart illustrating a method of request processing according to an exemplary embodiment;
FIG. 2 is a block diagram of a request processing apparatus according to an example embodiment;
FIG. 3 is a block diagram of an electronic device, shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of a request processing apparatus according to an example embodiment;
FIG. 5 is a block diagram illustrating another request processing apparatus according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the related art, after a service is started, the network server control plane needs to send service configuration information of all the services to the network server, so that the service to be invoked can be invoked in the running process of the service. However, if the service controlled by the network server control plane is more, the network server control plane issues more service configuration information to the network server, and more service configuration information occupies more memory of the network server, so that the memory of the network server is wasted; in addition, since the service configuration information in the network server is more, after one service is started, the efficiency of calling the service on which the service needs to depend is lower.
In order to solve the above technical problems in the related art, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for processing a request.
In a first aspect, a detailed description is first provided of a request processing method according to an embodiment of the present disclosure.
It should be noted that, the execution body of the request processing method provided by the embodiment of the present disclosure may be a web server control plane running in the side car container, for example, the web server control plane may be an envoy control plane. Of course, the network server control plane is not particularly limited by the embodiments of the present disclosure.
As shown in fig. 1, a request processing method provided in an embodiment of the present disclosure may include the following steps:
in step S11, target service identification information of a target service transmitted by a web server is received.
The target service is a service corresponding to the determined target service request after the network server receives the target service request.
Specifically, the network server may be any network server running in the side car container, and the network server may be an client, HAProxy, or ngan, which is not specifically limited in the embodiments of the present disclosure.
In the service grid, service requests are forwarded through a network server. Thus, the network server may receive the service request, which may be referred to as a target service request for clarity of solution description. The target service request carries target service identification information of the target service, for example, the target service request can carry a service name of the target service. After receiving the target service request, the network server can analyze the target service request to obtain target service identification information carried in the target service request, and determine a service corresponding to the target service request according to the analyzed target service identification information, namely, determine a target service requested by the target service request according to the analyzed target service identification information.
Because the network server has no service configuration information of the dependent service required to be invoked when the target service runs, the network server can send the target service identification information of the target service to the network server control plane, so that in the subsequent step, the network server control plane can send the service configuration information of the dependent service required to be invoked when the target service runs to the network server.
In step S12, service identification information of the dependent service to be invoked when the target service runs is read from the target dependency set corresponding to the target service.
Specifically, in practical application, each service corresponds to a dependency set, and the dependency set corresponding to each service records the dependency service identification information of the dependency service required to be invoked during the service running, for example, the dependency set corresponding to each service can record the dependency service name of the dependency service required to be invoked during the service running. Therefore, after receiving the target service identification information of the target service sent by the network server, the network server control plane can read the dependent service identification information of the dependent service required to be invoked when the target service runs from the target dependency set corresponding to the target service.
In order to enable the network server control plane to read the dependent service identification information of the dependent service required to be invoked when the target service is running from the target dependency set corresponding to the target service, in one embodiment, before reading the dependent service identification information of the dependent service required to be invoked when the target service is running from the dependency set corresponding to the target service, the request processing method may further include the following steps, namely, step a1 and step a2:
step a1, for each service, establishing a corresponding dependency set of the service.
Specifically, a dependency set may be established for each service, and in the initial case, the dependency sets of all services are empty.
And a2, for each service, determining the dependent service required to be called by the service in operation, and writing the dependent service identification information of the dependent service required to be called by the service in operation into a dependent set corresponding to the service.
Specifically, since the services that each service depends on after being started are determined, after the dependency set is established for each service, the dependent services that each service needs to invoke when running can be determined. For each service, the dependent service identification information of the dependent service required to be invoked by the service in running can be written into the dependent set corresponding to the service. For example, the dependent service name of the dependent service that the service needs to invoke when running may be written into the dependency set corresponding to the service.
Thus, the dependency set corresponding to the service records the dependency service identification information of the dependency service required to be invoked when the service runs, so that the network server control plane can read the dependency service identification information of the dependency service required to be invoked when the target service runs from the target dependency set corresponding to the target service after receiving the target service identification information of the target service.
In step S13, service configuration information of the target dependent service is transmitted to the network server, so that the network server transmits the target service request to the target server corresponding to the service configuration information.
Wherein the target dependent service is a dependent service having dependent service identification information.
Specifically, the network server control plane reads the dependent service identification information of the dependent service required to be invoked when the target service runs from the target dependency set corresponding to the target service, and then can determine the target dependent service according to the dependent service identification information of the dependent service. For example, after the dependent service name of the dependent service required to be invoked by the target service operation is read from the target dependency set corresponding to the target service, the target dependent service required to be invoked by the target service operation can be determined according to the dependent service name.
In order to enable the target service to successfully call the dependence service which needs to be called after being started, the network server control plane can send service configuration information of the target dependence service to the network server, wherein the service configuration information can be service address information of the target dependence service. After receiving the service configuration information of the target dependent service, the network server may send the target service request to the target server corresponding to the service configuration information, for example, the network server control plane may send the target service request to the target server corresponding to the service address information, so that the target service may successfully invoke the target dependent service.
As can be seen from the above description, after the target service is started, the service configuration information issued by the network server control plane to the network server is service configuration information of the dependent service, which is required to be invoked when the target service runs, instead of service configuration information of all services, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the target service can be improved.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
For completeness of the solution and clarity of the solution description, S12 and S13 of the embodiments of the disclosure will be described in detail below.
In one embodiment, the target service identification information is a target service name, the dependent service identification information is a dependent service name, and the dependent set corresponding to each service stores the dependent service names of all the dependent services required to be invoked when the service runs.
At this time, the reading of the dependent service identification information of the dependent service required to be invoked by the target service in operation from the target dependency set corresponding to the target service may include the following steps, namely, step b1 and step b2:
and b1, determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set.
Specifically, each service has a corresponding service name, and each service has a corresponding dependency set, so that the service name has a corresponding relationship with the dependency set, and a target dependency set corresponding to a target service name of the target service can be determined according to the corresponding relationship between the service name and the dependency set.
And b2, reading the dependent service names of all the dependent services required to be invoked by the target service in the running process from the target dependent set.
Specifically, in practical application, each service is debugged and tested in a test environment, and when the service meets the online condition, the service is deployed to the online environment. When a service runs in an online environment, the dependency set corresponding to the service stores the dependency service names of all the dependency services required to be invoked when the service runs, that is, the target dependency set corresponding to the target service stores the dependency service names of all the dependency services required to be invoked when the target service runs, so that the web server control plane can read the dependency service names of all the dependency services required to be invoked when the target service runs from the target dependency set. The method is beneficial to the fact that when the target service is started in a cold mode in the follow-up step, the target service can successfully call the dependent service which needs to be called; and quickly invokes the dependent services it needs to invoke from the target dependency set, thus reducing the stress on the internal service discovery system as well.
When the target dependency set corresponding to the target service stores the dependent service names of all the dependent services required to be invoked when the target service runs, as an implementation manner of the embodiment of the present disclosure, service configuration information of the target dependent service is sent to the network server, so that the network server sends the target service request to the target server corresponding to the service configuration information, and the method may include the following steps:
and sending the service address information of each target dependent service to the network server so that the network server sends the target service request to the server corresponding to each service address information.
The target dependent service is a dependent service with a dependent service name of the dependent service required to be invoked by the target service in running.
Specifically, in this implementation manner, after the network server control plane reads the dependent service names of all the dependent services required to be invoked when the target service runs from the target dependency set, in order to successfully invoke the dependent services required to be invoked when the target service is cold started, the pressure on the internal service discovery system can be reduced, the network server control plane can send service address information of each target dependent service on which the target service depends to the network server, and after receiving the service address information of each target dependent service, the network server can send the target service request to the server corresponding to the service address information of each target dependent service, so that the target service can successfully invoke the target dependent service required to be invoked.
Therefore, according to the technical scheme provided by the embodiment, by recording the dependent service names of all the dependent services on which the target service depends to the target dependency set corresponding to the target service, the network server can read all the dependent services on which the target service depends from the target dependency set and send the service address information of all the dependent services to the network server. Thus, when the target service is cold started, all the dependent services which need to be called can be successfully called, and the dependent services which need to be called can be quickly called from the target dependency set, so that the pressure on an internal service discovery system can be reduced.
On the basis of the above embodiment, in one implementation manner, after sending the service configuration information of the target dependent service to the web server, the request processing method may further include the following steps, respectively, step c1 and step c2:
and step c1, writing the service configuration information of the target dependent service into the target dependent set.
Specifically, after sending the service configuration information of the target dependent service to the network server, in order to receive the target service identification information of the target service sent by the network server again in a subsequent step, the network server control plane may quickly send the service configuration information of the target dependent service on which the target service depends to the network server, and the network server control plane may write the service configuration information of the target dependent service into the target dependent set.
And step c2, after receiving the target service identification information of the target service sent by the network server again, sending the service configuration information of the target dependent service stored in the target dependent set to the network server.
Specifically, since the service configuration information of the target dependent service is stored in the target dependent set corresponding to the target service, after the network server control plane receives the target service identification information of the target service again, the service configuration information of the target dependent service stored in the target dependent set can be directly sent to the network server. In this way, the network server can quickly send the target service request to the target server corresponding to the service configuration information, thereby being beneficial to the target service to quickly call the target dependent service and improving the success rate of the target service to call the target dependent service.
According to a second aspect of the embodiments of the present disclosure, there is provided a request processing apparatus, as shown in fig. 2, the apparatus including:
an identification information receiving module 210, configured to perform receiving target service identification information of a target service sent by a network server, where the target service is a service corresponding to a determined target service request after the network server receives the target service request;
An identification information reading module 220 configured to perform reading, from a target dependency set corresponding to the target service, dependency service identification information of a dependency service required to be invoked when the target service runs;
and a configuration information sending module 230 configured to perform sending service configuration information of a target dependent service to the network server, so that the network server sends the target service request to a target server corresponding to the service configuration information, where the target dependent service is a dependent service with the dependent service identification information.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
Optionally, the apparatus further includes:
the dependency set establishing module is configured to establish a dependency set corresponding to each service before reading the dependency service identification information of the dependency service required to be invoked when the target service runs from the dependency set corresponding to the target service;
the identification information writing module is configured to execute the dependence service which needs to be called by the service operation time for each service, and write the dependence service identification information of the dependence service which needs to be called by the service operation time into the dependence set corresponding to the service.
Optionally, the target service identification information is a target service name, the dependent service identification information is a dependent service name, and all the dependent service names of the dependent services required to be invoked when the service runs are stored in a concentrated manner in the dependence corresponding to each service;
the identification information reading module is specifically configured to perform:
determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set;
and reading the dependent service names of all the dependent services required to be invoked by the target service operation from the target dependent set.
Optionally, the configuration information sending module is specifically configured to perform:
and sending service address information of each target dependent service to a network server so that the network server sends the target service request to a server corresponding to each service address information, wherein the target dependent service is a dependent service with a dependent service name of the dependent service required to be called when the target service runs.
Optionally, the apparatus further includes:
a configuration information writing module configured to perform writing of service configuration information of a target dependent service into the target dependent set after the configuration information transmitting module transmits the service configuration information of the target dependent service to the web server;
correspondingly, the configuration information sending module is specifically configured to send the service configuration information of the target dependent services stored in the target dependent set to the network server after receiving the target service identification information of the target service sent by the network server again.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, as shown in fig. 3, including:
a processor 310;
A memory 320 for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the request processing method of the first aspect.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
Fig. 4 is a block diagram of an apparatus 400, according to an example embodiment. For example, the apparatus 400 may be provided as a server. Referring to fig. 4, the apparatus 400 includes a processing component 422 that further includes one or more processors, and memory resources represented by memory 432, for storing instructions, such as applications, executable by the processing component 422. The application program stored in memory 432 may include one or more modules each corresponding to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the request processing method of the first aspect.
The apparatus 400 may also include a power component 426 configured to perform power management of the apparatus 400, a wired or wireless network interface 450 configured to connect the apparatus 400 to a network, and an input output (I/O) interface 458. The apparatus 400 may operate based on an operating system stored in the memory 432, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM or the like.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, so that the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
Fig. 5 is a block diagram illustrating a request processing apparatus 500 according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast electronic device, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 5, an apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the apparatus 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
Memory 504 is configured to store various types of data to support operations at device 500. Examples of such data include instructions for any application or method operating on the apparatus 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 507 provides power to the various components of the device 500. The power supply components 507 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 500 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 516. In some embodiments, the audio assembly 55 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the apparatus 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in position of the apparatus 500 or one component of the apparatus 500, the presence or absence of user contact with the apparatus 500, the orientation or acceleration/deceleration of the apparatus 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the request processing method as described in the first aspect.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of apparatus 500 to perform the above-described method. Alternatively, for example, the storage medium may be a non-transitory computer-readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the request processing method of the first aspect.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to implement the request processing method of the first aspect.
According to the technical scheme provided by the embodiment of the disclosure, the target service identification information of the target service sent by the network server is received; reading the dependent service identification information of the dependent service required to be called when the target service runs from the target dependent set corresponding to the target service; and sending the service configuration information of the target dependent service to the network server so that the network server sends the target service request to the target server corresponding to the service configuration information. According to the technical scheme provided by the embodiment of the disclosure, after a service is started, the service configuration information issued by the network server control plane to the network server is the service configuration information of the dependent service required to be called when the service runs, so that the service configuration information issued by the network server control plane to the network server is less, and the effect of saving the memory of the network server can be achieved. In addition, because the service configuration information issued by the network server control plane to the network server is only the service configuration information of the dependent service which needs to be called when the service runs, the efficiency and the success rate of calling the dependent service which needs to be called by the service can be improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of request processing, the method comprising:
receiving target service identification information of target service sent by a network server, wherein the target service is the service corresponding to the determined target service request after the network server receives the target service request;
reading the dependent service identification information of the dependent service required to be called by the target service in running from a target dependent set corresponding to the target service, wherein the target dependent set refers to a set of the dependent service identification information of all the dependent services required to be called by each target service in running;
and sending service configuration information of a target dependent service to the network server so that the network server sends the target business request to the target server corresponding to the service configuration information, wherein the target dependent service is the dependent service with the dependent service identification information.
2. The method of claim 1, wherein before reading the dependent service identification information of the dependent service required to be invoked by the target service runtime from the dependent set corresponding to the target service, the method further comprises:
for each service, establishing a dependency set corresponding to the service;
for each service, determining the dependent service required to be invoked by the service operation, and writing the dependent service identification information of the dependent service required to be invoked by the service operation into the dependent set corresponding to the service.
3. The method according to claim 1 or 2, wherein the target service identification information is a target service name, the dependent service identification information is a dependent service name, and the dependent set corresponding to each service stores the dependent service names of all the dependent services required to be invoked when the service runs;
reading the dependent service identification information of the dependent service required to be called by the target service in running from the target dependent set corresponding to the target service, wherein the method comprises the following steps:
determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set;
And reading the dependent service names of all the dependent services required to be invoked by the target service operation from the target dependent set.
4. A method according to claim 3, wherein said sending service configuration information of a target dependent service to a network server, so that the network server sends the target service request to a target server corresponding to the service configuration information, comprises:
and sending service address information of each target dependent service to a network server so that the network server sends the target service request to a server corresponding to each service address information, wherein the target dependent service is a dependent service with a dependent service name of the dependent service required to be called when the target service runs.
5. The method of claim 1, wherein after said sending the service configuration information of the target dependent service to the web server, the method further comprises:
writing service configuration information of the target dependent service into the target dependent set;
and after receiving the target service identification information of the target service sent by the network server again, sending the service configuration information of the target dependent service stored in the target dependent set to the network server.
6. A request processing apparatus, the apparatus comprising:
the system comprises an identification information receiving module, a service request module and a service request module, wherein the identification information receiving module is configured to execute target service identification information of target service sent by a network server, and the target service is the service corresponding to the determined target service request after the network server receives the target service request;
the identification information reading module is configured to read the dependent service identification information of the dependent service required to be called by the target service in the running process from a target dependent set corresponding to the target service, wherein the target dependent set refers to a set of the dependent service identification information of all the dependent services required to be called by each target service in the running process;
and the configuration information sending module is configured to send service configuration information of a target dependent service to the network server so that the network server sends the target business request to a target server corresponding to the service configuration information, wherein the target dependent service is the dependent service with the dependent service identification information.
7. The apparatus of claim 6, wherein the apparatus further comprises:
The dependency set establishing module is configured to establish a dependency set corresponding to each service before reading the dependency service identification information of the dependency service required to be invoked when the target service runs from the dependency set corresponding to the target service;
the identification information writing module is configured to execute the dependence service which needs to be called by the service operation time for each service, and write the dependence service identification information of the dependence service which needs to be called by the service operation time into the dependence set corresponding to the service.
8. The apparatus according to claim 6 or 7, wherein the target service identification information is a target service name, the dependent service identification information is a dependent service name, and the dependent set corresponding to each service stores the dependent service names of all the dependent services required to be invoked when the service runs;
the identification information reading module is specifically configured to perform:
determining a target dependency set corresponding to the target service name of the target service according to the corresponding relation between the service name and the dependency set;
and reading the dependent service names of all the dependent services required to be invoked by the target service operation from the target dependent set.
9. The apparatus according to claim 8, wherein the configuration information sending module is specifically configured to perform:
and sending service address information of each target dependent service to a network server so that the network server sends the target service request to a server corresponding to each service address information, wherein the target dependent service is a dependent service with a dependent service name of the dependent service required to be called when the target service runs.
10. The apparatus of claim 6, wherein the apparatus further comprises:
a configuration information writing module configured to perform writing of service configuration information of a target dependent service into the target dependent set after the configuration information transmitting module transmits the service configuration information of the target dependent service to the web server;
correspondingly, the configuration information sending module is specifically configured to send the service configuration information of the target dependent services stored in the target dependent set to the network server after receiving the target service identification information of the target service sent by the network server again.
11. An electronic device, comprising:
A processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the request processing method of any of claims 1 to 5.
12. A storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the request processing method of any of claims 1 to 5.
CN202011320727.XA 2020-11-23 2020-11-23 Request processing method and device, electronic equipment and storage medium Active CN114531493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011320727.XA CN114531493B (en) 2020-11-23 2020-11-23 Request processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011320727.XA CN114531493B (en) 2020-11-23 2020-11-23 Request processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114531493A CN114531493A (en) 2022-05-24
CN114531493B true CN114531493B (en) 2024-03-26

Family

ID=81618680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011320727.XA Active CN114531493B (en) 2020-11-23 2020-11-23 Request processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114531493B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354566A (en) * 2015-07-14 2017-01-25 华为技术有限公司 Command processing method and server
CN106982236A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of information processing method, device and system
CN109245928A (en) * 2018-09-12 2019-01-18 广州视源电子科技股份有限公司 Setting method and device, the terminal management system of configuration information
CN110750415A (en) * 2019-09-20 2020-02-04 平安普惠企业管理有限公司 Interface service configuration method, device, medium and computer equipment
CN111385365A (en) * 2020-03-23 2020-07-07 广州极晟网络技术有限公司 Processing method and device for reported data, computer equipment and storage medium
CN111930448A (en) * 2020-09-23 2020-11-13 南京梦饷网络科技有限公司 Method, electronic device, and storage medium for service distribution

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10936444B2 (en) * 2018-10-26 2021-03-02 EMC IP Holding Company LLC Smart dynamic restore for Kubernetes based applications
CN111510384B (en) * 2019-01-31 2023-03-10 伊姆西Ip控股有限责任公司 Method, electronic device and computer-readable medium for processing data generated by a service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354566A (en) * 2015-07-14 2017-01-25 华为技术有限公司 Command processing method and server
CN106982236A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of information processing method, device and system
CN109245928A (en) * 2018-09-12 2019-01-18 广州视源电子科技股份有限公司 Setting method and device, the terminal management system of configuration information
CN110750415A (en) * 2019-09-20 2020-02-04 平安普惠企业管理有限公司 Interface service configuration method, device, medium and computer equipment
CN111385365A (en) * 2020-03-23 2020-07-07 广州极晟网络技术有限公司 Processing method and device for reported data, computer equipment and storage medium
CN111930448A (en) * 2020-09-23 2020-11-13 南京梦饷网络科技有限公司 Method, electronic device, and storage medium for service distribution

Also Published As

Publication number Publication date
CN114531493A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
CN109582400B (en) Program calling method and device
CN107239351B (en) Pasting method and device
CN105912204B (en) Method and device for starting application interface
CN107562500B (en) Debugging device, method and equipment
CN106708967B (en) Page display method and device
CN110704030A (en) Interface configuration information generation method and device, electronic equipment and storage medium
CN105786561B (en) Method and device for calling process
CN109885360B (en) Data processing method, device and storage medium
CN109491655B (en) Input event processing method and device
EP3185515B1 (en) Method and device for inputting information
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN114430410A (en) System access method, device and equipment based on virtual domain name
CN109032583B (en) Data interaction method and device
CN112631695A (en) Data verification method and device, electronic equipment and storage medium
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN105892832B (en) Method and device for displaying display information
CN112306566A (en) Data processing method and device
CN115203618B (en) Page processing method and device, electronic equipment and storage medium
CN111414245B (en) Method, device and medium for controlling flash memory read-write rate
CN114443161B (en) Application docking method, device, equipment and storage medium
CN109947640B (en) Regression test-based core function coverage statistical method and device
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN110347394B (en) Software code analysis method and device

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
GR01 Patent grant
GR01 Patent grant