CN112988190A - Application online method and device, computer equipment and storage medium - Google Patents

Application online method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112988190A
CN112988190A CN202110268799.2A CN202110268799A CN112988190A CN 112988190 A CN112988190 A CN 112988190A CN 202110268799 A CN202110268799 A CN 202110268799A CN 112988190 A CN112988190 A CN 112988190A
Authority
CN
China
Prior art keywords
online
service module
module
dependency
service
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
CN202110268799.2A
Other languages
Chinese (zh)
Other versions
CN112988190B (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110268799.2A priority Critical patent/CN112988190B/en
Publication of CN112988190A publication Critical patent/CN112988190A/en
Application granted granted Critical
Publication of CN112988190B publication Critical patent/CN112988190B/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
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to an application online method, an application online device, computer equipment and a storage medium. The method comprises the following steps: acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules; acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module; generating an online graph corresponding to each service module according to the dependency graph; and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph. The method determines the dependency relationship among the service modules, and enables the service modules to be online according to the dependency relationship among the service modules, thereby ensuring the correctness of the online sequence of the service modules and avoiding online faults caused by missing service modules online or errors in the online sequence of the service modules.

Description

Application online method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application online method, an application online device, a computer device, and a storage medium.
Background
At present, the back-end service is micro-service, one application back-end has a plurality of related service modules, different service modules are maintained by different departments, and mutual dependency relationship exists among the service modules, but back-end developers are directly on-line service modules which are respectively responsible for maintenance, do not consider various dependency conditions among the service modules, and are easy to generate on-line faults.
Disclosure of Invention
In order to solve the technical problem, the application provides an application online method, an application online device, a computer device and a storage medium.
In a first aspect, the present application provides an application online method, including:
acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module;
generating an online graph corresponding to each service module according to the dependency graph;
and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph.
Optionally, the making each service module online in sequence according to the dependency relationship between each service module in the online graph includes:
determining a front service module and a rear service module of the current service module according to the dependency relationship among the service modules in the online map;
acquiring an online state of each preposed service module, wherein the online state comprises an online state and an offline state;
when the preposed service module with the online state of not being online exists and the preposed service module with the online state of being online exists, the current service module enters the state to be online;
when the on-line state of each preposed service module is on-line, updating the current service module according to the on-line result of each preposed service module to obtain the current on-line module,
and the current online module is online.
Optionally, after the online of the current online module, the method further includes:
when the current service module is on-line, the on-line state of the current service module is changed into on-line state, and the on-line state of the current service module is used for updating the post-positioned service module or enabling the post-positioned service module to enter a state to be on-line.
Optionally, after obtaining the online status of each of the pre-service modules, the method further includes:
when the preposed service module with the on-line state of not being on-line exists, adding the preposed service module without the on-line state into a reminding list, and starting timing;
when the timing duration is greater than or equal to the preset duration, acquiring the online state of each preposed service module in the reminding list;
when the prepositive service module with the online state being online exists in the reminding list, removing the prepositive service module with the online state being online in the reminding list,
when the prepositive service module with the on-line state being not on-line exists in the reminding list, generating a reminding signal, wherein the reminding signal is used for reminding the prepositive service module with the off-line state in the reminding list to be on-line,
and when the pre-service module with the non-online state does not exist in the reminding list, executing the step of updating the current service module according to the online result of each pre-service module.
Optionally, the online graph includes a plurality of display nodes, the display nodes correspond to the service modules one to one, and after each service module is online in sequence, the method further includes:
acquiring the online state of each service module;
and updating the display state of each display node in the online graph according to the online state of each service module.
Optionally, the online application carries a corresponding application number, the online status includes online and offline, and after the online status of each service module is obtained, the method further includes:
and when no service module with the online state of no online exists in the service modules corresponding to the application numbers, generating an online completion signal.
Optionally, after the obtaining of the dependency graph, the method further comprises:
acquiring a change instruction;
and modifying the dependency relationship between the dependency modules and/or the dependency modules in the dependency graph according to the modification instruction to obtain an updated dependency graph, wherein the updated dependency graph is used for executing a step of obtaining an online graph corresponding to the online application.
In a second aspect, the present application provides an online application device, including:
the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
the application acquisition module is used for acquiring an online application, the online application comprises a plurality of service modules, and each service module is any one dependent module;
the graph generation module is used for generating an online graph corresponding to each service module according to the dependency graph;
and the online module is used for enabling each service module to be online in sequence according to the dependency relationship among the service modules in the online map.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module;
generating an online graph corresponding to each service module according to the dependency graph;
and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module;
generating an online graph corresponding to each service module according to the dependency graph;
and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph.
The application online method, the application online device, the computer equipment and the storage medium comprise the following steps: acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules; acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module; generating an online graph corresponding to each service module according to the dependency graph; and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph. The method determines the dependency relationship among the service modules, and enables the service modules to be online according to the dependency relationship among the service modules, thereby ensuring the correctness of the online sequence of the service modules and avoiding online faults caused by missing service modules online or errors in the online sequence of the service modules.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram illustrating an on-line method of application in one embodiment;
FIG. 2 is a schematic diagram of an on-line map;
FIG. 3 is a schematic diagram of a data storage table;
FIG. 4 is a schematic diagram of a data storage table;
FIG. 5 is a schematic diagram of a data storage table;
FIG. 6 is a schematic diagram of a data storage table;
FIG. 7 is a schematic diagram of a data storage table;
FIG. 8 is a block diagram of an apparatus on-line in one embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In an embodiment, fig. 1 is a schematic flow chart of an application online method in an embodiment, and referring to fig. 1, an application online method is provided, which is mainly illustrated by applying the method to a server, and specifically includes the following steps:
step S110, obtaining a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules.
Specifically, the dependency graph is a knowledge graph generated based on full-link monitoring data, namely the knowledge graph is formed according to a plurality of existing dependency modules and the dependency relationship among the dependency modules, and the dependency graph has universality and is suitable for most application back-end online scenes. The dependency relationship between the dependent modules is an influence relationship between parameters of the dependent modules, for example, an output parameter of the a dependent module influences an input parameter of the B dependent module, and the B dependent module depends on the a dependent module.
Step S120, acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module.
Specifically, the online application is an application for constructing an application, the online application includes a plurality of service modules for implementing functions of the application, that is, the application is formed by combining a plurality of service modules, different applications are formed by combining service modules with different functions, and a service module may be any one existing dependent module, that is, different applications are formed by combining different dependent modules.
And step S130, generating an online graph corresponding to each service module according to the dependency graph.
Specifically, based on the dependency graph, the dependency graphs corresponding to the service modules one to one are screened, the dependency relations among the service modules are determined according to the screened dependency relations among the dependency modules, a corresponding online graph is generated based on the dependency relations among the service modules and the service modules, the online graph is formed by connecting a plurality of module nodes, each module node corresponds to one service module, the online progress and the dependency relations of the service modules are obtained according to the display conditions of the module nodes in the online graph, and therefore the communication cost among online service personnel is reduced.
And step S140, enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph.
Specifically, an online sequence of each service module is determined according to a dependency relationship among the service modules in the online map, and each service module is sequentially online according to the corresponding online sequence, so that online correctness of each service module is ensured, and online faults caused by missing service modules online or disordered online sequences of each service module are avoided.
For example, if the C service module depends on the D service module, the online sequence of the D service module is prior to the C service module, and after the D service module is online, the C service module modifies according to the online result of the D service module, and the modified C service module is online.
If a plurality of initial online service modules exist, the initial online service modules are used as initial online modules, each initial online module can be synchronously online, and an online sequence can be randomly set among the initial online modules. For example, the C service module depends on the D service module, the C service module also depends on the E service module, the D service module and the E service module are initial online modules in an online map, the D service module and the E service module can be online synchronously, the D service module can be online before the E service module, or the E service module is online before the D service module, only after the D service module and the E service module are online, the C service module modifies according to online results of the D service module and the E service module, and then the modified C service module is online.
In an embodiment, the making each service module online in sequence according to the dependency relationship between each service module in the online graph includes: determining a front service module and a rear service module of the current service module according to the dependency relationship among the service modules in the online map; acquiring an online state of each preposed service module, wherein the online state comprises an online state and an offline state; when the preposed service module with the online state of not being online exists and the preposed service module with the online state of being online exists, the current service module enters the state to be online; and when the online state of each preposed service module is online, updating the current service module according to the online result of each preposed service module to obtain a current online module, and online the current online module.
Specifically, the current service module is any one of the service modules in the online map, the position of the current service module is determined according to the online map, and the front service module and the rear service module of the current service module are the service modules influencing the current service module, and the rear service module is the service module influenced by the current service module. If the current service module is the initial online module, the preposed service module of the current service module is empty; and if the current service module is a tail online module, the rear service module of the current service module is empty, and the tail online module is a service module positioned at a tail node in an online map.
The method comprises the steps that a current service module acquires an online state of a preposed service module associated with the current service module in real time, when the online state of any one preposed service module is acquired to be online, and the preposed service module which is not online also exists, the current service module enters an online state to be used for updating the display states of the current service module and the preposed service module in an online map, and the display state of a connecting line between the online preposed service module and the current service module is updated according to the online state to be updated, for example, if the online state of a first preposed service module is online, the current service module enters the online state to be online, and in the online map, the connecting line between the first preposed service module and the current service module is in a highlight state, so that a service worker knows that the current service module is about to be online; and when the online states of all the preposed service modules related to the current service module are online, modifying parameters in the current service module according to the online result of each preposed service module to obtain the current online module, and online the modified current online module.
In one embodiment, after the threading the current threading module, the method further comprises: when the current service module is on-line, the on-line state of the current service module is changed into on-line state, and the on-line state of the current service module is used for updating the post-positioned service module or enabling the post-positioned service module to enter a state to be on-line.
Specifically, after the current service module finishes being online, the online state of the current service module is changed to be online, and the online state of the current service module being online is sent to the post-service module, if the post-service module is only associated with the current service module, or the current service module is the last online service module in the pre-service modules associated with the post-service module, the online state of the current service module being online enables the post-service module to be updated and modified, and the post-service module being updated is online, that is, the post-service module of the current service module is used as a new current service module to execute the step method in the previous embodiment.
In one embodiment, after obtaining the online status of each of the pre-service modules, the method further includes: when the preposed service module with the on-line state of not being on-line exists, adding the preposed service module without the on-line state into a reminding list, and starting timing; when the timing duration is greater than or equal to the preset duration, acquiring the online state of each preposed service module in the reminding list; when the pre-service module with the online state being online exists in the reminding list, removing the pre-service module with the online state being online in the reminding list, when the pre-service module with the online state being not online exists in the reminding list, generating a reminding signal, wherein the reminding signal is used for reminding the pre-service module with the offline state being online in the reminding list to be online, and when the pre-service module with the online state being not online does not exist in the reminding list, executing the step of updating the current service module according to the online result of each pre-service module.
Specifically, when the pre-service module which is not on-line is added into a preset time length after the reminding list, and the pre-service module which is not on-line is changed into the pre-service module which is on-line, the reminding list is removed from the pre-service module which is on-line, whether the pre-service module which is not on-line exists in the reminding list at the moment is judged, if the pre-service module which is not on-line does not exist in the reminding list at the moment, the step of enabling the current service module to be modified according to the on-line result of each pre-service module and enabling the current service module to be modified after on-line is executed; if the pre-service module which is not on-line still exists in the reminding list at this moment, a corresponding reminding signal is generated according to the pre-service module in the reminding list, the reminding signal is used for reminding the pre-service module to be on-line as soon as possible, business personnel corresponding to the pre-service module which is not on-line forget to go on-line is avoided, and the application on-line process is facilitated to be promoted.
In one embodiment, the online graph includes a plurality of display nodes, the display nodes correspond to the service modules one to one, and after each service module is online in sequence, the method further includes: acquiring the online state of each service module; and updating the display state of each display node in the online graph according to the online state of each service module.
Specifically, each display node in the online map corresponds to a service module, the display nodes are sequentially connected through a connecting line, and the display states of the display nodes in the online map and the connecting lines between the display nodes are updated in real time according to the online states of the service modules.
In one embodiment, the online application carries a corresponding application number, the online status includes online and offline, and after the online status of each service module is obtained, the method further includes: and when no service module with the online state of no online exists in the service modules corresponding to the application numbers, generating an online completion signal.
Specifically, each online application corresponds to an application number, the application number is used for distinguishing different online applications, online states of all service modules corresponding to the application number are obtained, if all the service modules corresponding to the application number are online, an online completion signal corresponding to the application number is generated, and the online completion signal enables business personnel corresponding to each service module to know that applications corresponding to the online applications accurately and reliably complete online.
In one embodiment, after the obtaining the dependency graph, the method further comprises: acquiring a change instruction; and modifying the dependency relationship between the dependency modules and/or the dependency modules in the dependency graph according to the modification instruction to obtain an updated dependency graph, wherein the updated dependency graph is used for executing a step of obtaining an online graph corresponding to the online application.
Specifically, although the dependency graph is suitable for most application backend online scenes, the dependency module can be updated according to the change instruction in the personalized customization scene of the service module, so that the updated dependency graph is obtained. The dependency modules can be added, deleted and modified according to the modification instruction, and/or the dependency relationship among the dependency modules can be modified according to the modification instruction, so that the individualized update of the dependency graph is realized, and the basic support is provided for the online of the subsequent service module.
In a specific embodiment, fig. 2 is a schematic structural diagram of an online graph, where a, b, c, d, and e are module nodes respectively corresponding to a service module, and an online sequence is obtained according to the online graph, that is, a or b > c > d, b > e, and the online sequence between a and b is customizable, fig. 3 is a schematic diagram of a data storage table, that is, fig. 3 shows that data is stored in a table manner, and a data storage table is automatically generated according to the online graph, where the data storage table includes an application number, a name of each module node, a front node and a back node of each module node, and an online state of each module node, the application number corresponds to the online application form number in fig. 3, each front node corresponds to a front service module, each back node corresponds to a back service module, and an online state of each service module is obtained, updating a data storage table according to the online state of each service module, referring to fig. 4, updating the data storage table according to the online state of a module, updating the online state of a module in fig. 4 to be online, but the online state of b module is not online, then c module enters a state to be online, referring to fig. 5, updating the online state of b module to be online, updating data in c module according to the online results of a module and b module, updating data in e module according to the online result of b module, online the updated c module and e module, updating the data storage table according to the online states of c module and e module, obtaining the table data shown in fig. 6, updating data in d module according to the online result of c module, online the updated d module, and updating the data storage table according to the online state of d module, the table data shown in fig. 7 is obtained, and when the online states of all the service modules corresponding to the online application form numbers are all online, it indicates that the application corresponding to the online application form numbers is online. Each service module is online according to the online sequence corresponding to the online map, so that the online accuracy of each service module is ensured, and online faults caused by missing service modules online or disordered online sequences of each service module are avoided. And updating the display state of the online map according to the data in the data storage table, so that the service personnel can clearly know the online progress of the service module, and the communication cost among the service personnel corresponding to each service module is reduced.
FIG. 1 is a flow diagram illustrating an application of an online method in one embodiment. It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided an on-application device including:
the graph obtaining module 210 is configured to obtain a dependency graph, where the dependency graph includes a plurality of dependency modules and dependency relationships among the dependency modules;
an application obtaining module 220, configured to obtain an online application, where the online application includes a plurality of service modules, and each service module is any one dependent module;
the graph generation module 230 is configured to generate an online graph corresponding to each service module according to the dependency graph;
and the online module 240 is configured to enable each service module to be online in sequence according to the dependency relationship between each service module in the online graph.
In one embodiment, the upline module 240 includes:
the module determining unit is used for determining a front service module and a rear service module of the current service module according to the dependency relationship among the service modules in the online graph;
a first state obtaining unit, configured to obtain an online state of each pre-service module, where the online state includes an online state and an offline state;
the device comprises a to-be-on-line unit, a to-be-on-line unit and a sending unit, wherein the to-be-on-line unit is used for enabling a current service module to enter a to-be-on-line state when the preposed service module with the on-line state of not being on-line exists and the preposed service module with the on-line state of being on-line;
a module updating unit, configured to update the current service module according to the online result of each pre-service module when the online status of each pre-service module is online, to obtain a current online module 240,
and an online unit, configured to online the current online module 240.
In one embodiment, the online module 240 further includes:
and the state changing unit is used for changing the online state of the current service module into the online state when the current service module is online, and the online state of the current service module which is online is used for updating the post-positioned service module or enabling the post-positioned service module to enter a state to be online.
In one embodiment, the online module 240 further includes:
the reminding adding unit is used for adding the preposed service module which is not on-line into a reminding list and starting timing when the preposed service module which is not on-line exists;
the second state acquisition unit is used for acquiring the online state of each preposed service module in the reminding list when the timing duration is greater than or equal to the preset duration;
a removing unit, configured to remove the pre-service module with the online status being online in the reminder list when the pre-service module with the online status being online exists in the reminder list,
a reminding unit, configured to generate a reminding signal when there is a pre-service module in the reminding list that is not on-line, the reminding signal is used to remind the pre-service module in the reminding list that is not on-line to go on-line,
and the online execution unit is used for executing the step of updating the current service module according to the online result of each preposed service module when the preposed service module with the online state of being not online does not exist in the reminding list.
In one embodiment, the online graph includes a plurality of display nodes, and the display nodes correspond to the service modules one to one, and the apparatus further includes:
the state monitoring module is used for acquiring the online state of each service module;
and the display updating module is used for updating the display state of each display node in the online map according to the online state of each service module.
In one embodiment, the online application carries a corresponding application number, the online status includes online and offline, and the apparatus further includes:
and the completion signal generation module is used for generating an online completion signal when no service module with an online state of being offline exists in the service modules corresponding to the application numbers.
In one embodiment, the apparatus further comprises:
the instruction acquisition module is used for acquiring a change instruction;
and the graph updating module is used for modifying the dependency relationship between the dependency modules and/or the dependency modules in the dependency graph according to the change instruction to obtain an updated dependency graph, and the updated dependency graph is used for executing the step of obtaining an online graph corresponding to the online application.
FIG. 9 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server. As shown in fig. 9, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the application online method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform an on-line application method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the on-application apparatus provided in the present application can be implemented in a form of a computer program, and the computer program can be run on a computer device as shown in fig. 9. The memory of the computer device may store various program modules constituting the on-line application apparatus, such as the map obtaining module 210, the application obtaining module 220, the map generating module 230, and the on-line module 240 shown in fig. 8. The computer program constituted by the respective program modules causes the processor to execute the steps in the online method of application of the respective embodiments of the present application described in the present specification.
The computer device shown in fig. 9 may perform the step of obtaining a dependency graph, which includes a plurality of dependency modules and dependency relationships among the dependency modules, by the graph obtaining module 210 in the application online apparatus shown in fig. 8. The computer device can execute an online application through the application acquisition module 220, wherein the online application comprises a plurality of service modules, and each service module is any one of the dependent modules. The computer device may execute, by the graph generation module 230, generating an online graph corresponding to each service module according to the dependency graph. The computer device can execute the dependency relationship between the service modules in the online graph through the online module 240, and enable the service modules to be online in sequence.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the above embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for online application, the method comprising:
acquiring a dependency graph, wherein the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
acquiring an online application, wherein the online application comprises a plurality of service modules, and each service module is any one dependent module;
generating an online graph corresponding to each service module according to the dependency graph;
and enabling each service module to be on-line in sequence according to the dependency relationship among the service modules in the on-line graph.
2. The method according to claim 1, wherein said bringing each of the service modules online in sequence according to the dependency relationship between each of the service modules in the online graph comprises:
determining a front service module and a rear service module of the current service module according to the dependency relationship among the service modules in the online map;
acquiring an online state of each preposed service module, wherein the online state comprises an online state and an offline state;
when the preposed service module with the online state of not being online exists and the preposed service module with the online state of being online exists, the current service module enters the state to be online;
and when the online state of each preposed service module is online, updating the current service module according to the online result of each preposed service module to obtain a current online module, and online the current online module.
3. The method of claim 2, wherein after the currently online module is online, the method further comprises:
when the current service module is on-line, the on-line state of the current service module is changed into on-line state, and the on-line state of the current service module is used for updating the post-positioned service module or enabling the post-positioned service module to enter a state to be on-line.
4. The method according to claim 2, wherein after obtaining the on-line status of each of the pre-service modules, the method further comprises:
when the preposed service module with the on-line state of not being on-line exists, adding the preposed service module without the on-line state into a reminding list, and starting timing;
when the timing duration is greater than or equal to the preset duration, acquiring the online state of each preposed service module in the reminding list;
when the prepositive service module with the online state being online exists in the reminding list, removing the prepositive service module with the online state being online in the reminding list,
when the prepositive service module with the on-line state being not on-line exists in the reminding list, generating a reminding signal, wherein the reminding signal is used for reminding the prepositive service module with the off-line state in the reminding list to be on-line,
and when the pre-service module with the non-online state does not exist in the reminding list, executing the step of updating the current service module according to the online result of each pre-service module.
5. The method according to claim 1, wherein the online graph includes a plurality of display nodes, the display nodes correspond to the service modules one to one, and after each of the service modules is online in sequence, the method further includes:
acquiring the online state of each service module;
and updating the display state of each display node in the online graph according to the online state of each service module.
6. The method according to claim 5, wherein the online application carries a corresponding application number, the online status includes online and offline, and after the online status of each of the service modules is obtained, the method further comprises:
and when no service module with the online state of no online exists in the service modules corresponding to the application numbers, generating an online completion signal.
7. The method of claim 1, wherein after obtaining the dependency graph, the method further comprises:
acquiring a change instruction;
and modifying the dependency relationship between the dependency modules and/or the dependency modules in the dependency graph according to the modification instruction to obtain an updated dependency graph, wherein the updated dependency graph is used for executing a step of obtaining an online graph corresponding to the online application.
8. An application threading device, the device comprising:
the dependency graph comprises a plurality of dependency modules and dependency relations among the dependency modules;
the application acquisition module is used for acquiring an online application, the online application comprises a plurality of service modules, and each service module is any one dependent module;
the graph generation module is used for generating an online graph corresponding to each service module according to the dependency graph;
and the online module is used for enabling each service module to be online in sequence according to the dependency relationship among the service modules in the online map.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110268799.2A 2021-03-12 2021-03-12 Application online method, device, computer equipment and storage medium Active CN112988190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110268799.2A CN112988190B (en) 2021-03-12 2021-03-12 Application online method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110268799.2A CN112988190B (en) 2021-03-12 2021-03-12 Application online method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112988190A true CN112988190A (en) 2021-06-18
CN112988190B CN112988190B (en) 2023-09-05

Family

ID=76336499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110268799.2A Active CN112988190B (en) 2021-03-12 2021-03-12 Application online method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112988190B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301669A1 (en) * 2007-05-30 2008-12-04 Google Inc. Dynamically Self-Updating by a Software Application on a Device
US20100169863A1 (en) * 2008-09-26 2010-07-01 Bluetie, Inc. Methods for determining resource dependency and systems thereof
US20140324508A1 (en) * 2011-11-28 2014-10-30 Shimon BECKER Business service management system
US20170344363A1 (en) * 2016-05-26 2017-11-30 Linkedin Corporation Dependency management
CN107870771A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 Application builds and upgrade method and system
US20180260301A1 (en) * 2017-03-03 2018-09-13 Snyk Limited Identifying flawed dependencies in deployed applications
CN110941446A (en) * 2019-11-06 2020-03-31 苏宁云计算有限公司 Version release method and device based on multi-environment offline task
CN111158730A (en) * 2019-12-31 2020-05-15 北京奇艺世纪科技有限公司 System updating method and device, electronic equipment and readable storage medium
CN111930448A (en) * 2020-09-23 2020-11-13 南京梦饷网络科技有限公司 Method, electronic device, and storage medium for service distribution
US20200387362A1 (en) * 2019-06-10 2020-12-10 Canon Kabushiki Kaisha Information processing apparatus, method of controlling the same, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301669A1 (en) * 2007-05-30 2008-12-04 Google Inc. Dynamically Self-Updating by a Software Application on a Device
US20100169863A1 (en) * 2008-09-26 2010-07-01 Bluetie, Inc. Methods for determining resource dependency and systems thereof
US20140324508A1 (en) * 2011-11-28 2014-10-30 Shimon BECKER Business service management system
US20170344363A1 (en) * 2016-05-26 2017-11-30 Linkedin Corporation Dependency management
CN107870771A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 Application builds and upgrade method and system
US20180260301A1 (en) * 2017-03-03 2018-09-13 Snyk Limited Identifying flawed dependencies in deployed applications
US20200387362A1 (en) * 2019-06-10 2020-12-10 Canon Kabushiki Kaisha Information processing apparatus, method of controlling the same, and storage medium
CN110941446A (en) * 2019-11-06 2020-03-31 苏宁云计算有限公司 Version release method and device based on multi-environment offline task
CN111158730A (en) * 2019-12-31 2020-05-15 北京奇艺世纪科技有限公司 System updating method and device, electronic equipment and readable storage medium
CN111930448A (en) * 2020-09-23 2020-11-13 南京梦饷网络科技有限公司 Method, electronic device, and storage medium for service distribution

Also Published As

Publication number Publication date
CN112988190B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
CN113448862B (en) Software version testing method and device and computer equipment
CN111078274A (en) Code development method and device, electronic equipment and computer storage medium
CN110880091A (en) Micro-service flow processing method and device
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
JP5989194B1 (en) Test management system and program
CN116257438A (en) Updating method of interface test case and related equipment
CN110727575B (en) Information processing method, system, device and storage medium
CN114416883A (en) Block chain light node data synchronization method, device, equipment and readable storage medium
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN112231616A (en) Page data refreshing method and device, electronic equipment and storage medium
CN109815083B (en) Application crash monitoring method and device, electronic equipment and medium
CN112988190A (en) Application online method and device, computer equipment and storage medium
CN114579171A (en) Code processing method and device, computer equipment and storage medium
CN113485759A (en) Micro-service configuration information management system, method, electronic device and storage medium
CN111522748A (en) Automatic test case generation method and device, server and storage medium
CN113377762A (en) Publishing system and method for block chain subchain
CN111651429B (en) Big data scheduling parameter management method, device and distributed platform
CN116028138B (en) Application publishing method and device
CN112882922B (en) Test method and related device
CN114595159B (en) Test data generation method, device, equipment and storage medium
CN112463344B (en) Data analysis method and device
CN111324472B (en) Method and device for judging garbage items of information to be detected

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