Movatterモバイル変換


[0]ホーム

URL:


CN114531493A - 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
CN114531493A
CN114531493ACN202011320727.XACN202011320727ACN114531493ACN 114531493 ACN114531493 ACN 114531493ACN 202011320727 ACN202011320727 ACN 202011320727ACN 114531493 ACN114531493 ACN 114531493A
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.)
Granted
Application number
CN202011320727.XA
Other languages
Chinese (zh)
Other versions
CN114531493B (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 LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN202011320727.XApriorityCriticalpatent/CN114531493B/en
Publication of CN114531493ApublicationCriticalpatent/CN114531493A/en
Application grantedgrantedCritical
Publication of CN114531493BpublicationCriticalpatent/CN114531493B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

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 a 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 a 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 which is required to be called and depends on the service 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 calling 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 application relates to the field of communications technologies, and in particular, to a request processing method and apparatus, an electronic device, and a storage medium.
Background
The services grid is used to control how data is shared between different parts of an application. The service grid is built into a dedicated infrastructure layer in the application. This visible infrastructure layer may record whether different parts of the application can interact normally. Thus, as applications continue to evolve, the service grid becomes more important in optimizing communications and avoiding outages.
In a service grid implementation with a web server as the sidecar container, service requests are all 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 network server control plane needs to send service configuration information of all services to the network server, so that the service calls the service that the service needs to call.
However, if there are many services, 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 occupied memory by more service configuration information in the related art, the embodiment of the disclosure provides a request processing method, a device, an electronic device and a storage medium, and the technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a request processing method, including:
receiving target service identification information of a target service sent by a network server, wherein the target service is a service corresponding to a 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 service request to a target server corresponding to the service configuration information, wherein the target dependent service is a dependent service with the dependent service identification information.
Optionally, before reading, from the dependency set corresponding to the target service, the dependent service identification information of the dependent service that needs to be called when the target service runs, the method further includes:
for each service, establishing a dependency set corresponding to the service;
for each service, determining a dependent service required to be called by the service runtime, and writing the dependent service identification information of the dependent service required to be called by the service runtime into a 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 dependent service names of all dependent services that need to be called when the service runs are stored in a corresponding dependent set of each service;
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, wherein the reading 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 called by the target service operation from the target dependent set.
Optionally, the sending, to a network server, service configuration information of a target dependent service, so that the network server sends the target service request to a target server corresponding to the service configuration information, includes:
and sending the 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 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 the embodiments of the present disclosure, there is provided a request processing apparatus, the apparatus including:
the system comprises an identification information receiving module, a service identification information sending module and a service identification information receiving module, wherein the identification information receiving module is configured to execute target service identification information of a target service sent by a network server, and the target service is a service corresponding to a determined target service request after the network server receives the target service request;
the identification information reading module is configured to execute reading of 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;
a configuration information sending module configured to execute sending of 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 having the dependent service identification information.
Optionally, 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 called when the target service runs from the dependency set corresponding to the target service;
and the identification information writing module is configured to determine, for each service, a dependent service required to be called by the service runtime, and write the dependent service identification information of the dependent service required to be called by the service runtime into a 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 dependent service names of all dependent services that need to be called when the service runs are stored in a dependent set 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 called by the target service operation from the target dependent set.
Optionally, the configuration information sending module is specifically configured to execute:
and sending the 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 comprises:
a configuration information writing module configured to perform writing service configuration information of a target dependent service into the target dependent set after the configuration information sending module sends the service configuration information of the target dependent service to the network server;
correspondingly, the configuration information sending module is specifically configured to execute sending, to the network server, the service configuration information of the target dependent service that is stored in the target dependent set after receiving again the target service identification information of the target service sent by the network server.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
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, wherein instructions that, when executed by a processor of an electronic device, enable 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 carry out the request processing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called can be improved.
Drawings
FIG. 1 is a flow diagram illustrating a method of request processing in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating a request processing device in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating a request processing device in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating another request processing device according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, after a service is started, the network server control plane needs to send service configuration information of all services to the network server, so that the service to be called can be called in the running process of the service. However, if the services controlled by the network server control plane are more, the service configuration information issued by the network server control plane to the network server is more, and more service configuration information occupies more memories of the network server, which results in memory waste of the network server; moreover, since there is a lot of service configuration information in the network server, it is inefficient to invoke a service that needs to be relied upon after a service is started.
In order to solve the technical problems in the related art, embodiments of the present disclosure provide a request processing method, an apparatus, an electronic device, and a storage medium.
In a first aspect, a request processing method provided by the embodiment of the present disclosure is first described in detail.
It should be noted that the execution subject 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 specifically limited in 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 the target service sent by the network server is received.
The target service is the service corresponding to the determined target service request after the network server receives the target service request.
Specifically, the web server may be any web server operating in the side car container, and the web server may be envoy, HAProxy, or ngin.
In the service grid, service requests are forwarded through network servers. Therefore, the network server may receive the service request, and for clarity of the description of the scheme, the service request received by the network server may be referred to as a target service request. The target service request carries target service identification information of the target service, for example, the target service request may carry a service name of the target service. After receiving the target service request, the network server may parse 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 parsed target service identification information, that is, determine the target service requested by the target service request according to the parsed target service identification information.
Since the network server does not have the service configuration information of the dependent service that needs to be called when the target service runs, the network server may send the target service identification information of the target service to the network server control plane, so that in a subsequent step, the network server control plane can send the service configuration information of the dependent service that needs to be called when the target service runs to the network server.
In step S12, the service identification information of the dependent service that needs to be called when the target service runs is read from the target dependent set corresponding to the target service.
Specifically, in an actual application, each service corresponds to one dependency set, and the dependency set corresponding to each service records dependent service identification information of a dependent service that needs to be called by the service runtime, for example, the dependency set corresponding to each service may record a dependent service name of the dependent service that needs to be called by the service runtime. 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 called when the target service runs from the target dependent set corresponding to the target service.
Furthermore, in order to enable the network server control plane to read the dependent service identification information of the dependent service required to be called by the target service runtime from the target dependency set corresponding to the target service, in an embodiment, before reading the dependent service identification information of the dependent service required to be called by the target service runtime from the target dependency set corresponding to the target service, the request processing method may further include the following steps, which are step a1 and step a 2:
step a1, for each service, establishing a dependency set corresponding to the service.
Specifically, a dependency set may be established for each service, and initially, the dependency sets of all services are empty.
Step a2, for each service, determining the dependent service that the service runtime needs to call, and writing the dependent service identification information of the dependent service that the service runtime needs to call into the dependent set corresponding to the service.
Specifically, since the services that are relied upon after each service is started are determined, after the dependency set is established for each service, the dependent services that need to be invoked when each service is run can be determined. For each service, the dependent service identification information of the dependent service that the service runtime needs to call can be written into the dependent set corresponding to the service. For example, the dependent service name of the dependent service that the service runtime needs to call may be written into the dependent set corresponding to the service.
Therefore, the dependent service identification information of the dependent service required to be called when the service operates is recorded in the dependent set corresponding to the service, so that the network server control plane can read the dependent service identification information of the dependent service required to be called when the target service operates from the target dependent set corresponding to the target service after receiving the target service identification information of the target service.
In step S13, the service configuration information of the target dependent service is sent to the web server, so that the web server sends 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, after 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, the network server control plane may determine the target dependent service according to the dependent service identification information of the dependent service. For example, after reading a dependent service name of a dependent service required to be called by the target service to operate from a target dependent set corresponding to the target service, the target dependent service required to be called by the target service to operate may be determined according to the dependent service name.
In order to enable the target service to successfully invoke the dependent service which the target service needs to invoke after being started, the network server control plane may send service configuration information of the target dependent service to the network server, where the service configuration information may be service address information of the target dependent service. After receiving the service configuration information of the target dependent service, the network server may send the target service request to a target server corresponding to the service configuration information, for example, the network server control plane may send the target service request to a 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 sent by the network server control plane to the network server is the service configuration information of the dependent service that needs to be called when the target service runs, rather than the service configuration information of all services, so that the service configuration information sent 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. Moreover, since 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.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called can be improved.
For completeness and clarity of description, S12 and S13 of the embodiments of the present 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 service name of all dependent services required to be called when the service runs is stored in the dependent set corresponding to each service.
At this time, reading the dependent service identification information of the dependent service that needs to be called when the target service runs from the target dependent set corresponding to the target service may include the following steps, which are step b1 and step b 2:
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 and the dependency set have a corresponding relationship, and a target dependency set corresponding to a target service name of a target service can be determined according to the corresponding relationship between the service name and the dependency set.
And step b2, reading the dependent service names of all the dependent services required to be called by the target service runtime from the target dependent set.
Specifically, in practical applications, each service is debugged and tested in a test environment, and when the service meets an online condition, the service is deployed to the online environment. When one service runs in an online environment, the dependent set corresponding to the service stores the dependent service names of all the dependent services required to be called by the service when running, that is, the target dependent set corresponding to the target service stores the dependent service names of all the dependent services required to be called by the target service when running, so that the network server control plane can read the dependent service names of all the dependent services required to be called by the target service when running from the target dependent set. The method is beneficial to the target service to successfully call the dependent service which needs to be called when the target service is cold started in the subsequent step; and quickly calling the dependent service which needs to be called from the target dependent set, so that the pressure on an internal service discovery system can be reduced.
When the target dependent set corresponding to the target service stores the dependent service names of all the dependent services that need to be called when the target service runs, as an implementation manner of the embodiment of the present disclosure, the method may send 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, and 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 called when the target service runs.
Specifically, in this implementation manner, after the network server control plane reads the dependent service names of all dependent services that need to be called when the target service runs from the target dependent set, in order to enable the target service to successfully call the dependent services that need to be called when the target service is cold started, and at the same time, to reduce the pressure on the internal service discovery system, the network server control plane may send the service address information of each target dependent service on which the target service depends to the network server, and after the network server receives the service address information of each target dependent service, the network server may send the target service request to the server corresponding to the service address information of each target dependent service, so that the target service may successfully call the target dependent service that needs to be called.
As can be seen, according to the technical solution provided by this embodiment, the dependent service names of all dependent services on which the target service depends are recorded in the target dependent set corresponding to the target service, so that the network server can read all dependent services on which the target service depends from the target dependent set, and send the service address information of all dependent services to the network server. In this way, when the target service is started in a cold state, 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 foregoing embodiment, in an implementation manner, after sending the service configuration information of the target dependent service to the network server, the request processing method may further include the following steps, step c1 and step c2 respectively:
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 web server, the web server control plane may quickly send the service configuration information of the target dependent service on which the target service depends to the web server after receiving again the target service identification information of the target service sent by the web server in a subsequent step, and the web server control plane may write the service configuration information of the target dependent service to 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 target dependent set corresponding to the target service stores the service configuration information of the target dependent service, after receiving the target service identification information of the target service again, the network server control plane may directly send the service configuration information of the target dependent service stored in the target dependent set to the network server. Therefore, the network server can quickly send the target service request to the target server corresponding to the service configuration information, so that the target service can quickly call the target dependent service, and the success rate of calling the target dependent service by the target service is improved.
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 identificationinformation 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 target service request determined after the network server receives the target service request;
an identificationinformation reading module 220 configured to execute reading, from a target dependency set corresponding to the target service, dependent service identification information of a dependent service that needs to be called when the target service runs;
a configurationinformation sending module 230 configured to execute sending of 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 having the dependent service identification information.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called can be improved.
Optionally, the apparatus further comprises:
a dependent set establishing module configured to establish, for each service, a dependent set corresponding to the service before reading, from the dependent set corresponding to the target service, the dependent service identification information of the dependent service that needs to be called when the target service runs;
and the identification information writing module is configured to execute determining, for each service, a dependent service required to be called by the service runtime, and writing the dependent service identification information of the dependent service required to be called by the service runtime into a 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 dependent service names of all dependent services that need to be called when the service runs are stored in a dependent set 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 called by the target service operation from the target dependent set.
Optionally, the configuration information sending module is specifically configured to execute:
and sending the 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 comprises:
a configuration information writing module configured to perform writing service configuration information of a target dependent service into the target dependent set after the configuration information sending module sends the service configuration information of the target dependent service to the network server;
correspondingly, the configuration information sending module is specifically configured to execute sending, to the network server, the service configuration information of the target dependent service that is stored in the target dependent set after receiving again the target service identification information of the target service sent by the network server.
According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, as shown in fig. 3, including:
aprocessor 310;
amemory 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.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called can be improved.
Fig. 4 is a block diagram illustrating anapparatus 400 according to an example embodiment. For example, theapparatus 400 may be provided as a server. Referring to fig. 4,apparatus 400 includes aprocessing component 422, which further includes one or more processors, and memory resources, represented bymemory 432, for storing instructions, such as applications, that are executable by processingcomponent 422. The application programs stored inmemory 432 may include one or more modules that each correspond to a set of instructions. Further, theprocessing component 422 is configured to execute instructions to perform the request processing method according to the first aspect.
Theapparatus 400 may also include apower component 426 configured to perform power management of theapparatus 400, a wired orwireless network interface 450 configured to connect theapparatus 400 to a network, and an input output (I/O)interface 458. Theapparatus 400 may operate based on an operating system stored in thememory 432, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, 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 arequest processing device 500 according to an example embodiment. For example, theapparatus 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, and the like.
Referring to fig. 5, theapparatus 500 may include one or more of the following components: aprocessing component 502, amemory 504, apower component 506, amultimedia component 508, anaudio component 510, an input/output (I/O)interface 512, asensor component 514, and acommunication component 516.
Theprocessing component 502 generally controls overall operation of thedevice 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing components 502 may include one ormore processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 502 can include one or more modules that facilitate interaction between theprocessing component 502 and other components. For example, theprocessing component 502 can include a multimedia module to facilitate interaction between themultimedia component 508 and theprocessing component 502.
Thememory 504 is configured to store various types of data to support operation at thedevice 500. Examples of such data include instructions for any application or method operating ondevice 500, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 504 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The power supply component 507 provides power to the various components of thedevice 500. The power components 507 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for theapparatus 500.
Themultimedia component 508 includes a screen that provides an output interface between thedevice 500 and the user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia 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 thedevice 500 is in an operating 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 a focal length and optical zoom capability.
Theaudio component 510 is configured to output and/or input audio signals. For example,audio component 510 includes a Microphone (MIC) configured to receive external audio signals whenapparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via thecommunication component 516. In some embodiments, audio assembly 55 also includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between theprocessing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor component 514 includes one or more sensors for providing various aspects of state assessment for theapparatus 500. For example, thesensor assembly 514 may detect an open/closed state of thedevice 500, the relative positioning of the components, such as a display and keypad of theapparatus 500, thesensor assembly 514 may also detect a change in the position of theapparatus 500 or a component of theapparatus 500, the presence or absence of user contact with theapparatus 500, orientation or acceleration/deceleration of theapparatus 500, and a change in the temperature of theapparatus 500. Thesensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 516 is configured to facilitate communication between theapparatus 500 and other devices in a wired or wireless manner. Theapparatus 500 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an 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, thecommunication 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, theapparatus 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, micro-controllers, microprocessors or other electronic components for performing the request processing method described in the first aspect.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as thememory 504 comprising instructions, executable by theprocessor 520 of theapparatus 500 to perform the above-described method is also provided. Alternatively, for example, the storage medium may be a non-transitory computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called can be improved.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the request processing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called 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 carry out the request processing method of the first aspect.
The technical scheme provided by the embodiment of the disclosure includes receiving target service identification information of a 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 a 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 which is required to be called and depends on the service 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. Moreover, since 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 the service calling the dependent service which needs to be called 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

CN202011320727.XA2020-11-232020-11-23Request processing method and device, electronic equipment and storage mediumActiveCN114531493B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011320727.XACN114531493B (en)2020-11-232020-11-23Request processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011320727.XACN114531493B (en)2020-11-232020-11-23Request processing method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN114531493Atrue CN114531493A (en)2022-05-24
CN114531493B CN114531493B (en)2024-03-26

Family

ID=81618680

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011320727.XAActiveCN114531493B (en)2020-11-232020-11-23Request processing method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN114531493B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106354566A (en)*2015-07-142017-01-25华为技术有限公司Command processing method and server
CN106982236A (en)*2016-01-182017-07-25阿里巴巴集团控股有限公司A kind of information processing method, device and system
CN109245928A (en)*2018-09-122019-01-18广州视源电子科技股份有限公司Configuration information setting method and device and terminal management system
CN110750415A (en)*2019-09-202020-02-04平安普惠企业管理有限公司Interface service configuration method, device, medium and computer equipment
US20200133795A1 (en)*2018-10-262020-04-30EMC IP Holding Company LLCSmart dynamic restore for kubernetes based applications
CN111385365A (en)*2020-03-232020-07-07广州极晟网络技术有限公司Processing method and device for reported data, computer equipment and storage medium
US20200252332A1 (en)*2019-01-312020-08-06EMC IP Holding Company LLCMethod, electronic device and computer-readable medium for processing data generated by service
CN111930448A (en)*2020-09-232020-11-13南京梦饷网络科技有限公司Method, electronic device, and storage medium for service distribution

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106354566A (en)*2015-07-142017-01-25华为技术有限公司Command processing method and server
CN106982236A (en)*2016-01-182017-07-25阿里巴巴集团控股有限公司A kind of information processing method, device and system
CN109245928A (en)*2018-09-122019-01-18广州视源电子科技股份有限公司Configuration information setting method and device and terminal management system
US20200133795A1 (en)*2018-10-262020-04-30EMC IP Holding Company LLCSmart dynamic restore for kubernetes based applications
US20200252332A1 (en)*2019-01-312020-08-06EMC IP Holding Company LLCMethod, electronic device and computer-readable medium for processing data generated by service
CN110750415A (en)*2019-09-202020-02-04平安普惠企业管理有限公司Interface service configuration method, device, medium and computer equipment
CN111385365A (en)*2020-03-232020-07-07广州极晟网络技术有限公司Processing method and device for reported data, computer equipment and storage medium
CN111930448A (en)*2020-09-232020-11-13南京梦饷网络科技有限公司Method, electronic device, and storage medium for service distribution

Also Published As

Publication numberPublication date
CN114531493B (en)2024-03-26

Similar Documents

PublicationPublication DateTitle
CN110650129B (en)Account login method and device and computer readable storage medium
EP3188066A1 (en)A method and an apparatus for managing an application
CN106033397B (en)Memory buffer area adjusting method, device and terminal
CN109669730B (en)Process keep-alive method, device, electronic equipment and medium
EP3147802B1 (en)Method and apparatus for processing information
CN106851695B (en)Method, device and system for testing network speed
CN105427161A (en)Monetary exchange rate exchange method and device
CN110839073A (en)Method for acquiring push information, method and device for sending push information
CN108804244A (en)Data transmission method for uplink, device and storage medium
CN107562500A (en)Debugging apparatus, method and apparatus
CN113778687A (en) Memory allocation information processing method, device, electronic device and storage medium
CN106708967B (en)Page display method and device
CN115203618B (en)Page processing method and device, electronic equipment and storage medium
CN114780334A (en) Power consumption monitoring method, power consumption monitoring device and storage medium
EP3185515B1 (en)Method and device for inputting information
CN105786561B (en)Method and device for calling process
CN112752328B (en)Network control method, device and storage medium
CN112230982A (en) Material processing method, device, electronic device, and storage medium
CN113127216A (en)Service request processing method, device, server and storage medium
CN114531493B (en)Request processing method and device, electronic equipment and storage medium
CN115390911A (en)Node information determination method, device and equipment
CN109947640B (en)Regression test-based core function coverage statistical method and device
CN114430410A (en)System access method, device and equipment based on virtual domain name
CN112631695A (en)Data verification method and device, electronic equipment and storage medium
CN112182027A (en)Information query method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp