CN113535187B - Service online method, service updating method and service providing method - Google Patents

Service online method, service updating method and service providing method Download PDF

Info

Publication number
CN113535187B
CN113535187B CN202110809245.9A CN202110809245A CN113535187B CN 113535187 B CN113535187 B CN 113535187B CN 202110809245 A CN202110809245 A CN 202110809245A CN 113535187 B CN113535187 B CN 113535187B
Authority
CN
China
Prior art keywords
service
sub
target service
target
services
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
CN202110809245.9A
Other languages
Chinese (zh)
Other versions
CN113535187A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110809245.9A priority Critical patent/CN113535187B/en
Publication of CN113535187A publication Critical patent/CN113535187A/en
Application granted granted Critical
Publication of CN113535187B publication Critical patent/CN113535187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a service online method, a service updating method and a service providing method, which relate to the field of Internet application, in particular to the field of online and updating of Internet application. The specific implementation scheme is as follows: the online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.

Description

Service online method, service updating method and service providing method
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to the field of internet application services.
Background
With the development of internet application technology, internet applications have become more and more powerful, and one internet application generally includes multiple application service functions, and how to implement online and update of the application service functions and how to provide application services for users has become a problem.
Disclosure of Invention
The present disclosure provides a service online method, a service update method, and a service providing method.
According to a first aspect of the present disclosure, there is provided a service online method, including:
when a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received;
and acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource.
According to a second aspect of the present disclosure, there is provided a service update method, including:
when a preset first target service update event occurs, judging whether the first target service update event is a sub-service update or not;
if the first target service update event is a sub-service update, a service update of the first target service is performed based on the new sub-service.
According to a third aspect of the present disclosure, there is provided a service providing method including:
when a service request aiming at a first target service is received, determining service diagram information corresponding to the first target service based on a mapping relation between prestored service and service diagram information, wherein the target service diagram information comprises all sub-services which are required to be executed by the target service and execution logic among the sub-services;
calling based on service diagram information corresponding to the first target service and executing corresponding sub-services according to execution logic among the sub-services;
and determining a target service result based on the execution result of each execution sub-service.
According to a fourth aspect of the present disclosure, there is provided a service online device, including:
the first determining module is used for determining target service map information corresponding to a first target service and storing the target service map information to the server when a preset first target service online event occurs, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received;
And the online processing module is used for acquiring each sub-service resource and carrying out first target service online processing based on each sub-service resource.
According to a fifth aspect of the present disclosure, a service updating apparatus includes:
the first judging module is used for judging whether the first target service updating event is a sub-service updating or not when a preset first target service updating event occurs;
and the updating module is used for updating the service of the first target service based on the new sub-service if the first target service updating event is the sub-service updating.
According to a sixth aspect of the present disclosure, there is provided a service providing apparatus comprising:
the second determining module is used for determining service map information corresponding to the first target service based on a mapping relation between prestored service and service map information when a service request aiming at the first target service is received, wherein the target service map information comprises all sub-services which are required to be executed by the target service and execution logic among the sub-services;
the calling module is used for calling based on the service diagram information corresponding to the first target service and executing corresponding sub-services according to the execution logic between the sub-services;
and the execution module is used for determining a target service result based on the execution result of each execution sub-service.
According to a seventh aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above-described method.
According to a ninth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above method.
The beneficial effects that this disclosure provided technical scheme brought are:
compared with the prior art, when the target service is developed, the scheme provided by the embodiment of the disclosure needs to completely develop all functional modules of the service. When a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received; and then acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource. The online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow diagram of a service online method provided in accordance with the present disclosure;
FIG. 2 is a schematic diagram of the relationship between APP, graph, operator provided in accordance with the present disclosure;
FIG. 3 is a schematic diagram of an operator management system provided in accordance with the present disclosure;
FIG. 4 is an exemplary diagram of a service update method provided in accordance with the present disclosure;
FIG. 5 is an exemplary diagram of a service providing method provided in accordance with the present disclosure;
fig. 6 is a schematic structural diagram of a service online device provided in the present disclosure;
FIG. 7 is a schematic diagram of a service update apparatus provided by the present disclosure;
fig. 8 is a schematic structural view of a service providing apparatus provided according to the present disclosure;
fig. 9 is a block diagram of an electronic device used to implement an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Example 1
Fig. 1 illustrates a service online method provided by an embodiment of the present disclosure, where the service online method may be applied to a server, where the server may be a centrally deployed server or a server deployed in a distributed manner. As shown in fig. 1, the method includes:
step S101, when a scheduled first target service online event occurs, determining target service diagram information corresponding to the first target service and storing the target service diagram information to a server, wherein the target service diagram information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service diagram information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service diagram information when a corresponding target service request is received;
specifically, when the server receives the first target service online request, target service map information corresponding to the first target service can be resolved based on the request information; specifically, the service map information corresponding to the first target service may also occur asynchronously with the online request. The target service map information may include each sub-service that the target service needs to execute, and execution logic between the sub-services (i.e., the execution sequence, the execution condition, etc. of the sub-services).
Wherein, fig. 2 illustrates the relationship among the application APP, the target service and the sub-services, as shown in fig. 2, an application APP may include a plurality of target services, each target service corresponds to a service graph, and the service graph may include a plurality of sub-services and execution logic between the sub-services; the sub-service can be a basic function, a model (such as an artificial intelligent recommendation model, an image recognition model and the like) or an operator code written by a developer; the server can call the corresponding sub-service through the interfaces of the sub-services to realize the corresponding functions.
Step S102, obtaining each sub-service resource, and carrying out first target service online processing based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the online second target service and the first target service, and sub-service resources which are personalized and developed for the first target service.
The target service may be developed based on Python language, or may be developed based on IOS, JAVA, or other languages, which is not limited herein.
Specifically, the sub-service resources include sub-service resources shared by the online second target service and the first target service, so that shared sub-service resources of other target services can be multiplexed; in addition, the sub-service resources further comprise sub-service resources which are developed in an individualized way for the first target service, the sub-service resources which are developed in an individualized way can be stored in corresponding sub-service resource management libraries, the server can acquire corresponding resources of all corresponding sub-services from the sub-service management libraries, the corresponding resources are loaded to the server locally, and then corresponding deployment processing is carried out on the relevant sub-service resources, so that the online of the target service is realized.
FIG. 3 illustrates an example diagram of a sub-service management system, as shown in FIG. 3, that includes a plurality of sub-service resources, wherein individual sub-services may be developed and tested (e.g., gray scale testing, etc.) by independent developers. The related manager can configure the graph, that is, configure the sub-services required to be executed for the target service, including executing those sub-services and the execution sequence of the sub-services, then test the configured graph (such as graph gray level test), and if the test has no problem, can perform subsequent release (that is, the target service is online or deployed).
Compared with the prior art, when the target service is developed, the scheme provided by the embodiment of the disclosure needs to completely develop all functional modules of the service. When a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received; and then acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource. The online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.
The embodiment of the application provides a possible implementation manner, wherein step S102 includes:
step S1021 (not shown), receiving the sent sub-service resources developed for the first target service personalization, and obtaining sub-service resources shared by the online second target service and the first target service from the local server;
specifically, the sub-service resource which is personalized and developed for the first target service can be sent to the server through the sub-service resource management system; the sub-service resources shared by the online second target service and the first target service can be stored locally in the server when other online target services are online, so that all sub-service resources do not need to be loaded, and the data loading amount is reduced; in addition, for the shared sub-service resources, the corresponding sub-service resources stored locally by the server are directly called, and the corresponding sub-service resources do not need to be additionally loaded, so that the redundancy of the sub-service resources stored by the server is avoided.
Step S1022 (not shown in the figure), performing online processing of the first target service based on the received sub-service resources that are developed for the first target service in a personalized manner, and acquiring sub-service resources that are common to the online second target service and the first target service from the local server.
Specifically, based on the sub-service resources developed in a personalized way and the shared sub-service resources, corresponding configuration is carried out, and online processing of the first target service is carried out.
For the embodiment of the application, multiplexing of the sub-service resources shared by the online second target service and the first target service is realized, and in addition, corresponding sub-service resources do not need to be additionally loaded during online, so that redundancy of the sub-service resources stored by the server is avoided.
The embodiment of the application provides a possible implementation manner, wherein the method further comprises the following steps:
step S103 (not shown in the figure), a basic environment file and a configuration file of the first target service applied to the target application are obtained, wherein the basic environment file and the configuration file of the target service are completed by a preset service online configuration framework;
the step S102 of performing the first target service online processing based on each sub-service resource includes:
step S1023 (not shown in the figure), online processing is performed based on each sub-service resource, the acquired basic environment file and the configuration file.
Specifically, the service online needs a corresponding basic environment file and a configuration file, and during online processing, the related file can be acquired, and the configuration processing of the first target service online is performed, for example, the sub-service resource and the basic environment file are decompressed to a corresponding directory, and the like.
The basic environment file and the configuration file of the target service are completed by a preset service online configuration framework; wherein, development and testing of each sub-service are completed by a developer. That is, the basic environment file, the configuration file, of the target service, which may involve a plurality of sub-service contents, is completed by the service-on-line configuration framework, and in particular, may be completed by a specialized person's operation. Therefore, development and testing of the sub-services are completed by a developer, the developer does not need to pay attention to basic environment files and configuration files of the target services, and related basic environment files and configuration files are completed by a service online configuration framework, for example, the development of a plurality of target services is related, and the development efficiency can be more developed due to the independence of labor division.
The embodiment of the application provides a possible implementation manner, wherein the execution logic between the sub-services comprises at least one of the following:
performing serial execution; executing in parallel; the condition selection is performed.
Specifically, the execution logic between sub-services includes at least one of: performing serial execution; executing in parallel; the condition selection is performed. Wherein, the serial execution, namely after the sub-service A is executed, the execution B is executed; parallel execution, i.e. sub-services A/B are executed simultaneously; and selecting execution, wherein the execution condition of the execution A is met, the execution A is executed, the execution condition of the execution B is met, and the execution B is executed.
According to the embodiment of the application, the sub-service execution is controllable.
Example two
According to a second aspect of the present disclosure, there is provided a service update method, as shown in fig. 4, including:
step S401, when a predetermined first target service update event occurs, judging whether the first target service update event is a sub-service update;
in step S402, if the first target service update event is a sub-service update, a service update of the first target service is performed based on the new sub-service.
Specifically, when the server receives an update event for a first target service, the target service update event is parsed, and whether the update event is not updated by a sub-service is determined. If the target service update event is a sub-service update, performing a first target service update based on the new sub-service resource, and not processing other non-update operators. The sub-service update may include, among other things, addition, deletion, modification, etc. of the sub-service.
Specifically, if the target service update event is a graph update (i.e., the update range of the target service is relatively large), the graph update is performed, and the online process of the target service may be re-performed.
For the embodiment of the application, when the first target service update event is a sub-service update, only the updated sub-service is processed, so that the update data processing amount is reduced, and the service update efficiency is improved.
The embodiment of the application provides a possible implementation manner, wherein the target service update based on the new sub-service comprises the following steps:
and acquiring the new sub-service resource file, and replacing the old sub-service resource file based on the new sub-service resource file.
Specifically, if the sub-service is updated, a new sub-service resource can be acquired from the sub-service resource management system, and corresponding update processing is performed, so that the sub-service update of the first target service is realized.
The embodiment of the application provides a possible implementation manner, wherein whether target service diagram information of a second target service which is already online contains a new sub-service is judged;
and if the new sub-service is included, acquiring the resource corresponding to the new sub-service from the local server, and performing service update of the first target service based on the resource corresponding to the new sub-service acquired from the local server.
For the embodiment of the application, if the target service map information of the second target service which is already online contains a new sub-service, the new sub-service is directly called from the local server, so that corresponding resources do not need to be loaded from the sub-service resource management system again, the efficiency of updating the target service is improved, and in addition, the redundancy of sub-service resources stored by the server is reduced.
Example III
The embodiment of the disclosure provides a service providing method, as shown in fig. 5, including:
step S501, when a service request aiming at a first target service is received, service diagram information corresponding to the first target service is determined based on a mapping relation between prestored service and service diagram information, wherein the target service diagram information comprises sub-services which are required to be executed by the target service and execution logic among the sub-services;
specifically, the service request for the first target service may be sent to the smart wearable device through a mobile phone, a web page, a computer, or the like; when a service request is received, the target service request is analyzed, service map information corresponding to the target service is determined based on a mapping relation between prestored service and service map information, and the target service map information comprises operators required to be executed for completing the target service and execution logic between the operators.
Step S502, calling based on service diagram information corresponding to a first target service and executing corresponding sub-services according to execution logic between the sub-services;
specifically, the related sub-service resources may be loaded into the server memory based on predetermined service map information, and then executed according to corresponding execution logic.
Step S503, determining a target service result based on the execution result of each execution sub-service.
Specifically, the target service result may be determined based on the execution result of each corresponding sub-service, and the corresponding service result may be fed back to the corresponding requester, such as to the corresponding terminal device.
For the embodiment of the application, the service providing method based on the sub-service is realized.
The number of times of calling each target service can be counted, and if the number of times of calling is more in the preset time threshold range of the target service and exceeds the preset number of times, the resources corresponding to the target service can be resident in the memory, so that when the request of the target service occurs again, the reflecting efficiency can be improved. Further, in order to fully utilize the memory resources, the first operator resources which are required to be executed and correspond to the target services can be resident in the memory, so that the memory can be effectively utilized, further, the operator resident memories which correspond to the plurality of target services are realized, and the response speed of the plurality of target servers can be improved.
The embodiment of the application provides a possible implementation manner, wherein the execution logic between operators comprises at least one of the following:
Performing serial execution; executing in parallel; the condition selection is performed.
Specifically, the execution logic between sub-services includes at least one of: performing serial execution; executing in parallel; the condition selection is performed. Wherein, the serial execution, namely after the sub-service A is executed, the execution B is executed; parallel execution, i.e. sub-services A/B are executed simultaneously; selecting execution, and executing A if the condition of executing A is met; and B executing if the execution condition of B is met. Thereby realizing control of sub-service execution.
The embodiment of the application provides a possible implementation manner, wherein if the execution logic of the sub-service is conditional selection execution, the method comprises the following steps:
based on the execution result of the executed sub-service, judging whether the current sub-service meets the preset execution condition, and if the execution condition is met, executing the current sub-service.
Specifically, each sub-service is relatively independent, the execution of the subsequent sub-service can be determined according to the execution result of the executed sub-service, and the control of sub-service execution is further realized.
The embodiment of the application provides a possible implementation manner, wherein the method further comprises the following steps:
when it is monitored that the first target service generates an update event and the sub-service to be updated is to be executed, it is determined whether to wait for executing the new sub-service based on the update completion time.
Specifically, when the update event of the target service is monitored and the sub-service to be updated is to be executed, determining the update completion time of the sub-service, if the update completion time is smaller than a threshold value, executing the new sub-service after the update of the sub-service is waited, and if the update time is longer, executing the old sub-service, thereby realizing the balance of providing the latest service and efficiency for the user.
The embodiment of the disclosure provides a service online device, as shown in fig. 6, including:
the first determining module 601 is configured to determine, when a predetermined first target service online event occurs, target service map information corresponding to the first target service and store the target service map information to a server, where the target service map information includes each sub-service that needs to be executed to complete the corresponding target service, and execution logic between the sub-services, and the target service map information is configured to execute, when a corresponding target service request is received, corresponding sub-services according to the execution logic of each sub-service that needs to be executed to complete the corresponding target service based on the target service map information;
the online processing module 602 is configured to obtain each sub-service resource, and perform a first target service online process based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the online second target service and the first target service, and sub-service resources which are personalized and developed for the first target service.
The embodiment of the disclosure provides a possible implementation manner, wherein the online processing module comprises:
the receiving unit is used for receiving the sent sub-service resources which are developed for the first target service in a personalized way and acquiring sub-service resources shared by the online second target service and the first target service from the local server;
the online unit is used for carrying out online processing of the first target service based on the received sub-service resources which are developed for the first target service in a personalized way and acquiring sub-service resources shared by the online second target service and the first target service from the local server.
The disclosed embodiments provide a possible implementation, wherein the apparatus 60 further includes:
the first acquisition module is used for acquiring a basic environment file and a configuration file of a first target service applied to the target application, wherein the basic environment file and the configuration file of the target service are completed by a preset service online configuration framework;
the online processing module is specifically used for carrying out online processing based on each sub-service resource, the acquired basic environment file and the acquired configuration file.
The disclosed embodiments provide a possible implementation, wherein the execution logic between operators includes at least one of:
Performing serial execution; executing in parallel; the condition selection is performed.
The beneficial effects of the embodiments of the present application are the same as those of the method of the above embodiments, and are not repeated here.
Example five
The disclosed embodiments provide a service updating apparatus 70, the apparatus 70 comprising:
a first determining module 701, configured to determine, when a predetermined first target service update event occurs, whether the first target service update event is a sub-service update;
the updating module 702 is configured to perform service update of the first target service based on the new sub-service if the first target service update event is a sub-service update.
The embodiment of the present disclosure provides a possible implementation manner, where the update module 702 is specifically further configured to obtain a new sub-service resource, and perform target service update based on the new sub-service resource.
The embodiment of the disclosure provides a possible implementation manner, wherein the device further comprises:
the second judging module is used for judging whether the target service diagram information of the second target service which is online already contains a new sub-service or not;
and the second acquisition module is used for acquiring resources corresponding to the new sub-service from the local server if the new sub-service is included, and carrying out service update of the first target service based on the resources corresponding to the new sub-service acquired from the local server.
For the embodiment of the present application, the beneficial effects achieved by the embodiment of the present application are the same as those of the embodiment of the method described above, and are not described herein again.
Example six
The disclosed embodiments provide a service providing apparatus 80, comprising:
a second determining module 801, configured to determine, when a service request for a first target service is received, service map information corresponding to the first target service based on a mapping relationship between a pre-stored service and service map information, where the target service map information includes sub-services that need to be executed for completing the target service, and execution logic between the sub-services;
a calling module 802, configured to call and execute corresponding sub-services according to execution logic between the sub-services based on service map information corresponding to the first target service;
an execution module 803 is configured to determine a target service result based on the execution result of each execution sub-service.
The embodiment of the application provides a possible implementation manner, wherein the execution logic between the sub-services comprises at least one of the following:
performing serial execution; executing in parallel; the condition selection is performed.
The embodiment of the application provides a possible implementation manner, wherein the execution module determines whether to wait for executing a new sub-service based on the update completion time when the execution module specifically monitors that the first target service has an update event and the sub-service to be updated is to be executed.
For the embodiment of the present application, the beneficial effects achieved by the embodiment are the same as those of the third embodiment, and will not be described herein.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods as provided by the embodiments of the present disclosure.
Compared with the prior art, when the electronic equipment is developed aiming at the target service, a developer needs to completely develop all functional modules of the service. When a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received; and then acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource. The online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.
The readable storage medium is in contrast to the prior art where a developer needs to fully develop all of the functional modules of a service when developing for a target service. When a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received; and then acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource. The online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.
The computer program product comprises a computer program which, when executed by a processor, implements a method as shown in the first aspect of the disclosure.
The computer program product is in contrast to the prior art, in which a developer needs to completely develop all functional modules of a service when developing for a target service. When a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received; and then acquiring each sub-service resource, and carrying out first target service online processing based on each sub-service resource. The online target service is split into a plurality of sub-services, so that the sub-services of the target service can be independently developed and tested, and the online efficiency of target service development can be improved; in addition, the different target services may include the same sub-services, so that when the service development is performed, the sub-services already developed by the previous online service can be directly utilized, the multiplexing rate of the sub-services can be improved, and further the development efficiency and the online efficiency can be improved.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM902, and the RAM 903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, or the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the respective methods and processes described above, such as a service online method, a service update method, or a service provision method. For example, in some embodiments, the method service online method, service update method, or service provision method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the method service online method, service update method, or service providing method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the method service online method, the service update method, or the service provision method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (15)

1. A service online method is applied to a server and comprises the following steps:
when a preset first target service online event occurs, determining target service map information corresponding to the first target service and storing the target service map information to a server, wherein the target service map information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service map information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service map information when a corresponding target service request is received;
Receiving sent sub-service resources which are developed in a personalized way for the first target service, and acquiring sub-service resources shared by the online second target service and the first target service from a local server;
based on the received sub-service resources which are developed for the first target service in a personalized way, and sub-service resources which are shared by the second target service and the first target service which are online are acquired from a local server, the online processing of the first target service is carried out; the sub-service resources comprise sub-service resources shared by the online second target service and the first target service, and sub-service resources which are personalized and developed for the first target service.
2. The method of claim 1, wherein the method further comprises:
acquiring a basic environment file and a configuration file of the first target service applied to the target application, wherein the basic environment file and the configuration file of the target service are completed by a preset service online configuration framework;
the first target service online processing based on each sub-service resource comprises the following steps:
and carrying out online processing based on the sub-service resources and the acquired basic environment files and configuration files.
3. The method of claim 1, wherein execution logic between sub-services comprises at least one of:
performing serial execution; executing in parallel; the condition selection is performed.
4. A service update method, comprising:
when a preset first target service update event occurs, judging whether the first target service update event is a sub-service update or not;
if the first target service update event is a sub-service update, performing service update of the first target service based on a new sub-service;
judging whether the target service map information of the second target service which is already online contains the new sub-service or not;
and if the new sub-service is included, acquiring resources corresponding to the new sub-service from a local server, and updating the service of the first target service based on the resources corresponding to the new sub-service acquired from the local server.
5. The method of claim 4, wherein the target service update based on the new sub-service comprises:
and acquiring the new sub-service resources, and updating the target service based on the new sub-service resources.
6. A service providing method, comprising:
when a service request aiming at a first target service is received, determining service diagram information corresponding to the first target service based on a mapping relation between prestored service and service diagram information, wherein the target service diagram information comprises all sub-services which are required to be executed by the target service and execution logic among the sub-services, and the first target service adopts the method of any one of claims 1-5;
Calling based on the service diagram information corresponding to the first target service and executing corresponding sub-services according to execution logic among the sub-services;
and determining a target service result based on the execution result of each execution sub-service.
7. The method of claim 6, wherein execution logic between sub-services comprises at least one of:
performing serial execution; executing in parallel; the condition selection is performed.
8. The method according to claim 6 or 7, wherein the method further comprises:
when it is monitored that the first target service has an update event and a sub-service to be updated is to be executed, it is determined whether to wait for a new sub-service to be executed based on an update completion time.
9. A service online device, comprising:
the first determining module is used for determining target service graph information corresponding to a first target service and storing the target service graph information to a server when a preset first target service online event occurs, wherein the target service graph information comprises all sub-services which are required to be executed by the corresponding target service and execution logic among the sub-services, and the target service graph information is used for executing the corresponding sub-services according to the execution logic of all the sub-services which are required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received;
The online processing module is used for receiving the sent sub-service resources which are developed in a personalized way for the first target service and acquiring sub-service resources shared by the online second target service and the first target service from the local server; based on the received sub-service resources which are developed for the first target service in a personalized way, and sub-service resources which are shared by the second target service and the first target service which are online are acquired from a local server, the online processing of the first target service is carried out; the sub-service resources comprise sub-service resources shared by the online second target service and the first target service, and sub-service resources which are personalized and developed for the first target service.
10. A service updating apparatus comprising:
the first judging module is used for judging whether the first target service updating event is a sub-service updating or not when a preset first target service updating event occurs;
the updating module is used for updating the service of the first target service based on the new sub-service if the first target service updating event is the sub-service updating;
the second judging module is used for judging whether the target service diagram information of the second target service which is online already contains the new sub-service or not;
And the second acquisition module is used for acquiring resources corresponding to the new sub-service from the local server if the new sub-service is included, and carrying out service update of the first target service based on the resources corresponding to the new sub-service acquired from the local server.
11. A service providing apparatus comprising:
a second determining module, configured to determine, when a service request for a first target service is received, service map information corresponding to the first target service based on a mapping relationship between a pre-stored service and service map information, where the target service map information includes execution logic of each sub-service and sub-service that needs to be executed for completing the target service, where the first target service adopts the method of any one of claims 1 to 5;
the calling module is used for calling based on the service diagram information corresponding to the first target service and executing corresponding sub-services according to execution logic among the sub-services;
and the execution module is used for determining a target service result based on the execution result of each execution sub-service.
12. The apparatus of claim 11, wherein execution logic between sub-services comprises at least one of:
performing serial execution; executing in parallel; the condition selection is performed.
13. The device according to claim 11 or 12, wherein,
the execution module is specifically configured to determine, when it is monitored that the first target service has an update event and a sub-service to be updated is to be executed, whether to wait for executing a new sub-service based on an update completion time.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
15. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-8.
CN202110809245.9A 2021-07-16 2021-07-16 Service online method, service updating method and service providing method Active CN113535187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110809245.9A CN113535187B (en) 2021-07-16 2021-07-16 Service online method, service updating method and service providing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110809245.9A CN113535187B (en) 2021-07-16 2021-07-16 Service online method, service updating method and service providing method

Publications (2)

Publication Number Publication Date
CN113535187A CN113535187A (en) 2021-10-22
CN113535187B true CN113535187B (en) 2024-03-22

Family

ID=78100027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110809245.9A Active CN113535187B (en) 2021-07-16 2021-07-16 Service online method, service updating method and service providing method

Country Status (1)

Country Link
CN (1) CN113535187B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006015628A2 (en) * 2004-08-13 2006-02-16 Ntt Docomo, Inc. Networked system for automatic trading of personalized assets
CN109408242A (en) * 2018-11-13 2019-03-01 郑州云海信息技术有限公司 Inserting method and device on a kind of server resource
CN112036974A (en) * 2020-07-30 2020-12-04 五八到家有限公司 Service commodity online method, device, equipment and storage medium
EP3819764A2 (en) * 2020-09-29 2021-05-12 Beijing Baidu Netcom Science And Technology Co. Ltd. Service information processing method, apparatus, device and computer storage medium
CN112947965A (en) * 2021-03-01 2021-06-11 北京百度网讯科技有限公司 Containerized service updating method and device
CN113114588A (en) * 2021-04-14 2021-07-13 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277596A1 (en) * 2005-06-06 2006-12-07 Calvert Peter S Method and system for multi-instance session support in a load-balanced environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006015628A2 (en) * 2004-08-13 2006-02-16 Ntt Docomo, Inc. Networked system for automatic trading of personalized assets
CN109408242A (en) * 2018-11-13 2019-03-01 郑州云海信息技术有限公司 Inserting method and device on a kind of server resource
CN112036974A (en) * 2020-07-30 2020-12-04 五八到家有限公司 Service commodity online method, device, equipment and storage medium
EP3819764A2 (en) * 2020-09-29 2021-05-12 Beijing Baidu Netcom Science And Technology Co. Ltd. Service information processing method, apparatus, device and computer storage medium
CN112947965A (en) * 2021-03-01 2021-06-11 北京百度网讯科技有限公司 Containerized service updating method and device
CN113114588A (en) * 2021-04-14 2021-07-13 百度在线网络技术(北京)有限公司 Data processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邯郸卷烟零售终端服务平台的设计和应用;邸辉;;企业科技与发展;20180710(07);全文 *

Also Published As

Publication number Publication date
CN113535187A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN110765024B (en) Simulation test method, simulation test device, electronic equipment and computer readable storage medium
CN113961311A (en) Service data processing method, device, electronic equipment and medium
CN114816393B (en) Information generation method, device, equipment and storage medium
CN113050940A (en) Method for previewing small program, related device and computer program product
CN113641388A (en) Cloud mobile phone updating method, related device and computer program product
CN113535187B (en) Service online method, service updating method and service providing method
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN116302271A (en) Page display method and device and electronic equipment
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN113760487B (en) Service processing method and device
CN113419865A (en) Cloud resource processing method, related device and computer program product
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN114265692A (en) Service scheduling method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN112540804A (en) Applet running method and device, electronic equipment and medium
CN113515328A (en) Page rendering method and device, electronic equipment and storage medium
CN112905270A (en) Workflow implementation method, device, platform, electronic equipment and storage medium
CN113779122A (en) Method and apparatus for exporting data
CN113900734B (en) Application program file configuration method, device, equipment and storage medium
CN115495312B (en) Service request processing method and device
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN114116487B (en) Pressure testing method and device, electronic equipment and storage medium

Legal Events

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