CN109636304B - Business system publishing method and device, storage medium and electronic device - Google Patents

Business system publishing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN109636304B
CN109636304B CN201811271437.3A CN201811271437A CN109636304B CN 109636304 B CN109636304 B CN 109636304B CN 201811271437 A CN201811271437 A CN 201811271437A CN 109636304 B CN109636304 B CN 109636304B
Authority
CN
China
Prior art keywords
service
determining
systems
service system
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811271437.3A
Other languages
Chinese (zh)
Other versions
CN109636304A (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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN201811271437.3A priority Critical patent/CN109636304B/en
Publication of CN109636304A publication Critical patent/CN109636304A/en
Application granted granted Critical
Publication of CN109636304B publication Critical patent/CN109636304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/103Workflow collaboration or project management

Abstract

The invention provides a business system publishing method and device, a storage medium and an electronic device, wherein the method comprises the following steps: determining a plurality of service systems of a target service, wherein each service system in the plurality of service systems corresponds to a function of the target service respectively; establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems; and determining the distribution sequence of the plurality of service systems according to the directed graph. The invention solves the technical problem that the issuing sequence of a plurality of service systems cannot be determined in the related technology.

Description

Business system publishing method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for publishing a service system, a storage medium, and an electronic apparatus.
Background
In the related art, a complete business function usually needs tens of business systems to support, and even hundreds or thousands of business systems coordinate with each other to complete the corresponding function. The business system has mutual dependency relationship during operation, for example, a system and a system B, when a executes a certain function, the system B needs to be called to obtain some results, which is called that there is dependency relationship between a and B, that is, a depends on B, and is expressed as: a- > B.
In the related art, when a certain service function is online, a plurality of service systems which are mutually dependent need to be issued, for example, after the B system is issued, the a system can only issue the service, if the B system is not issued when the a system issues the service, the a system is not online because the B system is changed, which causes an exception when the a calls the B system to execute the function, and affects the existing service on the line. In the scheme in the prior art, the dependency relationship among systems is not considered in the release stage, and the exception is solved through subsequent checking and system rollback, for example, after the release of the system A is finished, the online service exception is found, the checking finds that the release dependency relationship exists with the system B, the system B needs to release at this time, the release rollback of the system A is carried out, the release is delayed, for example, an application file with the publication number of CN107678936A, a service system pre-checking method is disclosed, and after the release of the service system is online, the service system is quickly rolled back after a fault occurs. The other scheme is artificially determined, if a release dependency relationship exists between two systems, A- > B, and when the release of the system B cannot be completed, the system A confirms whether the release of the system B is completed or not through artificial frequency when the system A is prepared to be released, and then the workload is huge under the condition that the system A depends on dozens of systems.
In view of the above problems in the related art, no effective solution has been found at present.
Disclosure of Invention
The embodiment of the invention provides a business system publishing method and device, a storage medium and an electronic device.
According to an embodiment of the present invention, a method for publishing a service system is provided, including: determining a plurality of service systems of a target service, wherein each service system in the plurality of service systems corresponds to a function of the target service respectively; establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems; and determining the distribution sequence of the plurality of service systems according to the directed graph.
Optionally, the establishing a directed graph according to the dependency relationship between each service system in the service systems includes: determining the dependency relationship of a service system combination according to the calling direction of an external interface, wherein the service system combination consists of two service systems which adopt the external interface for communication; and counting the dependency relationship of all service system combinations, and establishing the directed graph according to the dependency relationship.
Optionally, determining the dependency relationship of the service system combination according to the calling direction of the external interface includes: determining a first external interface of a first business system in the plurality of business systems; determining one or more second service systems for calling the first external interface in the plurality of service systems, wherein the service system combination is composed of the first service system and the second service system; and taking the second service system as a calling system and the first service system as a called system, and establishing a dependency relationship between the first service system and the second service system.
Optionally, the establishing the directed graph according to the dependency relationship includes: and establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function.
Optionally, determining the distribution sequence of the service systems according to the directed graph includes: counting all directed edges of the directed graph; establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that a target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship; and determining the logic sequence of the constraint conditions as the issuing sequence of the service systems in the service system combination.
Optionally, after determining the logical order of the constraint conditions as the publishing order of the business systems in the business system combination, the method further includes: and sequentially releasing the service systems in the service system combination according to the releasing sequence.
Optionally, the issuing the service systems in the service system combination in sequence according to the issuing order includes: analyzing the constraint condition, and determining whether a target service system to be issued has a precondition; when the target business system has the precondition, waiting for the business system corresponding to the precondition to issue, and after the business system corresponding to the precondition is determined to issue, issuing the target business system; and when the target service system has no precondition, the target service system is issued, and after the issuance is finished, the service system corresponding to the target result is notified.
Optionally, determining that the service system corresponding to the precondition completes the release includes: determining whether a notification message sent by a service system corresponding to the precondition is received, wherein the notification message is used for indicating that the service system corresponding to the precondition has already been released; and when the notification message is received, determining that the service system corresponding to the precondition completes the release, and when the notification message is not received, determining that the service system corresponding to the precondition does not complete the release.
Optionally, determining the distribution sequence of the service systems according to the directed graph includes: analyzing the directed graph to obtain isolated points and directed edges in the directed graph; determining a starting point and an end point of each directed edge according to the communication direction of the directed edges; determining a first element in the plurality of business systems only as an end point in all directed edges, determining a second element in the plurality of business systems only as an end point in all directed edges and simultaneously as a start point in the second directed edge, and determining a third element in the plurality of business systems only as a start point in all directed edges; and determining that the issuing sequence of the first element is the highest level, determining that the issuing sequence of the second element is the second highest level, and determining that the issuing sequence of the third element is the lowest level.
Optionally, the plurality of service systems for determining the target service include one of: determining a plurality of business systems in which a target business of a first application is associated with a plurality of second applications; a plurality of business systems of a target business application of a first application program on a plurality of different servers are determined.
Optionally, the target service includes at least one of: ordering service, transfer service, conversation service, financing service, red package service and video service.
According to another embodiment of the present invention, there is provided a publishing apparatus of a service system, including: the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a plurality of service systems of a target service, and each service system in the plurality of service systems corresponds to a function of the target service; the establishing module is used for establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems; and the second determining module is used for determining the issuing sequence of the plurality of service systems according to the directed graph.
Optionally, the establishing module includes: the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining the dependency relationship of a service system combination according to the calling direction of an external interface, and the service system combination consists of two service systems which adopt the external interface for communication; and the establishing unit is used for counting the dependency relationship of all the service system combinations and establishing the directed graph according to the dependency relationship.
Optionally, the determining unit includes: the first determining subunit is used for determining a first external interface of a first business system in the plurality of business systems; a second determining subunit, configured to determine one or more second service systems that invoke the first external interface in the plurality of service systems, where the service system combination is composed of the first service system and the second service system; and the first establishing subunit is used for establishing a dependency relationship between the first service system and the second service system by taking the second service system as a calling system and the first service system as a called system.
Optionally, the establishing unit includes: and the second establishing subunit is used for establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function.
Optionally, the second determining module includes: the statistical unit is used for counting all directed edges of the directed graph; the establishing unit is used for establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that a target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship; and the determining unit is used for determining the logic sequence of the constraint conditions as the issuing sequence of the two service systems in the service system combination.
Optionally, the apparatus further comprises: and the issuing module is used for issuing the service systems in the service system combination in sequence according to the issuing sequence after the second determining module determines the logic sequence of the constraint conditions as the issuing sequence of the service systems in the service system combination.
Optionally, the second determining module includes: the analysis unit is used for analyzing the directed graph to obtain isolated points and directed edges in the directed graph; the first determining unit is used for determining the starting point and the end point of each directed edge according to the communication direction of the directed edges; a second determination unit configured to determine, in the plurality of traffic systems, a first element that is only an end point in all the directed edges, determine, in the plurality of traffic systems, a second element that is only a start point in the second directed edge while being an end point in all the directed edges, and determine, in the plurality of traffic systems, a third element that is only a start point in all the directed edges; a third determining unit, configured to determine that the issue order of the first element is the highest level, determine that the issue order of the second element is the second highest level, and determine that the issue order of the third element is the lowest level.
Optionally, the first determining module includes one of: a first determination unit, configured to determine a plurality of business systems in which a target business of a first application is associated with a plurality of second applications; and the second determining unit is used for determining a plurality of service systems of the target service application of the first application program on a plurality of different servers.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, the multiple service systems of the target service are determined, the directed graph is established according to the dependency relationship among the service systems in the multiple service systems, the issuing sequence of the multiple service systems is determined according to the directed graph, and then the service system of the target service is issued according to the issuing sequence, so that the technical problem that the issuing sequence of the multiple service systems cannot be determined in the related technology is solved, the multiple service systems of one target service can be automatically issued according to the issuing sequence, the rollback and the manual intervention of the system are avoided, the efficiency of issuing the service system is improved, and the system abnormity is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a publishing mobile terminal of a service system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a publishing method of a business system according to an embodiment of the invention;
FIG. 3 is a flow chart of the execution of the ordering service of the embodiment of the present invention;
FIG. 4 is a dependency diagram of a service system in the ordering service according to the embodiment of the present invention;
FIG. 5 is a schematic diagram of a directed graph of an embodiment of the present invention;
fig. 6 is a block diagram of a structure of a distribution apparatus of a business system according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal for issuing a service system according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a service system distribution method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a publishing method of a service system is provided, and fig. 2 is a flowchart of a publishing method of a service system according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, a plurality of service systems of the target service are determined, wherein each service system in the plurality of service systems corresponds to a function of the target service;
step S204, establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems;
step S206, determining the distribution sequence of the plurality of service systems according to the directed graph.
Through the steps, a plurality of service systems of the target service are determined, the directed graph is established according to the dependency relationship among the service systems in the plurality of service systems, the issuing sequence of the plurality of service systems is determined according to the directed graph, and then the service system of the target service is issued according to the issuing sequence, so that the technical problem that the issuing sequence of the plurality of service systems cannot be determined in the related technology is solved, the plurality of service systems of one target service can be automatically issued according to the issuing sequence, the rollback and the manual intervention of the system are avoided, the efficiency of issuing the service system is improved, and the system abnormity is reduced.
In this embodiment, the target service may be all functions of an application (app), or may be a functional module on the application, and the target service may be, but is not limited to: ordering service, transfer service, conversation service, financing service, red package service, video service and the like. The plurality of service systems for determining the target service comprise one of: determining a plurality of service systems in which a target service of a first application program is associated with a plurality of second application programs, for example, a video software (e.g., flight video) is logged in by using an account of an instant messaging software (e.g., WeChat), and a service system for managing the account of the instant messaging software needs to be called because the account and a key of the instant messaging software need to be called in the logging process of a video website; the method comprises the steps of determining a plurality of service systems of a target service of a first application program applied to a plurality of different servers, when the target service is a food ordering service and the food ordering service used by a user, using the plurality of service systems, such as a payment system, a user identity system, a data system of a merchant, a management and marketing system of an intermediate platform and the like, wherein the servers corresponding to the systems are respectively arranged on the different servers.
In this embodiment, a target service is taken as an example of a service for ordering food, and fig. 3 is a flowchart of executing the service for ordering food according to the embodiment of the present invention, which includes four service systems, respectively: ordering center, commodity center, marketing center, dining-table center, wherein, ordering center: and supporting public praise meal ordering C-end service, and being responsible for functions of meal ordering list service consultation, meal ordering addition and subtraction shopping carts, meal ordering receipt confirmation page, meal ordering receipt payment and the like. The commodity center: the management and consultation service of the commodities including the dish mouths is responsible for providing the consultation capability of the commodities and dishes for commodity purchase and ordering. Marketing center: the system is responsible for the consultation of the links that the user buys the order (commodity purchase, ordering, online purchase order and the like) to enjoy the preferential ability. The center of the dining table is as follows: is responsible for the management, maintenance and consultation capacity of the dining table in the ordering business. The addition, modification, deletion and inquiry capabilities of the dining table information are provided, and the starting and clearing capabilities of the dining table are provided.
And fig. 4 is a dependency relationship diagram of the service systems in the ordering service according to the embodiment of the invention, wherein the ordering center is a service system of a user plane, and depends on a marketing center, a commodity center and a dining-table center, and the marketing center also depends on the commodity center.
In this embodiment, the creating a directed graph according to the dependency relationship between each service system in the service systems includes:
s11, determining the dependency relationship of the service system combination according to the calling direction of the external interface, wherein the service system combination is composed of two service systems which adopt the external interface to communicate;
optionally, determining the dependency relationship of the service system combination according to the calling direction of the external interface includes: determining a first external interface of a first service system in a plurality of service systems; determining one or more second service systems for calling the first external interface in the plurality of service systems, wherein the service system combination consists of the first service system and the second service system; and taking the second service system as a calling system and the first service system as a called system, and establishing a dependency relationship between the first service system and the second service system.
And S12, counting the dependency relationship of all service system combinations, and establishing a directed graph according to the dependency relationship.
Fig. 5 is a schematic diagram of a directed graph according to an embodiment of the present invention, and as shown in fig. 5, the directed graph includes a to I, and 9 elements in total, which are respectively a service system, where AB, AC, DF, EG, and the like form a dependency relationship with each other, and I is an isolated point and does not form a dependency relationship with other elements. The AB service system combination is used for explaining, an external interface is defined on the B element, and is used for calling the a element when the a element works, and the calling direction of the external interface calls the B element for the a element, so that the dependency relationship of the AB service system combination is that the a element depends on the B element, meanwhile, the B element can be called by the D element, and the a element can also call C, F elements, etc., and the dependency relationship of all the elements is counted, so that a directed graph can be formed. The I element is an element which is not called by other elements and is not called by other elements, and is an isolated point in the directed graph.
In an optional implementation manner of this embodiment, the establishing a directed graph according to the dependency relationship includes: and establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function. Taking fig. 5 as an example for explanation, for example, the AB element, a is a starting point, B is an end point, the relevance function (which can be understood as meaning of relevance) is that a depends on B, a- > B is a directed edge of the directed graph, and a plurality of directed edges form the complete directed graph.
In this embodiment, determining the distribution order of the plurality of business systems according to the directed graph includes:
s21, counting all directed edges of the directed graph;
s22, establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that the target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship; for example, two service systems AB, the constraint condition is used to ensure that B has already been released before A is released, thereby avoiding the exception of the service system A.
And S23, determining the logic sequence of the constraint conditions as the distribution sequence of the service systems in the service system combination. According to the logic sequence of the constraint conditions, the determined issuing sequence of the service systems is to issue the service system corresponding to the precondition first and then to issue the service system corresponding to the target result, that is, to issue the called service system first and then to issue the called service system.
Optionally, after determining the logical order of the constraint conditions as the publishing order of the service systems in the service system combination, the method further includes: and sequentially releasing the service systems in the service system combination according to the releasing sequence. In an implementation manner of this embodiment, sequentially publishing the service systems in the service system combination according to the publishing order includes:
s31, analyzing the constraint condition, and determining whether the target service system to be issued has a precondition; taking fig. 5 as an example for explanation, when the target service system to be released is a, a does not have a precondition, and when the target service system to be released is B, the preconditions exist: a and D.
S32, when the precondition exists in the target service system, waiting for the service system release corresponding to the precondition, and after the service system release corresponding to the precondition is determined to be completed, releasing the target service system; and when the target service system has no precondition, the target service system is released, and after the release is finished, the service system corresponding to the target result is notified. Optionally, it may be determined whether the distribution is completed through a notification message between the service systems, and determining that the distribution of the service system corresponding to the precondition is completed includes: determining whether a notification message sent by a service system corresponding to the precondition is received, wherein the notification message is used for indicating that the service system corresponding to the precondition is released; and when the notification message is received, determining that the service system corresponding to the precondition completes the release, and when the notification message is not received, determining that the service system corresponding to the precondition does not complete the release.
Optionally, determining the distribution sequence of the plurality of service systems according to the directed graph includes:
s41, analyzing the directed graph to obtain isolated points and directed edges in the directed graph; as shown in fig. 5, the I element is an isolated point, and other elements may be formed with directed edges.
S42, determining the starting point and the end point of each directed edge according to the communication direction of the directed edges; in FIG. 5, the term "AB" refers to an AB directed edge, A refers to a starting point, B refers to an end point, BH refers to a starting point, and H refers to an end point.
S43, determining a first element in the plurality of business systems only as an end point in all the directed edges, determining a second element in the plurality of business systems only as an end point in all the directed edges in the first directed edges and simultaneously as a start point in the second directed edges, and determining a third element in the plurality of business systems only as a start point in all the directed edges; in fig. 5, C, F, H, G is the first element, B is the second element, and A, D, E is the third element.
S44, determining the distribution sequence of the first element as the highest level, determining the distribution sequence of the second element as the second highest level, and determining the distribution sequence of the third element as the lowest level. In the release process, the first element with the highest level, the second element and the third element are preferentially released, and the release time of the element of the isolated point does not influence other elements, so that the isolated points have no release sequence and can be released randomly.
In one example, the target service systems to be published are a, D, F, and H, and according to the association relationship, the directed graph has 3 directed edges, which are: a- > F, D- > F and D- > H, when starting to issue, A waits for, D waits for, F and H are issued preferentially, if F issues, F notifies A and D, because A's precondition is only F, A can issue after F issues are determined to be completed, (D's precondition is F and H, all can issue after receiving notification message notifying F and H), D receives notification, because H is relied on at the same time, H is required to wait for H to issue to be completed, H issues to be completed, D issues again.
Optionally, the execution subject of the above steps may be a client or a server, etc., where the client may be a mobile terminal, a PC, etc., and the server may be a code publishing server, a push server of a service system, etc., or a server applied to a target service, such as a server of catering software, a server of taxi taking software, etc., but is not limited thereto.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a publishing device of the service system, which may be a terminal or a server, is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and is not described again after being described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a publishing device of a service system according to an embodiment of the present invention, which can be applied in a client or a server, as shown in fig. 6, the publishing device includes: a first determination module 60, a setup module 62, a second determination module 64, wherein,
a first determining module 60, configured to determine a plurality of service systems of a target service, where each service system of the plurality of service systems corresponds to a function of the target service;
the establishing module 62 is configured to establish a directed graph according to a dependency relationship between the service systems in the plurality of service systems;
a second determining module 64, configured to determine, according to the directed graph, a distribution order of the multiple service systems.
Optionally, the establishing module includes: the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining the dependency relationship of a service system combination according to the calling direction of an external interface, and the service system combination consists of two service systems which adopt the external interface for communication; and the establishing unit is used for counting the dependency relationship of all the service system combinations and establishing the directed graph according to the dependency relationship.
The determination unit includes: the first determining subunit is used for determining a first external interface of a first business system in the plurality of business systems; a second determining subunit, configured to determine one or more second service systems that invoke the first external interface in the plurality of service systems, where the service system combination is composed of the first service system and the second service system; and the first establishing subunit is used for establishing a dependency relationship between the first service system and the second service system by taking the second service system as a calling system and the first service system as a called system.
The establishing unit includes: and the second establishing subunit is used for establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function.
The second determining module includes: the statistical unit is used for counting all directed edges of the directed graph; the establishing unit is used for establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that a target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship; and the determining unit is used for determining the logic sequence of the constraint conditions as the issuing sequence of the two service systems in the service system combination.
The device further comprises: and the issuing module is used for issuing the service systems in the service system combination in sequence according to the issuing sequence after the second determining module determines the logic sequence of the constraint conditions as the issuing sequence of the service systems in the service system combination.
The second determining module includes: the analysis unit is used for analyzing the directed graph to obtain isolated points and directed edges in the directed graph; the first determining unit is used for determining the starting point and the end point of each directed edge according to the communication direction of the directed edges; a second determination unit configured to determine, in the plurality of traffic systems, a first element that is only an end point in all the directed edges, determine, in the plurality of traffic systems, a second element that is only a start point in the second directed edge while being an end point in all the directed edges, and determine, in the plurality of traffic systems, a third element that is only a start point in all the directed edges; a third determining unit, configured to determine that the issue order of the first element is the highest level, determine that the issue order of the second element is the second highest level, and determine that the issue order of the third element is the lowest level.
The first determining module includes one of: a first determination unit, configured to determine a plurality of business systems in which a target business of a first application is associated with a plurality of second applications; and the second determining unit is used for determining a plurality of service systems of the target service application of the first application program on a plurality of different servers.
It should be noted that the terminal and the server are merely the difference in the implementation subjects of the scheme, and the various examples and alternatives in the above-described identification terminal are also applicable in the server, and produce the same technical effect.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining a plurality of service systems of a target service, wherein each service system in the plurality of service systems corresponds to a function of the target service;
s2, establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems;
s3, determining the distribution sequence of the plurality of service systems according to the directed graph.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining a plurality of service systems of a target service, wherein each service system in the plurality of service systems corresponds to a function of the target service;
s2, establishing a directed graph according to the dependency relationship among the service systems in the plurality of service systems;
s3, determining the distribution sequence of the plurality of service systems according to the directed graph.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. A method for publishing a business system, comprising:
determining a plurality of service systems of a target service, wherein each service system in the plurality of service systems corresponds to a function of the target service respectively;
establishing a directed graph according to a dependency relationship among the service systems in the plurality of service systems, wherein the dependency relationship is determined based on the calling direction of an external interface;
determining the distribution sequence of the plurality of service systems according to the directed graph;
the determining the distribution sequence of the plurality of service systems according to the directed graph includes:
analyzing the directed graph to obtain isolated points and directed edges in the directed graph;
determining a starting point and an end point of each directed edge according to the communication direction of the directed edges;
determining a first element in the plurality of business systems only as an end point in all directed edges, determining a second element in the plurality of business systems only as an end point in all directed edges and simultaneously as a start point in the second directed edge, and determining a third element in the plurality of business systems only as a start point in all directed edges;
determining that the issuing sequence of the first element is the highest level, determining that the issuing sequence of the second element is the second highest level, determining that the issuing sequence of the third element is the lowest level, wherein the issuing sequence corresponding to the isolated point is issued randomly, the second element is issued after receiving the notification that the issuing of the first element is completed, and the third element is issued after receiving the notification that the issuing of the second element is completed.
2. The method of claim 1, wherein building a directed graph according to dependencies between each of the business systems comprises:
determining the dependency relationship of a service system combination according to the calling direction of an external interface, wherein the service system combination consists of two service systems which adopt the external interface for communication;
and counting the dependency relationship of all service system combinations, and establishing the directed graph according to the dependency relationship.
3. The method of claim 2, wherein determining the dependency of the service system combination according to the invocation direction of the external interface comprises:
determining a first external interface of a first business system in the plurality of business systems;
determining one or more second service systems for calling the first external interface in the plurality of service systems, wherein the service system combination is composed of the first service system and the second service system;
and taking the second service system as a calling system and the first service system as a called system, and establishing a dependency relationship between the first service system and the second service system.
4. The method of claim 3, wherein building the directed graph according to the dependencies comprises:
and establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function.
5. The method of claim 1, wherein determining the distribution order of the plurality of business systems from the directed graph comprises:
counting all directed edges of the directed graph;
establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that a target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship;
and determining the logic sequence of the constraint conditions as the issuing sequence of the service systems in the service system combination.
6. The method of claim 5, wherein after determining the logical order of the constraints as the distribution order of the business systems in the business system portfolio, the method further comprises:
and sequentially releasing the service systems in the service system combination according to the releasing sequence.
7. The method of claim 6, wherein sequentially publishing the service systems in the service system group according to the publishing order comprises:
analyzing the constraint condition, and determining whether a target service system to be issued has a precondition;
when the target business system has the precondition, waiting for the business system corresponding to the precondition to issue, and after the business system corresponding to the precondition is determined to issue, issuing the target business system; and when the target service system has no precondition, the target service system is issued, and after the issuance is finished, the service system corresponding to the target result is notified.
8. The method of claim 7, wherein determining that the service system release corresponding to the precondition is complete comprises:
determining whether a notification message sent by a service system corresponding to the precondition is received, wherein the notification message is used for indicating that the service system corresponding to the precondition has already been released;
and when the notification message is received, determining that the service system corresponding to the precondition completes the release, and when the notification message is not received, determining that the service system corresponding to the precondition does not complete the release.
9. The method of claim 1, wherein the plurality of business systems that determine the target business comprises one of:
determining a plurality of business systems in which a target business of a first application is associated with a plurality of second applications;
a plurality of business systems of a target business application of a first application program on a plurality of different servers are determined.
10. The method according to any of claims 1 to 9, wherein the target traffic comprises at least one of: ordering service, transfer service, conversation service, financing service, red package service and video service.
11. A distribution apparatus of a business system, comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a plurality of service systems of a target service, and each service system in the plurality of service systems corresponds to a function of the target service;
the establishing module is used for establishing a directed graph according to the dependency relationship among the service systems in the service systems, wherein the dependency relationship is determined based on the calling direction of the external interface;
the second determining module is used for determining the issuing sequence of the plurality of service systems according to the directed graph;
the second determining module includes:
the analysis unit is used for analyzing the directed graph to obtain isolated points and directed edges in the directed graph;
the first determining unit is used for determining the starting point and the end point of each directed edge according to the communication direction of the directed edges;
a second determination unit configured to determine, in the plurality of traffic systems, a first element that is only an end point in all the directed edges, determine, in the plurality of traffic systems, a second element that is only a start point in the second directed edge while being an end point in all the directed edges, and determine, in the plurality of traffic systems, a third element that is only a start point in all the directed edges;
a third determining unit, configured to determine that the issuing order of the first element is the highest level, determine that the issuing order of the second element is the next highest level, determine that the issuing order of the third element is the lowest level, determine that the issuing order corresponding to the orphan is the random issue, issue the second element after receiving the notification that the issuing of the first element is completed, and issue the third element after receiving the notification that the issuing of the second element is completed.
12. The apparatus of claim 11, wherein the establishing means comprises:
the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining the dependency relationship of a service system combination according to the calling direction of an external interface, and the service system combination consists of two service systems which adopt the external interface for communication;
and the establishing unit is used for counting the dependency relationship of all the service system combinations and establishing the directed graph according to the dependency relationship.
13. The apparatus of claim 12, wherein the determining unit comprises:
the first determining subunit is used for determining a first external interface of a first business system in the plurality of business systems;
a second determining subunit, configured to determine one or more second service systems that invoke the first external interface in the plurality of service systems, where the service system combination is composed of the first service system and the second service system;
and the first establishing subunit is used for establishing a dependency relationship between the first service system and the second service system by taking the second service system as a calling system and the first service system as a called system.
14. The apparatus of claim 13, wherein the establishing unit comprises:
and the second establishing subunit is used for establishing the directed edge of the directed graph by taking the second service system as a starting point, the first service system as an end point and the dependency relationship as an association function.
15. The apparatus of claim 11, wherein the second determining module comprises:
the statistical unit is used for counting all directed edges of the directed graph;
the establishing unit is used for establishing a constraint condition by using the direction of the directed edge, wherein the constraint condition is used for representing that a target result can be realized only under the condition that a precondition exists, and the precondition and the target result are a pair of service system combinations with dependency relationship;
and the determining unit is used for determining the logic sequence of the constraint conditions as the issuing sequence of the two service systems in the service system combination.
16. The apparatus of claim 15, further comprising:
and the issuing module is used for issuing the service systems in the service system combination in sequence according to the issuing sequence after the second determining module determines the logic sequence of the constraint conditions as the issuing sequence of the service systems in the service system combination.
17. The apparatus of claim 11, wherein the first determining module comprises one of:
a first determination unit, configured to determine a plurality of business systems in which a target business of a first application is associated with a plurality of second applications;
and the second determining unit is used for determining a plurality of service systems of the target service application of the first application program on a plurality of different servers.
18. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 10 when executed.
19. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 10.
CN201811271437.3A 2018-10-29 2018-10-29 Business system publishing method and device, storage medium and electronic device Active CN109636304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811271437.3A CN109636304B (en) 2018-10-29 2018-10-29 Business system publishing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811271437.3A CN109636304B (en) 2018-10-29 2018-10-29 Business system publishing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN109636304A CN109636304A (en) 2019-04-16
CN109636304B true CN109636304B (en) 2021-04-06

Family

ID=66066861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811271437.3A Active CN109636304B (en) 2018-10-29 2018-10-29 Business system publishing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN109636304B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489219B (en) * 2019-08-05 2022-05-03 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for scheduling functional objects
CN111813440A (en) * 2020-07-21 2020-10-23 北京千丁互联科技有限公司 Multithreading application issuing method and device
CN111930448B (en) * 2020-09-23 2020-12-25 南京梦饷网络科技有限公司 Method, electronic device, and storage medium for service distribution
CN113179329B (en) * 2021-05-24 2023-07-18 深圳平安智汇企业信息管理有限公司 Service issuing method and device, server and storage medium
CN113468248B (en) * 2021-09-06 2021-12-21 天津中新智冠信息技术有限公司 Data statistical method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576980A (en) * 2009-06-15 2009-11-11 用友软件股份有限公司 Method and device for arranging operational project sequence
CN106487912A (en) * 2016-10-26 2017-03-08 北京荣之联科技股份有限公司 The management being served by and dissemination method and device more
CN106548331A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 A kind of method and device for determining distribution order
CN108595316A (en) * 2018-04-20 2018-09-28 星环信息科技(上海)有限公司 Life cycle management method, manager, equipment and the medium of Distributed Application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10133996B2 (en) * 2014-04-22 2018-11-20 International Business Machines Corporation Object lifecycle analysis tool
CN104361073A (en) * 2014-11-12 2015-02-18 河海大学 User view-oriented process dependency relationship analysis method
CN108134766B (en) * 2016-12-01 2020-12-18 阿里巴巴集团控股有限公司 Service publishing method, device, system, server and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576980A (en) * 2009-06-15 2009-11-11 用友软件股份有限公司 Method and device for arranging operational project sequence
CN106548331A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 A kind of method and device for determining distribution order
CN106487912A (en) * 2016-10-26 2017-03-08 北京荣之联科技股份有限公司 The management being served by and dissemination method and device more
CN108595316A (en) * 2018-04-20 2018-09-28 星环信息科技(上海)有限公司 Life cycle management method, manager, equipment and the medium of Distributed Application

Also Published As

Publication number Publication date
CN109636304A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109636304B (en) Business system publishing method and device, storage medium and electronic device
CN108897854B (en) Monitoring method and device for overtime task
CN112860451A (en) Multi-tenant data processing method and device based on SaaS
CN103346974A (en) Controlling method of service process and network device
CN105306277A (en) Message scheduling method and message scheduling device for message queues
CN107527222B (en) Information processing method, device and system
CN106096926B (en) Event processing method, device, electronic device and storage medium
CN111127181A (en) Voucher bookkeeping method and device
CN110297815A (en) Data base management method, device, terminal and computer readable storage medium
CN105160540A (en) Online-to-offline service popularization system and method
CN110113176B (en) Information synchronization method and device for configuration server
CN115641180A (en) Request processing method, related device and equipment
CN112948081A (en) Method, device and equipment for processing task in delayed mode and storage medium
CN112363838A (en) Data processing method and device, storage medium and electronic device
CN107730380B (en) Method, system and server for processing joint account
CN111461599B (en) Mode state switching method and device, storage medium and electronic device
CN110544104B (en) Account determination method and device, storage medium and electronic device
CN109495575B (en) Service configuration method, system and ERP server
CN110543470A (en) Message early warning method and device, storage medium and electronic device
CN111210349A (en) Virtual asset transfer hosting method and device, electronic equipment and storage medium
CN110753114A (en) Data sharing method, cloud platform and system for industrial field
CN113592575B (en) Order determining method and device, storage medium and electronic device
CN110618920B (en) Communication method applied to TPC-E test and driver equipment
CN113947434A (en) Business processing method and device for multi-business component combination scene
CN116167835A (en) Service processing method, device, electronic equipment and computer readable 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