Service node control method, system, device and storage medium
By receiving user requests to query the business node status in the logistics warehousing and distribution system and re-executing failed business nodes, the system pressure and processing delay problems caused by the scheduled retry method are solved, the business flow speed and system stability are improved, and consumption is improved. experience.
Patent Information
- Application Number
- CN202011375930.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-11-30
AI Technical Summary
In the existing logistics warehousing and distribution system, when a business node fails to execute, improper setting of the scheduled retry method will lead to excessive system pressure or delayed processing, affecting business flow speed and consumer experience.
Provide a business node control method that queries the business node status by receiving user requests and directly re-executes the business node when receiving a replay request, avoiding waiting for the preset interval and reducing system processing burden.
It realizes on-demand query and re-execution of business nodes, solves the shortcomings of the scheduled retry method, improves business flow speed and system stability, reduces fault accumulation, and improves consumer experience.
Smart Images

Figure CN112487056B
Abstract
Description
Background Art
[0002] In the logistics warehousing and distribution system, there are multiple core business nodes, such as the business node for creating logistics orders, the business node for sending logistics orders to service providers, the business node for service providers to receive orders, the business node for confirming shipments, and the business node for changing inventory. In the operation of the logistics warehousing and distribution system, some business nodes may fail to execute due to system failures or network jitters. In the prior art, for the case of business node execution failure, the solution includes: retrying through a scheduled task, that is, retrying the business node at a certain preset interval. However, if the existing retry interval is set too short, it will cause excessive pressure on the logistics warehousing and distribution system. If it is set too long, it may cause the business node execution failure to be handled in time, resulting in too slow a logistics order business flow, affecting the consumer experience, and may also cause the failure of business node execution to accumulate and not be handled in time. Summary of the invention
[0003] In response to the problems in the prior art, the purpose of the present invention is to provide a service node control method, system, device and storage medium, which can query the execution status of the service node and re-execute the service node when a replay request is received, thereby solving the defects of the timed retry method used in the prior art.
[0004] An embodiment of the present invention provides a service node control method, comprising the following steps:
[0005] Receiving a user's business node information query request;
[0006] Querying the service node information corresponding to the service node information query request from a service node database, wherein the service node information includes a node execution status;
[0007] Receiving a first service node replay request from a user;
[0008] A second service node replay request is sent to the service replay interface of the service system, and the service system is configured to control the corresponding service node to re-execute the service script when receiving the second service node replay request.
[0009] In some embodiments, the service node database includes a distributed search engine.
[0010] In some embodiments, the service node information query request includes a node type of the service node being queried;
[0011] The querying of the service node information corresponding to the service node information query request from the service node database includes querying the service node information corresponding to the node type of the queried service node from the service node database.
[0012] In some embodiments, the service node information query request further includes the service ID being queried;
[0013] The querying of the service node information corresponding to the service node information query request from the service node database includes querying the node type of the queried service node and the service node information corresponding to the service ID from the service node database.
[0014] In some embodiments, the first service node replay request and the second service node replay request respectively include a node type of a service node that the user requests to replay;
[0015] The service system is configured to control the corresponding service node to re-execute the service script according to the node type of the service node requested to be replayed by the user when receiving the replay request of the second service node.
[0016] In some embodiments, the first service node replay request and the second service node replay request further include a service ID requested to be replayed by the user;
[0017] The service system is configured to, upon receiving the second service node replay request, control the corresponding service node to re-execute the service script corresponding to the service ID according to the node type of the service node requested to be replayed by the user.
[0018] In some embodiments, the sending of the second service node replay request to the service replay interface of the service system comprises the following steps:
[0019] Remotely call a service replay interface of the service system based on the HTTP protocol, and send a replay request for the second service node to the service replay interface.
[0020] In some embodiments, a business replay interface of the business system is remotely called based on ajax.
[0021] In some embodiments, the business system is further configured to obtain business node information from each business node and store it in the business node database.
[0022] In some embodiments, the business system is configured to obtain the interface request parameters of the business node, the node execution status and the node type of the business node from each business node based on the network request aspect.
[0023] In some embodiments, after querying the service node information corresponding to the service node information query request from the service node database, the following steps are also included:
[0024] Determine whether there is a business node whose execution status is failed;
[0025] If yes, a third service node replay request is sent to the service replay interface of the service system, and the service system is configured to control the corresponding service node to re-execute the service script upon receiving the third service node replay request.
[0026] The embodiment of the present invention further provides a service node control system, which is applied to the service node control method, and the system includes:
[0027] A request receiving module, used to receive a service node information query request from a user, and receive a first service node replay request from a user;
[0028] An information query module, configured to query the service node information corresponding to the service node information query request from the service node database upon receiving the service node information query request from the user, wherein the service node information includes the node execution status;
[0029] The node replay module is used to send a second service node replay request to the service replay interface of the service system when receiving a first service node replay request from the user. The service system is configured to control the corresponding service node to re-execute the service script when receiving the second service node replay request.
[0030] The embodiment of the present invention further provides a service node control device, including:
[0031] processor;
[0032] a memory storing executable instructions of the processor;
[0033] The processor is configured to execute the steps of the service node control method by executing the executable instructions.
[0034] An embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program implements the steps of the service node control method when executed by a processor.
[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0036] The service node control method, system, device and storage medium of the present invention have the following beneficial effects:
[0037] The present invention can query the execution status of the business node, which is convenient for the staff to understand the execution status of the business node on demand, and re-execute the business node when receiving a replay request. The staff can select the business node that failed to execute for replay based on the query status of the business node execution status, without waiting for the preset interval time, and will not cause excessive processing burden on the business system, thus solving the defects of the timed retry method used in the prior art. The business node control scheme of the present invention can be applied not only to the business node control of the logistics warehousing and distribution system, but also to the business node control of other types of business systems, such as service order management systems of other service industries. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0039] Figure 1 is a flow chart of a service node control method according to an embodiment of the present invention;
[0040] Figure 2 is a schematic diagram of the structure of a business system according to an embodiment of the present invention;
[0041] Figure 3 is a flow chart of automatically requesting a service node to replay according to an embodiment of the present invention;
[0042] Figure 4 is a schematic diagram of the structure of a service node control system according to an embodiment of the present invention;
[0043] Figure 5 is a schematic diagram of the interaction between a service node control system and other systems according to an embodiment of the present invention;
[0044] Figure 6 It is a structural diagram of a service node control system after adding automatic replay judgment according to an embodiment of the present invention;
[0045] Figure 7 is a schematic diagram of the structure of a service node control device according to an embodiment of the present invention;
[0046] Figure 8 It is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0048] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0049] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined. Therefore, the actual execution order may be changed according to the actual situation.
[0050] like Figure 1 As shown, an embodiment of the present invention provides a service node control method, comprising the following steps:
[0051] S100: receiving a service node information query request from a user;
[0052] S200: Querying the service node information corresponding to the service node information query request from a service node database, wherein the service node information includes a node execution status;
[0053] S300: receiving a first service node replay request from a user;
[0054] S400: Sending a second service node replay request to a service replay interface of the service system, wherein the service system is configured to control the corresponding service node to re-execute the service script upon receiving the second service node replay request.
[0055] In the present invention, the replay of a service node refers to the re-execution of its service script by the service node. The present invention can query the execution status of the service node when receiving a query request from the user through steps S100 and S200, so that the user can understand the execution status of the service node as needed, and re-execute the service node when receiving a replay request through steps S300 and S400. The user can select the service node that failed to execute to replay according to the query status of the service node execution status, without waiting for the preset interval time, and will not cause excessive processing burden on the service system, thereby solving the defects of the timed retry method used in the prior art.
[0056] The service node control method of the present invention can be applied to an electronic device, which can communicate with a service node database to obtain service node information corresponding to a service node information query request, and can also communicate with a service replay interface of a service system to request the service system to replay a specified service node through the service replay interface. The electronic device can be a server, a notebook, a desktop computer, and the like.
[0057] like Figure 2 The schematic diagram of the structure of the business system is shown. The business system M200 includes multiple business nodes M210, each of which executes a different business script. The business system M200 provides a business replay interface M220 for the business node control method of the present invention to call.
[0058] In step S100, receiving the service node information query request of the user may be receiving the service node information query request sent by the user through a user terminal, and the user terminal may be a terminal device such as a mobile terminal, a laptop computer, or a desktop computer used by the user. In another embodiment, the service node control method may also be applied to an electronic device having an input device, and in step S100, receiving the service node information query request of the user may be receiving the service node information query request of the user directly through the input device.
[0059] The step S200, after querying the business node information corresponding to the business node information query request from the business node database, may further include the step of displaying the business node information for the user to view. In this embodiment, the user refers to the staff who performs management of the business node. The business node information can be displayed in a variety of different ways. For example, when the business node is applied to an electronic device with a display device, the queried business node information can be directly displayed in the display device. The business node can also send the queried business node information to the user end, which can be the terminal that sends the business node information query request in step S100, or it can be a designated user terminal that has a preset mapping relationship with the queried business node.
[0060] In step S300, receiving the user's first service node replay request may be receiving a replay request sent by the user through the user terminal. In another implementation, the service node control method may also be applied to an electronic device with an input device, and in step S300, receiving the user's first service node replay request may be receiving the user's first service node replay request directly by the electronic device through the input device.
[0061] The following is an example of applying the business node control method of the present invention to the field of logistics to implement business node control of a logistics warehouse and distribution system. However, it is understandable that the present invention is not limited to this. The business node control scheme of the present invention can be applied not only to business node control of a logistics warehouse and distribution system, but also to business node control of other types of business systems, such as service order management systems of other service industries.
[0062] In this embodiment, the service node database may use a distributed search engine, such as the Elasticsearch engine. The Elasticsearch engine provides a distributed multi-user full-text search engine with the characteristics of real-time search, stability, reliability, speed, and easy installation and use.
[0063] like Figure 2As shown, the business system is also configured to obtain business node information from each business node and store it in the business node database M300. Specifically, the business node information at least includes the interface request parameters of the business node, the node execution status of the business node and the node type. Further, in this embodiment, the business system is configured to obtain the interface request parameters of the business node, the node execution status of the business node and the node type from each business node based on the network request aspect. Aspect refers to a technology that can dynamically and uniformly add functions to the program without modifying the source code through pre-compilation and runtime dynamic proxy, and can separate the code such as logging and data collection from the logic code of the business system itself. The business system described here obtains the interface request parameters of the business node, the node execution status of the business node and the node type from each business node based on the network request aspect, that is, the code part that collects the business node information and stores it in the business node database is added to the business system in the form of aspect, which can separate this part of the function from the business system, so that multiple actions can share the function, and will not affect the original logic of the business system.
[0064] In this embodiment, the business node information query request includes the node type of the queried business node. When the business node control method is applied to the logistics field, the business system refers to the logistics warehouse distribution system, in which the business node types may include the business node type for creating a logistics order, the business node type for sending a logistics order to a service provider, the business node type for the service provider to receive an order, the business node type for confirming shipment, and the business node type for changing inventory.
[0065] In step S100, in the received service node information query request, a NodeType (node type) enumeration can be defined to distinguish different service node types. In step S200, the service node information corresponding to the service node information query request is queried, including querying the service node information of the service node type in the service node information query request. When the service node information is queried and returned to the user, a Boolean type variable can be used to indicate whether the service node is executed successfully, that is, to indicate the node execution status.
[0066] In this embodiment, the logistics warehouse distribution system can process multiple businesses at the same time, and each business corresponds to a unique logistics order number, which can be used as a business ID to identify this business. In step S100, the received business node information query request can also include the queried business ID to implement the execution status query of a specific business node for a specific business ID.
[0067] In the step S200, the business node information corresponding to the business node information query request is queried from the business node database, including querying the node type of the queried business node and the business node information corresponding to the business ID from the business node database, that is, the status of whether the node type of the queried business node executes the business corresponding to a specific business ID successfully. For example, the business node information query request includes the node type of the issuing service provider and at least one specific logistics order number A. The business system is configured to control the issuing service provider node type to re-execute the business script corresponding to the specific logistics order number A, so as to re-execute the issuing service provider action of the specific logistics order number A. Therefore, the user can implement business node information query in three dimensions of business ID+business node type+node execution status by sending a business node information query request.
[0068] In another embodiment, the service node information query request may also only include the type of the service node. The service node database may be set to query the execution status of all services of the service nodes corresponding to the type of the service node within a preset time range and displayed.
[0069] In this embodiment, the first service node replay request in step S300 and the second service node replay request in step S400 respectively include the node type of the service node requested to be replayed by the user.
[0070] In the present invention, the "first" and "second" in the first service node replay request and the second service node replay request only represent the difference between the sender and the receiver. That is, the sender of the first service node replay request is the user, and the receiver is the electronic device to which the service node control method is applied, and the sender of the second service node is the electronic device to which the service node control method is applied, and the receiver is the service system. Since the second service node replay request is generated according to the first service node replay request, the service node types that need to be replayed pointed to in the first service node replay request and the second service node replay request are the same.
[0071] The business system is configured to control the corresponding business node to re-execute the business script according to the node type of the business node requested to be replayed by the user when receiving the second business node replay request. For example, if the first business node replay request sent by the user is for the business node type of the service provider receiving the order, then the second business node replay request sent to the business system is also for the business node type of the service provider receiving the order. After receiving the second business node replay request, the business system controls the business node of the service provider node to re-execute the business script to implement the replay function.
[0072] In this embodiment, when the business system processes multiple businesses simultaneously, the first business node replay request in step S300 and the second business node replay request in step S400 also include the business ID of the user requesting replay. Similarly, each business corresponds to a unique logistics order number, which can be used as a business ID to identify this business. Since the second business node replay request is generated based on the first business node replay request, the business IDs that need to be replayed pointed to in the first business node replay request and the second business node replay request are the same.
[0073] The business system is configured to control the corresponding business node to re-execute the business script corresponding to the business ID according to the node type of the business node requested to be replayed by the user when receiving the second business node replay request. For example, if the received first business node replay request includes a shipment confirmation business node type and at least one specific logistics order number B, then the second business node replay request including the shipment confirmation business node type and at least one specific logistics order number B is sent to the business system. After receiving the second business node replay request, the business system controls the shipment confirmation business node to re-execute the shipment confirmation action of the specific logistics order number B to achieve business node replay.
[0074] In this embodiment, the service replay interface of the service system is an interface based on HTTP (HyperText Transfer Protocol). In step S400, sending the second service node replay request to the service replay interface of the service system includes: remotely calling the service replay interface of the service system based on HTTP protocol, and sending the second service node replay request to the service replay interface.
[0075] In this embodiment, in step S400, when the business replay interface of the business system is remotely called, the business replay interface of the business system is remotely called based on ajax. By remotely calling the HTTP interface based on ajax, data can be exchanged with the business system through ajax without refreshing the page.
[0076] Therefore, by adopting the service node control method of the present invention, after the user queries the service nodes and node execution status corresponding to the service ID that need to be known through steps S100 and S200, the service nodes that failed to execute can be manually selected according to the node execution status, and it can be determined that some or all of the service nodes that failed to execute need to be replayed, and then the replay request for the service nodes that need to be replayed can be sent through steps S300 and S400.
[0077] Furthermore, in the present invention, after obtaining the service node information from the service node database through step S100 and step S200, the service node to be replayed can be automatically selected according to the node execution status in the service node information, and a service node replay request can be automatically sent to the service system, thereby realizing the automation of the entire node query and replay process. Specifically, Figure 3 As shown, after the step S200: querying the service node information corresponding to the service node information query request from the service node database, the following steps are also included:
[0078] S500: Determine whether there is a service node whose node execution status is execution failure;
[0079] S600: If yes, sending a third service node replay request to the service replay interface of the service system, wherein the service system is configured to control the corresponding service node to re-execute the service script upon receiving the third service node replay request;
[0080] S700: If there is no service node whose node execution status is execution failure, the current process ends.
[0081] Here, the third service node replay request refers to the service node replay request automatically generated based on the service node that failed to execute, if there is a service node that failed to execute, after the service execution status of each service node is queried in step S200, and sent to the service system by the electronic device to which the service node control method is applied. The service node type included in the third service node replay request is the type of the service node that failed to execute.
[0082] Furthermore, after determining that there is a business node whose node execution status is failed, the business ID of the failed execution can be further obtained. The third business node replay request is generated according to the type of the failed business node and the corresponding failed business ID and sent to the business system. The business system is configured to control the corresponding business node to re-execute the business script corresponding to the business ID when receiving the third business node replay request, so as to achieve the replay of a specific business node of a specific business ID. For example, if it is found through step S200 that the change inventory node execution of the logistics order number C fails, a third business node replay request including the logistics order number C and the change inventory node type is generated and sent to the business system. After the business system receives the third business node replay request, it controls the change inventory node to re-execute the change inventory action of the specific logistics order number C to achieve the replay of the business node.
[0083] like Figure 4 and Figure 5As shown, the embodiment of the present invention further provides a service node control system M100, which is applied to the service node control method, and the system includes:
[0084] The request receiving module M110 is used to receive a service node information query request from a user, and receive a first service node replay request from a user;
[0085] The information query module M120 is used to query the service node information corresponding to the service node information query request from the service node database M300 when receiving the service node information query request from the user, wherein the service node information includes the node execution status;
[0086] The node replay module M130 is used to send a second service node replay request to the service replay interface M220 of the service system M200 when receiving a first service node replay request from the user. The service system M200 is configured to control the corresponding service node M210 to re-execute the service script when receiving the second service node replay request.
[0087] The present invention uses the request receiving module M110 and the information query module M120 to query the execution status of the business node when receiving the user's query request, so that the user can understand the execution status of the business node on demand, and re-execute the business node when receiving the replay request through the request receiving module M110 and the node replay module M130. The user can select the business node that failed to execute to replay according to the query status of the business node execution status without waiting for the preset interval time, and will not cause excessive processing burden on the business system M200, thereby solving the defects of the timed retry method used in the prior art.
[0088] like Figure 5 As shown, the service node control system M100 of the present invention can be applied to an electronic device, which can communicate with the service node database M300 to obtain the service node information corresponding to the service node information query request from the service node database M300, and can also communicate with the service replay interface M220 of the service system M200 to request the service system M200 to replay the specified service node M210 through the service replay interface M220. The electronic device can be a server, a notebook, a desktop computer, etc.
[0089] The request receiving module M110 is used to interact with the user, and the interaction method may be that the request receiving module M110 obtains the user's request from the user terminal, and can send the queried business node information to the user terminal, or it may interact with the user through the display device and input device of the electronic device itself deployed by the business node control system. Specifically, the request receiving module M110 receives the user's business node information query request, which may be communicated with the user terminal and receive the business node information query request sent by the user through the user terminal, or it may be displayed on the display screen of the electronic device for the user to select and view the business nodes, and obtain the user's selection of the business nodes to be viewed through the input device (such as a keyboard, a touch screen, a mouse, etc.).
[0090] Specifically, the request receiving module M110 receives the user's first service node replay request, which may be to communicate with the user terminal and receive the first service node replay request sent by the user through the user terminal. For example, the request receiving module M110 may send the service node information queried by the information query module M120 to the user terminal, and the user terminal displays the execution status of each service node. The user may directly select the service node to be replayed on the user terminal, and the user terminal sends the first service node replay request to the request receiving module M110 according to the user's selection. In another embodiment, the request receiving module M110 may display the service node information queried by the information query module M120 on the display device of the electronic device, and the user may select the service node to be replayed through the input device, thereby sending the first service node replay request. In addition, the user may also send the service node information query request and the first service node replay request by inputting the number, name, etc. of the service node type.
[0091] The business node control system can be applied in the field of logistics to realize the business node control of the logistics warehousing and distribution system, and can also be applied to the service order management system of other service industries. When applied in the field of logistics, the business node information query request and the first business node replay request may include the type of business node specified by the user to realize the business node information query of the type of specific business node and the business node replay of the type of specific business node. The business node information query request and the first business node replay request may also include the business ID specified by the user. In the field of logistics, the business ID is the logistics order number used as the business identifier. Since the second business node replay request is generated based on the first business node replay request, the type of business node and the business ID it includes are the same as those of the first business node replay request.
[0092] When the service node information query request includes the type and service ID of the service node being queried, the information query module M120 queries the service node information including the information query module M120 querying the node type of the service node being queried and the service node information corresponding to the service ID from the service node database M300. The service node database M300 may be a distributed search engine, such as an Elasticsearch engine.
[0093] When the first service node replay request includes the type of service node and service ID, when the node replay module M130 receives the first service node replay request from the user, it generates a second service node replay request according to the type of service node and service ID, and sends it to the service replay interface M220 of the service system M200. The service system M200 is configured to control the corresponding service node M210 to re-execute the service script corresponding to the service ID according to the node type of the service node requested to be replayed by the user when receiving the second service node replay request. The service replay interface M220 of the service system M200 may be an interface based on the HTTP protocol. The node replay module M130 remotely calls the service replay interface M220, which may be a remote call to the HTTP interface based on the ajax method, but the present invention is not limited to this.
[0094] Furthermore, in the present invention, after obtaining the service node information from the service node database M300 through the request receiving module M110 and the information query module M12, the service node to be replayed can be automatically selected according to the node execution status in the service node information, and a service node replay request can be automatically sent to the service system M200, thereby realizing the automation of the entire node query and replay process. Specifically, Figure 6 As shown, the business node control system may further include a replay judgment module M140, which is used to judge whether there is a business node with a node execution status of failed execution after the information query module M120 queries the node execution status of the business node. If so, a third business node replay request is generated, and the third business node replay request includes the type of the business node that failed to execute. If there is no business node with a node execution status of failed execution, the current judgment process is terminated.
[0095] The node replay module M130 is also used to send a third business node replay request to the business replay interface M220 of the business system M200 after the replay judgment module M140 generates a third business node replay request. The business system M200 is configured to control the corresponding business node M210 to re-execute the business script when receiving the third business node replay request.
[0096] Furthermore, after the replay judgment module M140 determines that there is a business node with a node execution status of failed execution, the business ID of the failed execution can be further obtained. The third business node replay request is generated according to the type of the failed execution business node and the corresponding failed execution business ID, and is sent to the business system M200 by the node replay module M130. The business system M200 is configured to control the corresponding business node to re-execute the business script corresponding to the business ID when receiving the third business node replay request, so as to achieve the replay of a specific business node of a specific business ID.
[0097] An embodiment of the present invention further provides a service node control device, comprising a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to execute the steps of the service node control method by executing the executable instructions.
[0098] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "platforms".
[0099] Refer to the following Figure 7 The electronic device 600 according to this embodiment of the present invention is described. Figure 7 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Figure 7 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0101] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps of various exemplary embodiments of the present invention described in the service node control method section of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 Follow the steps shown in .
[0102] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0103] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0104] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0105] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0106] In the service node control device, the program in the memory implements the steps of the service node control method when being executed by the processor. Therefore, the computer storage medium can also obtain the technical effect of the service node control method.
[0107] The embodiment of the present invention further provides a computer-readable storage medium for storing a program, wherein the program is executed by a processor to implement the steps of the service node control method. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is executed on a terminal device, the program code is used to enable the terminal device to perform the steps of various exemplary implementations of the present invention described in the service node control method section of the present specification.
[0108] refer to Figure 8 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0109] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0110] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0111] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0112] When the program in the computer storage medium is executed by the processor, the steps of the service node control method are implemented. Therefore, the computer storage medium can also obtain the technical effect of the service node control method.
[0113] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A service node control method, It is characterized in that The method comprises: Receiving a user's business node information query request; querying the service node information corresponding to the service node information query request from a service node database, and displaying the queried service node information to the user, wherein the service node information includes a node execution state and a node type of the queried service node, and the service node database includes a distributed search engine; Receiving a first service node replay request from a user; Remotely call the service replay interface of the service system based on the HTTP protocol, and send a second service node replay request to the service replay interface of the service system, wherein the service system is configured to control the corresponding service node to re-execute the service script according to the node type of the service node requested to be replayed by the user upon receiving the second service node replay request; The business system is also configured to obtain business node information from each business node and store it in the business node database, wherein the business system is configured to obtain the interface request parameters of the business node, the node execution status and the node type of the business node from each business node based on the network request aspect.
2. The service node control method according to claim 1, It is characterized in that The querying of the service node information corresponding to the service node information query request from the service node database includes querying the service node information corresponding to the node type of the queried service node from the service node database.
3. The service node control method according to claim 2, It is characterized in that The service node information query request also includes the service ID being queried; The querying of the service node information corresponding to the service node information query request from the service node database includes querying the node type of the queried service node and the service node information corresponding to the service ID from the service node database.
4. The service node control method according to claim 1, It is characterized in that The first service node replay request and the second service node replay request respectively include a node type of a service node requested to be replayed by a user; The service system is configured to control the corresponding service node to re-execute the service script according to the node type of the service node requested to be replayed by the user when receiving the replay request of the second service node.
5. The service node control method according to claim 4, It is characterized in that The first service node replay request and the second service node replay request further include a service ID requested to be replayed by the user; The service system is configured to, upon receiving the second service node replay request, control the corresponding service node to re-execute the service script corresponding to the service ID according to the node type of the service node requested to be replayed by the user.
6. The service node control method according to claim 1, It is characterized in that A business replay interface of the business system is remotely called based on ajax.
7. The service node control method according to claim 1, It is characterized in that After querying the service node information corresponding to the service node information query request from the service node database, the following steps are also included: Determine whether there is a business node whose execution status is failed; If yes, a third service node replay request is sent to the service replay interface of the service system, and the service system is configured to control the corresponding service node to re-execute the service script upon receiving the third service node replay request.
8. A business node control system, It is characterized in that The service node control method applied to any one of claims 1 to 7, the system comprising: A request receiving module, used to receive a service node information query request from a user, and receive a first service node replay request from a user; An information query module, configured to query the service node information corresponding to the service node information query request from the service node database upon receiving the service node information query request from the user, wherein the service node information includes the node execution status; The node replay module is used to send a second service node replay request to the service replay interface of the service system when receiving a first service node replay request from the user. The service system is configured to control the corresponding service node to re-execute the service script when receiving the second service node replay request.
9. An electronic device, It is characterized in that The electronic device comprises: processor; A memory having a computer program stored thereon, wherein the computer program, when executed by the processor, executes the service node control method according to any one of claims 1 to 7.
10. A computer storage medium, It is characterized in that A computer program is stored, and when the computer program is executed by a processor, the service node control method according to any one of claims 1 to 7 is executed.
