CN113535187A - 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
CN113535187A
CN113535187A CN202110809245.9A CN202110809245A CN113535187A CN 113535187 A CN113535187 A CN 113535187A CN 202110809245 A CN202110809245 A CN 202110809245A CN 113535187 A CN113535187 A CN 113535187A
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.)
Granted
Application number
CN202110809245.9A
Other languages
Chinese (zh)
Other versions
CN113535187B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a service online method, a service update method and a service providing method, which relate to the field of internet applications, and in particular to the field of online and update of internet applications. The specific implementation scheme is as follows: splitting the target service on line into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service on line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service 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 service technologies.
Background
With the development of internet application technology, the functions of internet applications become more and more powerful, and an internet application usually includes a plurality of application service functions, and how to realize the online and updating of the application service functions and how to provide application services for users becomes a problem.
Disclosure of Invention
The disclosure provides a service online method, a service updating 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 graph information corresponding to the first target service and storing the target service graph information to a server, wherein the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received;
and acquiring each sub-service resource, and performing online processing on the first target service 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 updating event occurs, judging whether the first target service updating event is a sub-service updating event;
and if the first target service updating event is the sub-service updating, performing the service updating of the first target service 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 graph information corresponding to the first target service based on a mapping relation between a pre-stored service and the service graph information, wherein the target service graph information comprises each sub-service required to be executed by the target service and execution logic among the sub-services;
calling and executing corresponding sub-services according to execution logic among the sub-services based on the service graph information corresponding to the first target service;
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 getting on line device, including:
the system comprises a first determining module, a second determining module and a server, wherein 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 the server when a preset first target service online event occurs, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received;
and the online processing module is used for acquiring each sub-service resource and performing online processing on the first target service based on each sub-service resource.
According to a fifth aspect of the present disclosure, a service update apparatus includes:
the first judgment module is used for judging whether a first target service update event is a sub-service update or not when the preset first target service update 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 including:
the second determining module is used for determining service graph information corresponding to the first target service based on a mapping relation between a pre-stored service and the service graph information when receiving a service request aiming at the first target service, wherein the target service graph information comprises each sub-service 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 graph 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.
According to a seventh aspect of the present disclosure, there is provided an electronic apparatus 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 having stored thereon computer instructions for causing a computer to perform the above 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 technical scheme provided by the disclosure has the following beneficial effects:
compared with the prior art that when the target service is developed, developers need to completely develop all functional modules of the service, the scheme provided by the embodiment of the disclosure is provided. The method comprises the steps that when a preset first target service online event occurs, target service graph information corresponding to a first target service is determined and stored in a server, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received; and then, acquiring each sub-service resource, and performing online processing on the first target service based on each sub-service resource. The target service which is going to be on-line is split into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service to be on-line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service can be improved, and further, the development efficiency and the online efficiency can be improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic flow diagram of a method for online servicing provided in accordance with the present disclosure;
FIG. 2 is a schematic diagram of relationships between APP and graphs and operators 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 provisioning method provided in accordance with the present disclosure;
FIG. 6 is a schematic diagram of a service bring-on device according to 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 diagram of a service providing apparatus provided according to the present disclosure;
FIG. 9 is a block diagram of an electronic device used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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 one
Fig. 1 shows a service on-line method provided by the embodiment of the present disclosure, where the service on-line method may be applied to a server, where the server may be a server deployed centrally 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 graph information corresponding to the first target service and storing the target service graph information to a server, wherein the target service graph information comprises each sub-service 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-service according to the execution logic of each sub-service required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received;
specifically, when the server receives a first target service on-line request, target service graph information corresponding to the first target service may be analyzed based on the request information; specifically, the service graph information corresponding to the first target service may also occur asynchronously with the online request. The target service graph information may include each sub-service that the target service needs to execute, and execution logic between the sub-services (i.e., a sequence of execution of the sub-services, an execution condition, and the like).
Fig. 2 introduces relationships among applications APP, target services, and 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 among the sub-services; the sub-service can be a basic function, a model (such as an artificial intelligence 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 interface of each sub-service to realize the corresponding function.
Step S102, acquiring each sub-service resource, and performing on-line processing on a first target service based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the second target service and the first target service which are online and sub-service resources developed in a personalized mode aiming at the first target service.
The target service may be developed based on Python language, or may be developed based on other languages such as IOS and JAVA, which is not limited in this disclosure.
Specifically, the sub-service resource comprises a sub-service resource shared by the second target service and the first target service which are online, so that shared sub-service resources of other target services can be reused; in addition, the sub-service resources also include sub-service resources developed in a personalized manner for the first target service, the sub-service resources developed in a personalized manner can be stored in corresponding sub-service resource management libraries, the server can acquire resources corresponding to each corresponding sub-service from the sub-service management libraries, load the resources to the local server, and then perform corresponding deployment processing on the related sub-service resources to achieve online of the target service.
Fig. 3 shows an exemplary diagram of a sub-service management system, and as shown in fig. 3, the sub-service resource management system includes a plurality of sub-service resources, wherein each individual sub-service can be developed and tested (e.g., gray scale test, etc.) by an independent developer. The relevant manager may perform graph configuration, that is, configure the sub-services to be executed by the target service, including executing those sub-services and the execution sequence of the sub-services, and then test the configured graph (for example, graph grayscale test), and if there is no problem in the test, may perform subsequent release (that is, online or deployment of the target service).
Compared with the prior art that when the target service is developed, developers need to completely develop all functional modules of the service, the scheme provided by the embodiment of the disclosure is provided. The method comprises the steps that when a preset first target service online event occurs, target service graph information corresponding to a first target service is determined and stored in a server, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received; and then, acquiring each sub-service resource, and performing online processing on the first target service based on each sub-service resource. The target service which is going to be on-line is split into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service to be on-line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service can be improved, and further, the development efficiency and the online efficiency can be improved.
The embodiment of the present application provides a possible implementation manner, where step S102 includes:
step S1021 (not shown in the figure), receiving the sent sub-service resource developed individually for the first target service, and acquiring the sub-service resource shared by the online second target service and the first target service from the local server;
specifically, the sub-service resources personalized and developed for the first target service may be sent to the server through the sub-service resource management system; the sub-service resources shared by the second target service which is online and the first target service can be locally stored in the server when other target services which are online, so that all the sub-service resources are not required to be loaded, and the data loading capacity is reduced; in addition, for the common sub-service resources, the corresponding sub-service resources stored locally by the server can be directly called, so that the corresponding sub-service resources do not need to be loaded additionally, and the redundancy of the sub-service resources stored by the server is avoided.
Step S1022 (not shown in the figure), based on the received sub-service resource that is personalized and developed for the first target service, and the sub-service resource that is obtained from the local server and is shared by the second target service that is online and the first target service, the online processing of the first target service is performed.
Specifically, corresponding configuration is performed based on the sub-service resources developed individually and the common sub-service resources, and online processing of the first target service is performed.
According to the embodiment of the application, the sharing of the sub-service resources shared by the second target service and the first target service which are online is realized, and in addition, when online, 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.
The embodiment of the present application provides a possible implementation manner, wherein the method further includes:
step S103 (not shown in the figure), acquiring a basic environment file and a configuration file of the first target service applied to the target application, where the basic environment file and the configuration file of the target service are completed by a predetermined service on-line configuration framework;
the step S102 of performing a first target service online process based on each sub-service resource includes:
step S1023 (not shown in the figure), perform online processing based on each sub-service resource, the obtained 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 relevant file can be acquired to perform online configuration processing of the first target service, such as decompressing the sub-service resource and the basic environment file to a corresponding directory.
Wherein, the basic environment file and the configuration file of the target service are completed by a preset service on-line configuration frame; wherein, the development and the test of each sub-service are completed by a developer. Namely, the basic environment file and the configuration file of the target service possibly related to a plurality of sub-service contents are completed by the service on-line configuration framework, and particularly, can be completed by the operation of special personnel. Therefore, the development and the test of the sub-services are completed by a developer, the developer does not need to pay attention to the basic environment files and the configuration files of the target services, the related basic environment files and the related configuration files are completed by the on-line configuration framework of the services, and the development efficiency can be better shown due to independent labor division if the development of a plurality of target services is involved.
The embodiment of the present application provides a possible implementation manner, wherein the execution logic between the sub-services includes at least one of the following:
executing in series; executing in parallel; and (4) performing conditional selection.
In particular, the execution logic between the sub-services comprises at least one of: executing in series; executing in parallel; and (4) performing conditional selection. Wherein, the serial execution is that after the sub-service A is executed, the B is executed; parallel execution, namely the sub-services A/B are executed simultaneously; and selecting execution, wherein if the execution condition of A is met, A is executed, and if the execution condition of B is met, B is executed.
According to the embodiment of the application, the execution of the sub-service 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;
step S402, if the first target service updating event is the sub-service updating, the service updating of the first target service is carried out 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 analyzed, and whether the update event is not updated by a sub-service is determined. And if the target service updating event is the sub-service updating, performing first target service updating based on the new sub-service resource, and not processing other non-updating operators. Wherein the sub-service update may include 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 executed, and the online processing of the target service can be executed again.
For the embodiment of the application, when the first target service update event is the sub-service update, the updated sub-service is only processed, so that the update data processing amount is reduced, and the service update efficiency is improved.
The embodiment of the present application provides a possible implementation manner, wherein updating a target service based on a new sub-service includes:
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, the new sub-service resource can be obtained 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 the target service graph information of the second online target service contains a new sub-service is judged;
and if the new sub-service is contained, acquiring the resource corresponding to the new sub-service from the local server, and updating the service 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 graph information of the second online target service contains the 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 updating efficiency of the target service is improved, and in addition, the redundancy of the sub-service resources stored by the server is reduced.
EXAMPLE III
An embodiment of the present 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 graph information corresponding to the first target service is determined based on a mapping relation between pre-stored services and service graph information, wherein the target service graph information comprises each sub-service 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 through a mobile phone, a web page, a computer, an intelligent wearable device, or the like; when a service request is received, analyzing the target service request, and determining service graph information corresponding to the target service based on a mapping relation between a pre-stored service and the service graph information, wherein the target service graph information comprises operators required to be executed by the target service and execution logic among the operators.
Step S502, calling and executing corresponding sub-services according to execution logic among the sub-services based on the service graph information corresponding to the first target service;
specifically, the first-level sub-service resource may be loaded to the server memory based on the predetermined service graph information, and then executed according to the corresponding execution logic.
In step S503, a target service result is determined 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 requesting party, such as to the corresponding terminal device.
For the embodiment of the application, the method for providing the service based on the sub-service is realized.
And if the calling times of the target services are more within the preset time threshold range and exceed the preset times, resources corresponding to the target services can be resident in the memory, so that the reflection efficiency can be improved when the request of the target services occurs again. Furthermore, in order to fully utilize the memory resources, the first operator resources which are needed to be executed and correspond to the target services can be resident in the memory, so that the memory can be effectively utilized, the operator resident memories corresponding to the target services are further realized, and the response speed of the target servers can be improved.
The embodiment of the present application provides a possible implementation manner, where the execution logic between operators includes at least one of the following:
executing in series; executing in parallel; and (4) performing conditional selection.
In particular, the execution logic between the sub-services comprises at least one of: executing in series; executing in parallel; and (4) performing conditional selection. Wherein, the serial execution is that after the sub-service A is executed, the B is executed; parallel execution, namely the sub-services A/B are executed simultaneously; selecting execution, if the execution condition of A is met, executing A; and B is executed if the execution condition of B is met. Thereby realizing control of execution of the sub-service.
The embodiment of the present application provides a possible implementation manner, wherein if the execution logic of the sub-service is conditional execution, the method includes:
and judging whether the current sub-service meets a preset execution condition or not based on the execution result of the executed sub-service, and executing the current sub-service if the execution condition is met.
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 the execution of the sub-service is further realized.
The embodiment of the present application provides a possible implementation manner, wherein the method further includes:
and when the first target service is monitored to generate an updating event and the sub-service to be updated is to be executed, determining whether to wait to execute a new sub-service or not based on the updating completion time.
Specifically, when it is monitored that the target service has an update event and a sub-service to be updated is to be executed, the update completion time of the sub-service is determined, if the update completion time is less than a threshold value, a new sub-service is executed after the sub-service is updated, and if the update time is longer, an old sub-service is executed, so that balance between providing the latest service and efficiency for the user is realized.
An embodiment of the present disclosure provides a service getting on line device, as shown in fig. 6, including:
a first determining module 601, configured to determine, when a predetermined first target service online event occurs, target service graph information corresponding to the first target service and store the target service graph information to a server, where the target service graph information includes sub-services that need to be executed to complete a corresponding target service and execution logic between the sub-services, and the target service graph information is used, when a corresponding target service request is received, to execute the corresponding sub-service 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 graph information;
an online processing module 602, configured to obtain each sub-service resource, and perform online processing on a first target service based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the second target service and the first target service which are online and sub-service resources developed in a personalized mode aiming at the first target service.
The embodiment of the present disclosure provides a possible implementation manner, wherein the online processing module includes:
the receiving unit is used for receiving the sent sub-service resources which are developed in a personalized mode aiming at the first target service, and acquiring the sub-service resources shared by the second target service and the first target service which are online from the local server;
and the online unit is used for acquiring online sub-service resources shared by the second target service and the first target service from the local server based on the received sub-service resources developed in a personalized manner aiming at the first target service, and performing online processing on the first target service.
The embodiment of the present disclosure provides a possible implementation manner, wherein the apparatus 60 further includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a basic environment file and a configuration file of a first target service applied to a target application, and the basic environment file and the configuration file of the target service are completed by a preset service on-line configuration framework;
and the online processing module is specifically used for performing online processing based on each sub-service resource and the acquired basic environment file and configuration file.
The embodiment of the present disclosure provides a possible implementation manner, where the execution logic between operators includes at least one of the following:
executing in series; executing in parallel; and (4) performing conditional selection.
The beneficial effects of the embodiment of the present application are the same as the beneficial effects of the method of the embodiment described above, and are not described herein again.
EXAMPLE five
The disclosed embodiment provides a service updating apparatus 70, and the apparatus 70 includes:
a first determining module 701, configured to determine whether a first target service update event is a sub-service update when the predetermined first target service update event occurs;
an updating module 702, configured to perform service updating for the first target service based on the new sub-service if the first target service updating event is a sub-service updating.
The embodiment of the present disclosure provides a possible implementation manner, wherein the updating module 702 is further configured to specifically acquire a new sub-service resource, and update the target service based on the new sub-service resource.
The embodiment of the present disclosure provides a possible implementation manner, wherein the apparatus further includes:
the second judgment module is used for judging whether the target service graph information of the second target service which is on-line contains new sub-services or not;
and the second obtaining module is used for obtaining the resource corresponding to the new sub-service from the local server if the new sub-service is included, and updating the service of the first target service based on the resource corresponding to the new sub-service obtained 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 embodiment provides a service providing device 80, which includes:
a second determining module 801, configured to, when a service request for a first target service is received, determine, based on a mapping relationship between a pre-stored service and service graph information, service graph information corresponding to the first target service, where the target service graph information includes each sub-service that needs to be executed to complete the target service, and execution logic between the sub-services;
a calling module 802, configured to call and execute a corresponding sub-service according to an execution logic between the sub-services based on the service graph information corresponding to the first target service;
and the execution module 803 is used for determining a target service result based on the execution result of each execution sub-service.
The embodiment of the present application provides a possible implementation manner, wherein the execution logic between the sub-services includes at least one of the following:
executing in series; executing in parallel; and (4) performing conditional selection.
The embodiment of the present application provides a possible implementation manner, wherein the execution module, specifically when it is monitored that the first target service has an update event and the sub-service to be updated is to be executed, determines whether to wait to execute the new sub-service based on the update completion time.
For the embodiment of the present application, the beneficial effects achieved by the embodiment are the same as those of the third embodiment, and details are not described here.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
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 method 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, developers need to completely develop all functional modules of the service. The method comprises the steps that when a preset first target service online event occurs, target service graph information corresponding to a first target service is determined and stored in a server, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received; and then, acquiring each sub-service resource, and performing online processing on the first target service based on each sub-service resource. The target service which is going to be on-line is split into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service to be on-line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service can be improved, and further, the development efficiency and the online efficiency can be improved.
The readable storage medium is compared with the prior art that when the development is carried out on the target service, a developer needs to completely develop all functional modules of the service. The method comprises the steps that when a preset first target service online event occurs, target service graph information corresponding to a first target service is determined and stored in a server, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received; and then, acquiring each sub-service resource, and performing online processing on the first target service based on each sub-service resource. The target service which is going to be on-line is split into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service to be on-line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service can be improved, and further, the development efficiency and the online efficiency can be improved.
The computer program product comprising a computer program which, when executed by a processor, implements a method as shown in the first aspect of the disclosure.
Compared with the prior art, when the computer program product is developed aiming at the target service, developers need to completely develop all functional modules of the service. The method comprises the steps that when a preset first target service online event occurs, target service graph information corresponding to a first target service is determined and stored in a server, the target service graph information comprises sub-services 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 the sub-services required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received; and then, acquiring each sub-service resource, and performing online processing on the first target service based on each sub-service resource. The target service which is going to be on-line is split into a plurality of sub-services, so that the sub-services of the target service can be relatively independently developed and tested, and the efficiency of developing the target service to be on-line can be improved; in addition, different target services may include the same sub-service, so that when service development is performed, the sub-service developed by the previous online service can be directly utilized, the reuse rate of the sub-service can be improved, and further, the development efficiency and the online efficiency can be improved.
FIG. 9 illustrates a schematic block diagram of an example electronic device 900 that can 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples 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, which can perform various appropriate actions and processes in accordance with 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 calculation unit 901, ROM902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
A number of components in the device 900 are connected to the I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, and 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, optical disk, or the like; and a communication unit 909 such as a network card, a modem, a wireless communication transceiver, and 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 telecommunication 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 the computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 901 performs the respective methods and processes described above, such as a service online method, a service update method, or a service providing method. For example, in some embodiments, the method service online method, the service update method, or the service provisioning method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 900 via ROM902 and/or communications unit 909. When loaded into RAM 903 and executed by computing unit 901, may perform one or more steps of the above described method service bring-up method, service update method or service provision method. Alternatively, in other embodiments, the computing unit 901 may be configured by any other suitable means (e.g., by means of firmware) to perform a method-service-on-line method, a service update method, or a service provision method.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (20)

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 graph information corresponding to a first target service and storing the target service graph information to a server, wherein the target service graph information comprises each sub-service 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-service according to the execution logic of each sub-service required to be executed by the corresponding target service based on the target service graph information when a corresponding target service request is received;
acquiring each sub-service resource, and performing on-line processing on a first target service based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the second target service and the first target service which are online and sub-service resources developed for the first target service in a personalized mode.
2. The method of claim 1, wherein the obtaining of each sub-service resource and performing online processing of the first target service based on each sub-service resource comprises:
receiving the sent sub-service resources which are developed aiming at the first target service in a personalized manner, and acquiring the sub-service resources shared by the second target service and the first target service which are online from the local server;
and based on the received sub-service resources which are developed in a personalized way aiming at the first target service, and the sub-service resources which are shared by the second target service and the first target service and are online are obtained from the local server, and the online processing of the first target service is carried out.
3. 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 a target application, wherein the basic environment file and the configuration file of the target service are completed by a preset service on-line configuration framework;
the performing of the on-line processing of the first target service based on each sub-service resource comprises:
and performing online processing based on the sub-service resources and the acquired basic environment file and configuration file.
4. The method of claim 1, wherein the execution logic between sub-services comprises at least one of:
executing in series; executing in parallel; and (4) performing conditional selection.
5. A service update method, comprising:
when a preset first target service updating event occurs, judging whether the first target service updating event is a sub-service updating event or not;
and if the first target service updating event is sub-service updating, performing service updating of the first target service based on a new sub-service.
6. The method of claim 5, wherein the performing a target service update based on the new sub-service comprises:
and acquiring new sub-service resources, and updating the target service based on the new sub-service resources.
7. The method of claim 5, wherein the method further comprises:
judging whether the target service graph information of the second online target service contains the new sub-service or not;
and if the new sub-service is contained, acquiring the resource corresponding to the new sub-service from the local server, and updating the service of the first target service based on the resource corresponding to the new sub-service acquired from the local server.
8. A service providing method, comprising:
when a service request aiming at a first target service is received, determining service graph information corresponding to the first target service based on a mapping relation between pre-stored services and service graph information, wherein the target service graph information comprises execution logics among sub-services required to be executed by the target service;
calling and executing corresponding sub-services according to execution logic among the sub-services based on the service graph information corresponding to the first target service;
and determining a target service result based on the execution result of each execution sub-service.
9. The method of claim 8, wherein the execution logic between sub-services comprises at least one of:
executing in series; executing in parallel; and (4) performing conditional selection.
10. The method according to any one of claims 8-9, wherein the method further comprises:
and when the first target service is monitored to generate an updating event and a sub-service to be updated is to be executed, determining whether to wait to execute a new sub-service or not based on the updating completion time.
11. A service bring-on-line apparatus comprising:
the system comprises a first determining module, a second determining module and a server, wherein 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 the server when a preset first target service online event occurs, the target service graph information comprises sub-services 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 the sub-services 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 acquiring each sub-service resource and performing online processing on the first target service based on each sub-service resource; the sub-service resources comprise sub-service resources shared by the second target service and the first target service which are online and sub-service resources developed for the first target service in a personalized mode.
12. The apparatus of claim 11, wherein the online processing module comprises:
the receiving unit is used for receiving the sent sub-service resources which are developed in a personalized mode aiming at the first target service, and acquiring the sub-service resources shared by the second target service and the first target service which are online from the local server;
and the online unit is used for acquiring online sub-service resources shared by the second target service and the first target service from the local server based on the received sub-service resources developed in a personalized manner aiming at the first target service, and performing online processing on the first target service.
13. A service update apparatus comprising:
the first judgment module is used for judging whether a preset first target service update event is a sub-service update or not when the preset first target service update event occurs;
and the updating module is used for updating the service of the first target service based on a new sub-service if the first target service updating event is a sub-service update.
14. The apparatus of claim 13, wherein the apparatus further comprises:
the second judgment module is used for judging whether the target service graph information of the second target service which is on-line contains the new sub-service;
and the second obtaining module is used for obtaining the resource corresponding to the new sub-service from the local server if the new sub-service is included, and updating the service of the first target service based on the resource corresponding to the new sub-service obtained from the local server.
15. A service providing apparatus comprising:
a second determining module, configured to determine, when a service request for a first target service is received, service graph information corresponding to the first target service based on a mapping relationship between a pre-stored service and the service graph information, where the target service graph information includes sub-services that need to be executed to complete the target service, and execution logic between the sub-services;
the calling module is used for calling based on the service graph 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.
16. The apparatus of claim 15, wherein the execution logic between sub-services comprises at least one of:
executing in series; executing in parallel; and (4) performing conditional selection.
17. The apparatus of claim 15, wherein,
the execution module is specifically configured to determine whether to wait to execute a new sub-service based on the update completion time when it is monitored that the first target service has an update event and the sub-service to be updated is to be executed.
18. 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-10.
19. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-10.
20. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-10.
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 true CN113535187A (en) 2021-10-22
CN113535187B 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 (7)

* 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
US20060277596A1 (en) * 2005-06-06 2006-12-07 Calvert Peter S Method and system for multi-instance session support in a load-balanced environment
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

Patent Citations (7)

* 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
US20060277596A1 (en) * 2005-06-06 2006-12-07 Calvert Peter S Method and system for multi-instance session support in a load-balanced environment
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
邸辉;: "邯郸卷烟零售终端服务平台的设计和应用", 企业科技与发展, no. 07, 10 July 2018 (2018-07-10) *

Also Published As

Publication number Publication date
CN113535187B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN114157701B (en) Task testing method, device, equipment and storage medium
CN112925587A (en) Method and apparatus for initializing applications
CN115373861B (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN112506581A (en) Method and device for rendering small program, electronic equipment and readable storage medium
CN113377665A (en) Container technology-based testing method and device, electronic equipment and storage medium
CN113961311A (en) Service data processing method, device, electronic equipment and medium
CN114816393B (en) Information generation method, device, equipment and storage medium
CN115794262A (en) Task processing method, device, equipment, storage medium and program product
CN112398669A (en) Hadoop deployment method and device
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN114217848A (en) Dependency relationship processing method and device, electronic equipment and computer storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN112925623B (en) Task processing method, device, electronic equipment and medium
CN113535187B (en) Service online method, service updating method and service providing method
CN114841267A (en) Real-time prediction method and device, electronic equipment and computer program product
CN109840073B (en) Method and device for realizing business process
CN113515328A (en) Page rendering method and device, electronic equipment and storage medium
CN115495312B (en) Service request processing method and device
CN113900734B (en) Application program file configuration method, device, equipment and storage medium
CN116560847B (en) Task processing method, device, electronic equipment and storage medium
CN113468053B (en) Application system testing method and device
CN116860353B (en) Data processing method, device, electronic equipment and storage medium
CN111767085B (en) Storm platform parameter configuration method and apparatus
CN115061817A (en) Operation and maintenance method, device, system and computer program product
CN115827094A (en) SaaS application loading method, device, equipment and storage medium

Legal Events

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