CN112487056A - Service node control method, system, device and storage medium - Google Patents

Service node control method, system, device and storage medium Download PDF

Info

Publication number
CN112487056A
CN112487056A CN202011375930.7A CN202011375930A CN112487056A CN 112487056 A CN112487056 A CN 112487056A CN 202011375930 A CN202011375930 A CN 202011375930A CN 112487056 A CN112487056 A CN 112487056A
Authority
CN
China
Prior art keywords
service node
service
node
request
replay
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.)
Pending
Application number
CN202011375930.7A
Other languages
Chinese (zh)
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.)
Shanghai Xunmeng Information Technology Co Ltd
Original Assignee
Shanghai Xunmeng Information 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 Shanghai Xunmeng Information Technology Co Ltd filed Critical Shanghai Xunmeng Information Technology Co Ltd
Priority to CN202011375930.7A priority Critical patent/CN112487056A/en
Publication of CN112487056A publication Critical patent/CN112487056A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a system, a device and a storage medium for controlling a service node, wherein the method comprises the following steps: receiving a service node information query request of a user; inquiring service node information corresponding to the service node information inquiry request from a service node database, wherein the service node information comprises a node execution state; receiving a first service node replay request of a user; and 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 execute the service script again when receiving the second service node replay request. The invention can inquire the service node execution state and re-execute the service node when receiving the replay request, thereby solving the defects of the prior art adopting a timing retry method.

Description

Service node control method, system, device and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a system, a device, and a storage medium for controlling a service node.
Background
In the logistics distribution system, there are a plurality of core service nodes, such as a service node for creating a logistics list, a service node for sending the logistics list to a service provider, a service node for receiving the list by the service provider, a service node for confirming delivery, a service node for changing inventory, and the like. In the operation of the logistics distribution system, some service nodes may fail to execute due to system failure or network jitter. In the prior art, for the case of failed execution of a service node, the solution includes: retrying is carried out in a timed task mode, namely, the service node is retried at regular preset interval time, however, if the existing retry interval time is set to be too short, the pressure of a logistics distribution system is too large, and if the existing retry interval time is set to be too long, the failed execution processing of the service node may be untimely, the logistics single service flow speed is too slow, the experience of consumers is affected, and the failed execution failure fault accumulation of the service node may be caused to cause the failure processing to be too late.
Disclosure of Invention
In view of the problems in the prior art, an object of the present invention is to provide a method, a system, a device, and a storage medium for controlling a service node, which can query an execution state of the service node and re-execute the service node when receiving a replay request, thereby solving the drawbacks of the prior art that employs a timing retry method.
The embodiment of the invention provides a service node control method, which comprises the following steps:
receiving a service node information query request of a user;
inquiring service node information corresponding to the service node information inquiry request from a service node database, wherein the service node information comprises a node execution state;
receiving a first service node replay request of a user;
and 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 execute the service script again when receiving the second service node replay request.
In some embodiments, the service node database comprises a distributed search engine.
In some embodiments, the service node information query request includes a node type of the service node being queried;
the querying, from the service node database, the service node information corresponding to the service node information querying request includes querying, from the service node database, service node information corresponding to the node type of the queried service node.
In some embodiments, the service node information query request further includes a queried service ID;
the querying, from the service node database, the service node information corresponding to the service node information querying request includes querying, from the service node database, the node type of the queried service node and the service node information corresponding to the service ID.
In some embodiments, the first service node replay request and the second service node replay request each comprise a node type of a service node requested to be replayed by a user;
and the service system is configured to control the corresponding service node to execute the service script again 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.
In some embodiments, the first service node replay request and the second service node replay request further include a service ID requested for replay by a user, respectively;
and the service system is configured to 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 when receiving the replay request of the second service node.
In some embodiments, said sending the second service node replay request to the service replay interface of the service system comprises the steps of:
and remotely calling a service replay interface based on an HTTP (hyper text transport protocol) protocol of the service system, and sending the replay request of the second service node to the service replay interface.
In some embodiments, a service replay interface of the service system is remotely invoked based on ajax.
In some embodiments, the service system is further configured to obtain service node information from each service node and store the service node information in the service node database.
In some embodiments, the service system is configured to obtain the interface request parameters of the service node, the node execution state of the service node, and the node type from each service node based on a network request profile.
In some embodiments, after querying the service node information corresponding to the service node information query request from the service node database, the method further includes the following steps:
judging whether a node execution state is a service node with execution failure;
and if so, sending a third service node replay request to a service replay interface of the service system, and controlling the corresponding service node to execute the service script again when the service system receives the third service node replay request.
The embodiment of the invention also provides a service node control system, which is applied to the service node control method, and the system comprises:
the request receiving module is used for receiving a service node information inquiry request of a user and receiving a first service node replay request of the user;
an information query module, configured to query, when receiving a service node information query request of a user, service node information corresponding to the service node information query request from a service node database, where the service node information includes a node execution state;
and the node replay module is used for sending a second service node replay request to a service replay interface of the service system when receiving a first service node replay request of a user, and the service system is configured to control the corresponding service node to execute the service script again when receiving the second service node replay request.
An embodiment of the present invention further provides a service node control device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the service node control method via execution of the executable instructions.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed by a processor, the method for controlling a service node is implemented.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The service node control method, system, device and storage medium of the invention have the following beneficial effects:
the invention can inquire the execution state of the service node, is convenient for the staff to know the execution condition of the service node as required, and executes the service node again when receiving the replay request, and the staff can select the service node with failed execution to replay according to the inquiry condition of the execution state of the service node without waiting for the preset interval time, and can not cause overlarge processing burden of a service system, thereby overcoming the defects of the prior art adopting a timing retry method. The service node control scheme of the invention can be applied to the service node control of a logistics distribution system, and can also be applied to the service node control of other types of service systems, such as service management systems of other service industries and the like.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
Fig. 1 is a flowchart of a service node control method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a business system according to an embodiment of the present invention;
FIG. 3 is a flow diagram of an embodiment of the present invention for automatically requesting service node replay;
fig. 4 is a schematic structural diagram of a service node control system according to an embodiment of the present invention;
figure 5 is a schematic diagram of a service node control system interacting with other systems in accordance with one embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service node control system after adding an automatic replay judgment according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a service node control device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of 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.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
As shown in fig. 1, an embodiment of the present invention provides a service node control method, including the following steps:
s100: receiving a service node information query request of a user;
s200: inquiring service node information corresponding to the service node information inquiry request from a service node database, wherein the service node information comprises a node execution state;
s300: receiving a first service node replay request of a user;
s400: and 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 execute the service script again when receiving the second service node replay request.
In the present invention, the service node replays, that is, the service node re-executes its service script. Through steps S100 and S200, the invention can inquire the service node execution state when receiving the inquiry request of the user, thereby facilitating the user to know the service node execution condition according to the requirement, and through steps S300 and S400, the service node is re-executed when receiving the replay request, the user can select the service node with failed execution to replay according to the inquiry condition of the service node execution state, without waiting for the preset interval time, and without causing overlarge processing burden of the service system, thereby solving the defects existing in the prior art adopting the timing retry method.
The service node control method of the invention can be applied to an electronic device, and the electronic device can communicate with a service node database to obtain the service node information corresponding to the service node information inquiry request, and can also communicate with a service replay interface of a service system to request the service system to replay the appointed service node through the service replay interface. The electronic device may be a server, a notebook, a desktop, etc.
Fig. 2 shows a schematic structural diagram of a business system. The service system M200 includes a plurality of service nodes M210, and each service node M210 executes a different service script. The service system M200 provides a service replay interface M220 for the service node control method of the present invention to call.
In step S100, the service node information query request of the user is received, which may be a service node information query request sent by the user through a user side, where the user side may be a mobile terminal, a laptop, a desktop, or other terminal device used by the user. In another embodiment, the service node control method may also be applied to an electronic device having an input device, where in step S100, a service node information query request of a user is received, or the electronic device may directly receive the service node information query request of the user through the input device.
In the step S200, after the service node information corresponding to the service node information query request is queried from the service node database, the method may further include displaying the service node information for a user to view. In this embodiment, the user refers to a worker who performs management by the service node. The service node information may be presented in a number of different ways. For example, when the service node is applied to an electronic device having a display device, the queried service node information may be directly displayed in the display device. The service node may also send the queried service node information to the user side, where the user side may be the terminal that sends the service node information query request in step S100, or may be a designated user terminal that has a preset mapping relationship with the queried service node.
In step S300, the receiving of the first service node playback request of the user may be receiving a playback request sent by the user through a user side. In another embodiment, the service node control method may also be applied to an electronic device having an input device, and the step S300 may be implemented by receiving a first service node replay request of a user, or by directly receiving the first service node replay request of the user through the input device by the electronic device.
The following description will be given taking an example of applying the service node control method of the present invention to the field of logistics, and implementing service node control of a logistics distribution system. It will be understood that the invention is not limited thereto. The service node control scheme of the invention can be applied to the service node control of a logistics distribution system, and can also be applied to the service node control of other types of service systems, such as service management systems of other service industries and the like.
In this embodiment, the service node database may employ a distributed search engine, such as an Elasticsearch engine. The Elasticissearch engine provides a full-text search engine with distributed multi-user capability, and has the characteristics of real-time search, stability, reliability, quickness and convenience in installation and use.
As shown in fig. 2, the service system is further configured to obtain service node information from each service node and store the service node information in the service node database M300. Specifically, the service node information at least includes an interface request parameter of the service node, a node execution state of the service node, and a node type. Further, in this embodiment, the service system is configured to obtain the interface request parameter of the service node, the node execution state of the service node, and the node type from each service node based on a network request profile. The section refers to a technology which can realize that functions are dynamically and uniformly added to a program under the condition of not modifying a source code through a precompilation mode and a dynamic agent in a running period, and codes such as log records and data acquisition can be divided from logic codes of a service system. The service system acquires interface request parameters of the service nodes, node execution states of the service nodes and node types from the service nodes based on a network request section mode, namely, code parts which collect service node information and store the service node information in a service node database are added into the service system in a section mode, the functions of the code parts can be separated from the service system, a plurality of actions can share the functions, and original logics of the service system cannot be influenced.
In this embodiment, the service node information query request includes the node type of the service node being queried. When the service node control method is applied to the field of logistics, the service system refers to a logistics distribution system, and the service node types can be a service node type for creating a logistics list, a service node type for sending the logistics list to a service provider, a service node type for receiving the list by the service provider, a service node type for confirming delivery, a service node type for changing inventory and the like.
In step S100, in the received service node information query request, NodeType enumeration may 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 inquired and returned to the user, a boolean variable can be used to indicate whether the service node is successfully executed, i.e. to indicate the node execution state.
In this embodiment, the logistics allocation system can process multiple services simultaneously, each service corresponding to a unique logistics list number, which can be used as a service ID to identify the service. In the step S100, the received service node information query request may further include a queried service ID to implement an execution status query for a specific service node of a specific service ID.
In step S200, the service node information corresponding to the service node information query request is queried from the service node database, where the service node information includes a node type of the queried service node and service node information corresponding to the service ID, that is, a state of whether a service corresponding to a specific service ID is executed by the node type of the queried service node is successful. For example, the service node information query request includes a node type of a down-sending service provider and at least one specific logistics list number A. The service system is configured to control the node type of the issuing server to re-execute the service script corresponding to the specific logistics list number a, so as to re-execute the action of the issuing server of the specific logistics list number a. Therefore, the user can realize the service node information query in three dimensions of service ID + service node type + node execution state by sending the service node information query request.
In another embodiment, the service node information query request may also include only the type of the service node. The execution states of all services of the service nodes corresponding to the types of all the service nodes in the preset time range stored in the service node database can be inquired and displayed.
In this embodiment, the first service node replay request in step S300 and the second service node replay request in step S400 respectively include a node type of a service node requested to be replayed by the user.
In the present invention, "first" and "second" in the first service node replay request and the second service node replay request are merely different to represent the sender and the receiver. That is, the sender of the first service node replay request is a user, the receiver is an electronic device applying the service node control method, the sender of the second service node is an electronic device applying the service node control method, and the receiver is a service system. Since the second service node replay request is generated from the first service node replay request, the types of service nodes requiring replay, which are pointed to in the first service node replay request and the second service node replay request, are the same.
And the service system is configured to control the corresponding service node to execute the service script again 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. For example, a first service node replay request sent by a user is directed to a service node type of a service provider order, and a second service node replay request sent to the service system is also directed to a service node type of a service provider order. And after receiving the second service node replay request, the service system controls the service node of the service provider node to execute the service script again so as to realize the replay function.
In this embodiment, when the service system processes a plurality of services simultaneously, the first service node replay request in step S300 and the second service node replay request in step S400 further include service IDs requested to be replayed by the user, respectively. Likewise, each service corresponds to a unique physical distribution list number, which can be used as a service ID to identify the service. Since the second service node replay request is generated from the first service node replay request, the service ID to be replayed, which is pointed in the first service node replay request and the second service node replay request, is the same.
And the service system is configured to 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 when receiving the replay request of the second service node. For example, the received first service node replay request comprises a confirmed shipping service node type and at least one specific logistics list number B, and then a second service node replay request comprising the confirmed shipping service node type and the at least one specific logistics list number B is sent to the service system. And after receiving the second service node replay request, the service system controls the confirmed delivery service node to re-execute the confirmed delivery action of the specific logistics list number B so as to realize the service node replay.
In this embodiment, the service playback interface of the service system is an interface based on an HTTP (HyperText Transfer Protocol) Protocol. In step S400, sending a second service node replay request to a service replay interface of the service system, where the step includes: and remotely calling a service replay interface based on an HTTP (hyper text transport protocol) protocol of the service system, and sending the replay request of the second service node to the service replay interface.
In this embodiment, in step S400, when the service playback interface of the service system is remotely invoked, the service playback interface of the service system is remotely invoked based on ajax. By remotely calling the HTTP interface based on the ajax mode, data can be exchanged with the service system in the ajax mode under the condition that the page is not refreshed.
Therefore, by using the service node control method of the present invention, after the user inquires about the service node to be known and the node execution state corresponding to the service ID through steps S100 and S200, the service node with execution failure can be manually selected according to the node execution state, it is determined that the part or all of the service nodes with execution failure need to be replayed, and then the sending of the replay request of the service node with execution failure is realized through steps S300 and S400.
Further, in the present invention, after the service node information is obtained from the service node database through step S100 and step S200, the service node to be replayed may be automatically selected according to the node execution state in the service node information, and the service node replay request is automatically sent to the service system, thereby implementing automation of the whole node query and replay process. Specifically, as shown in fig. 3, the step S200: after the service node information corresponding to the service node information query request is queried from the service node database, the method further comprises the following steps:
s500: judging whether a node execution state is a service node with execution failure;
s600: if yes, sending a third service node replay request to a service replay interface of a service system, and controlling the corresponding service node to execute the service script again when the service system receives the third service node replay request;
s700: if the node execution state is not the service node with failed execution, the current process is ended.
Here, the third service node replay request refers to a service node replay request generated based on a service node having failed execution if there is a service node having failed execution after querying the service execution state of each service node through step S200, and is transmitted 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 with failed execution.
Further, after it is determined that the node execution state is the service node that fails to execute, the service ID that fails to execute may be further acquired. And generating a third service node replay request according to the type of the service node which fails to execute and the corresponding service ID which fails to execute, and sending the third service node replay request to the service system. And the service system is configured to control the corresponding service node to re-execute the service script corresponding to the service ID when receiving the third service node replay request so as to realize the replay of the specific service node of the specific service ID. For example, if the modified stock node of the logistics list number C is not successfully executed through the inquiry of step S200, a third service node replay request including the logistics list number C and the modified stock node type is generated and sent to the service system. And after receiving the third service node replay request, the service system controls the inventory changing node to re-execute the inventory changing action of the specific logistics single number C so as to realize the replay of the service node.
As shown in fig. 4 and fig. 5, an embodiment of the present invention further provides a service node control system M100, which is applied to the service node control method, where the system includes:
a request receiving module M110, configured to receive a service node information query request of a user, and receive a first service node replay request of the user;
an information query module M120, configured to, when receiving a service node information query request of a user, query, from a service node database M300, service node information corresponding to the service node information query request, where the service node information includes a node execution state;
the node replay module M130 is configured 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 of a user, where the service system M200 is configured to control the corresponding service node M210 to re-execute a service script when receiving the second service node replay request.
According to the invention, through the request receiving module M110 and the information query module M120, when a query request of a user is received, the execution state of the service node can be queried, so that the user can conveniently know the execution condition of the service node as required, and through the request receiving module M110 and the node replay module M130, the service node is re-executed when the replay request is received, so that the user can select the service node with failed execution to replay according to the query condition of the execution state of the service node without waiting for the preset interval time, and the overlarge processing load of the service system M200 can not be caused, thereby solving the defects existing in the prior art when a timing retry method is adopted.
As shown in fig. 5, the service node control system M100 of the present invention may be applied to an electronic device, and the electronic device may 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 may 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 may be a server, a notebook, a desktop, etc.
The request receiving module M110 is configured to interact with a user, where the interaction mode may be that the request receiving module M110 obtains a request of the user from a user terminal, and sends the queried service node information to the user terminal, or interact with the user through a display device and an input device of the electronic device to which the service node control system belongs. Specifically, the request receiving module M110 receives a service node information query request of a user, which may be a service node information query request sent by the user through a user terminal, or a service node that is displayed on a display screen of an electronic device and can be selected by the user for viewing, and acquires a selection of the service node that the user needs to view through an input device (e.g., a keyboard, a touch screen, a mouse, etc.).
Specifically, the request receiving module M110 receives a first service node replay request of a user, which may be a first service node replay request sent by the user through a user terminal in communication with the user terminal. For example, the request receiving module M110 may send the service node information queried by the information querying module M120 to a user terminal, the user terminal displays the execution state of each service node, a user may directly select a service node to be played back on the user terminal, and the user terminal sends a first service node playback request to the request receiving module M110 according to the selection of the user. In another embodiment, the request receiving module M110 may also display the service node information queried by the information querying module M120 in a display device of the electronic device, and the user may select a service node to be replayed through an input device, so as to send 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.
The business node control system can be applied to the field of logistics, realizes business node control of a logistics distribution system, and can also be applied to service management systems of other service industries. When applied to the logistics field, the service node information query request and the first service node replay request may include a type of a service node specified by a user to enable service node information query of a specific service node type and service node replay of a specific service node type. The service node information query request and the first service node replay request may also include a service ID specified by the user, and in the field of logistics, the service ID is a logistics list number serving as a service identifier. The second service node replay request is generated according to the first service node replay request, so that the type and the service ID of the service node included in the second service node replay request are the same as those of the first service node replay request.
When the service node information query request includes the type and the service ID of the queried service node, the information query module M120 queries the service node information, including the information query module M120 querying the node type of the queried service node 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.
When the first service node replay request includes the type and the service ID of the service node, and when the node replay module M130 receives the first service node replay request of the user, a second service node replay request is generated according to the type and the service ID of the service node, and is sent to the service replay interface M220 of the service system M200. The service system M200 is configured to, when receiving the second service node replay request, 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 that the user requests to replay. The service replay interface M220 of the service system M200 may be an HTTP protocol based interface. The node replay module M130 remotely invokes the service replay interface M220, which may be based on ajax mode to remotely invoke an HTTP interface, but the present invention is not limited thereto.
Further, in the present invention, after the service node information is acquired from the service node database M300 by the request receiving module M110 and the information querying module M12, the service node to be replayed may be automatically selected according to the node execution state in the service node information, and the service node replay request is automatically sent to the service system M200, so that the automation of the whole node query and replay process is realized. Specifically, as shown in fig. 6, the service node control system may further include a replay judging module M140, where the replay judging module M140 is configured to judge whether there is a service node whose execution state is a failed execution state after the information querying module M120 queries the node execution state of the service node, if so, generate a third service node replay request, where the third service node replay request includes a type of the failed execution service node, and if there is no service node whose execution state is a failed execution state, end the current judging process.
The node replay module M130 is further configured to send a third service node replay request to the service replay interface M220 of the service system M200 after the replay judging module M140 generates the third service node replay request, and the service system M200 is configured to control the corresponding service node M210 to re-execute the service script when receiving the third service node replay request.
Further, after the replay judging module M140 judges that there is a service node whose node execution state is execution failure, the service ID of execution failure may be further acquired. And generating the third service node replay request according to the type of the service node which fails to execute and the corresponding service ID which fails to execute, and sending the third service node replay request to the service system M200 by the node replay module M130. The service system M200 is configured to, when receiving the third service node replay request, control the corresponding service node to re-execute the service script corresponding to the service ID, so as to implement the replay of the specific service node of the specific service ID.
The embodiment of the invention also provides a service node control device, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the service node control method via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" platform.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 600 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the electronic device 600 is embodied in the form of a general purpose 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 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the service node control method section above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, 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.
The memory 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 thereof, may comprise an implementation of a network environment.
Bus 630 may be 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.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may 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 the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, 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, among others.
In the service node control device, the program in the memory is executed by the processor to implement the steps of the service node control method, and therefore, the computer storage medium can also obtain the technical effects of the service node control method.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed by a processor, the method for controlling a service node is implemented. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the invention described in the service node control method section above of this specification, when said program product is executed on said terminal device.
Referring to fig. 8, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind 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).
The program in the computer storage medium implements the steps of the service node control method when executed by a processor, and therefore, the computer storage medium can also obtain the technical effects of the service node control method.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (14)

1. A method for controlling a service node, the method comprising:
receiving a service node information query request of a user;
inquiring service node information corresponding to the service node information inquiry request from a service node database, wherein the service node information comprises a node execution state;
receiving a first service node replay request of a user;
and 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 execute the service script again when receiving the second service node replay request.
2. The service node control method of claim 1, wherein the service node database comprises a distributed search engine.
3. The service node control method of claim 1, wherein the service node information query request includes a node type of a service node to be queried;
the querying, from the service node database, the service node information corresponding to the service node information querying request includes querying, from the service node database, service node information corresponding to the node type of the queried service node.
4. The service node control method of claim 3, wherein the service node information query request further includes a queried service ID;
the querying, from the service node database, the service node information corresponding to the service node information querying request includes querying, from the service node database, the node type of the queried service node and the service node information corresponding to the service ID.
5. The service node control method of claim 1, wherein 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;
and the service system is configured to control the corresponding service node to execute the service script again 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.
6. The service node control method of claim 5, wherein the first service node replay request and the second service node replay request further include a service ID requested to be replayed by a user, respectively;
and the service system is configured to 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 when receiving the replay request of the second service node.
7. The service node control method of claim 1, wherein said sending a second service node replay request to a service replay interface of a service system comprises the steps of:
and remotely calling a service replay interface based on an HTTP (hyper text transport protocol) protocol of the service system, and sending the replay request of the second service node to the service replay interface.
8. The service node control method of claim 7, wherein the service replay interface of the service system is remotely invoked based on ajax.
9. The service node control method of claim 1, wherein the service system is further configured to obtain service node information from each service node and store the service node information in the service node database.
10. The service node control method according to claim 9, wherein the service system is configured to obtain the interface request parameters of the service node, the node execution status of the service node, and the node type from each service node based on a network request profile.
11. The service node control method according to claim 1, wherein after querying the service node information corresponding to the service node information query request from the service node database, the method further comprises the following steps:
judging whether a node execution state is a service node with execution failure;
and if so, sending a third service node replay request to a service replay interface of the service system, and controlling the corresponding service node to execute the service script again when the service system receives the third service node replay request.
12. A service node control system applied to the service node control method according to any one of claims 1 to 11, the system comprising:
the request receiving module is used for receiving a service node information inquiry request of a user and receiving a first service node replay request of the user;
an information query module, configured to query, when receiving a service node information query request of a user, service node information corresponding to the service node information query request from a service node database, where the service node information includes a node execution state;
and the node replay module is used for sending a second service node replay request to a service replay interface of the service system when receiving a first service node replay request of a user, and the service system is configured to control the corresponding service node to execute the service script again when receiving the second service node replay request.
13. An electronic device, characterized in that the electronic device comprises:
a processor;
memory having stored thereon a computer program which, when executed by the processor, performs a traffic node control method according to any of claims 1 to 11.
14. A computer storage medium, in which a computer program is stored which, when executed by a processor, performs a service node control method according to any one of claims 1 to 11.
CN202011375930.7A 2020-11-30 2020-11-30 Service node control method, system, device and storage medium Pending CN112487056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011375930.7A CN112487056A (en) 2020-11-30 2020-11-30 Service node control method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011375930.7A CN112487056A (en) 2020-11-30 2020-11-30 Service node control method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN112487056A true CN112487056A (en) 2021-03-12

Family

ID=74937596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011375930.7A Pending CN112487056A (en) 2020-11-30 2020-11-30 Service node control method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN112487056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089483A (en) * 2023-03-16 2023-05-09 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609793A (en) * 2017-10-09 2018-01-19 税友软件集团股份有限公司 A kind of method and device of process for producing transaction system abnormality
CN108961033A (en) * 2018-05-17 2018-12-07 平安科技(深圳)有限公司 Multiservice system exchange method and device, storage medium, electric terminal
CN110008257A (en) * 2019-04-10 2019-07-12 深圳市腾讯计算机系统有限公司 Data processing method, device, system, computer equipment and storage medium
CN110347590A (en) * 2019-06-18 2019-10-18 平安普惠企业管理有限公司 The interface testing control method and device of operation system
CN111090699A (en) * 2019-12-13 2020-05-01 北京奇艺世纪科技有限公司 Service data synchronization method and device, storage medium and electronic device
CN111666162A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Distributed message transmission method, device, computer equipment and storage medium
CN111753166A (en) * 2019-03-27 2020-10-09 瞻博网络公司 Query broker for communicating dynamic system states
CN111835467A (en) * 2020-07-28 2020-10-27 中国平安财产保险股份有限公司 Message sending method, device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609793A (en) * 2017-10-09 2018-01-19 税友软件集团股份有限公司 A kind of method and device of process for producing transaction system abnormality
CN108961033A (en) * 2018-05-17 2018-12-07 平安科技(深圳)有限公司 Multiservice system exchange method and device, storage medium, electric terminal
CN111753166A (en) * 2019-03-27 2020-10-09 瞻博网络公司 Query broker for communicating dynamic system states
CN110008257A (en) * 2019-04-10 2019-07-12 深圳市腾讯计算机系统有限公司 Data processing method, device, system, computer equipment and storage medium
CN110347590A (en) * 2019-06-18 2019-10-18 平安普惠企业管理有限公司 The interface testing control method and device of operation system
CN111090699A (en) * 2019-12-13 2020-05-01 北京奇艺世纪科技有限公司 Service data synchronization method and device, storage medium and electronic device
CN111666162A (en) * 2020-04-30 2020-09-15 平安科技(深圳)有限公司 Distributed message transmission method, device, computer equipment and storage medium
CN111835467A (en) * 2020-07-28 2020-10-27 中国平安财产保险股份有限公司 Message sending method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089483A (en) * 2023-03-16 2023-05-09 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system
CN116089483B (en) * 2023-03-16 2023-07-18 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system

Similar Documents

Publication Publication Date Title
US11704224B2 (en) Long running workflows for robotic process automation
CN101042704B (en) System and method for managing objects according to the common information model
CN111897638A (en) Distributed task scheduling method and system
CN111258565B (en) Method, system, server and storage medium for generating applet
CN111930489B (en) Task scheduling method, device, equipment and storage medium
CN111586177B (en) Cluster session loss prevention method and system
CN111178849A (en) Linear process engine implementation method, device, equipment and storage medium
US20130124971A1 (en) Real time web script refresh using asynchronous polling without full web page reload
CN112487056A (en) Service node control method, system, device and storage medium
CN110807535A (en) Construction method and construction device of unified reservation platform and unified reservation platform system
CN114449040B (en) Configuration issuing method and device based on cloud platform
CN112445473A (en) Client layout method and device, storage medium and electronic equipment
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
CN113791819A (en) Interface document generation method and device, storage medium and electronic equipment
CN111562958A (en) Page data display management method and device
JP2015103197A (en) Distributed processing system
US20220066794A1 (en) Robotic process automation data connector
CN111046430B (en) Data processing method and device, storage medium and electronic equipment
CN112181937B (en) Method and device for transferring data
US20220191167A1 (en) Organizational modelling for routing rpa related services of an rpa cloud suite
CN111061812B (en) Big data distributed storage method and device, electronic equipment and storage medium
US20100064105A1 (en) Leveraging Synchronous Communication Protocols to Enable Asynchronous Application and Line-of-Business Behaviors
CN115951879A (en) Template code generation method, device, system, medium and electronic equipment
CN113282806A (en) Equipment information processing method and device, equipment and medium
CN114756245A (en) Application component development method, system, device, equipment and storage medium

Legal Events

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