Service microinstruction issuing method and device, equipment and medium
By constructing a micro-instruction tree relationship diagram and threshold sequential processing, the problem of low processing efficiency of multiple micro-instructions is solved, and the efficiency of business data processing and system stability are improved.
Patent Information
- Application Number
- CN202310753636.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-25
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2043-06-25
AI Technical Summary
In the prior art, service data processing requires multiple service micro-instructions to be completed, resulting in the sender's service system waiting for the feedback result to be sent again after each sending the micro-instructions, which is relatively inefficient.
By constructing a micro-instruction tree relationship diagram, the sender's business system sends multiple service micro-instructions at one time, and the service micro-instruction scheduling system processes and sends them in the threshold order to avoid multiple edits and sends.
It improves the efficiency of business data processing, reduces staff participation and sends the sender system, and improves the stability and security of the receiver system.
Smart Images

Figure CN119211332A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and medium for issuing business microinstructions. Background Art
[0002] With the development of technology, all kinds of business can be handled through corresponding business systems. How to interact between different business systems has become a problem that people are concerned about.
[0003] In the prior art, in order to enable different business systems to interact with each other, it can be achieved by sending business microinstructions to each other. When the sending business system needs the assistance of other business systems to complete the processing of business data, the staff edits the business microinstructions, and the sending business system can send business microinstructions to other business systems, and other business systems operate according to the business microinstructions, thereby realizing the processing of business data.
[0004] However, when a piece of business data requires multiple business microinstructions to complete processing, after the sending business system sends a business microinstruction each time, the staff will edit the microinstructions that need to be sent next time based on the feedback results, and then send the business microinstructions again, resulting in low efficiency in business data processing. Summary of the invention
[0005] The present application provides a method, device, equipment and medium for sending business microinstructions, which are used to solve the problem that the existing method for sending business microinstructions can only send one business microinstruction at a time, resulting in low efficiency in business data processing.
[0006] In a first aspect, the present application provides a method for issuing a business microinstruction, which is applied to a business microinstruction scheduling system, and the method includes:
[0007] Receive a business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending party business system, wherein the sending information includes a receiving party business system identifier;
[0008] According to the order from the root node to the child node in the microinstruction tree relationship diagram, for each business microinstruction in the business microinstruction set, according to the receiving business system identifier corresponding to the business microinstruction, obtain the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier, and the current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system;
[0009] If the current concurrent processing quantity is less than the concurrent processing threshold, the business microinstruction is sent to the receiving business system so that the receiving business system runs according to the business microinstruction.
[0010] In a specific implementation manner, the receiving and sending service microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each service microinstruction in the service microinstruction set sent by the service system of the sender include:
[0011] A business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending business system are received through a message queue.
[0012] In a specific implementation, if the instruction type of the business microinstruction is a data type requiring feedback, the sending information corresponding to the business microinstruction also includes a feedback pointing microinstruction identifier, and the method further includes:
[0013] Receiving feedback parameters returned by the receiving party's business system;
[0014] Determine the service microinstruction to be adjusted corresponding to the microinstruction identifier pointed to by the feedback;
[0015] Determine whether the transmission information corresponding to the service microinstruction to be adjusted includes a parameter conversion rule;
[0016] If the transmission information corresponding to the business microinstruction to be adjusted includes a parameter conversion rule, the feedback parameter is converted according to the parameter conversion rule to obtain a conversion parameter, and the conversion parameter is filled into the business microinstruction to be adjusted;
[0017] If the sending information corresponding to the service microinstruction to be adjusted does not include a parameter conversion rule, the feedback parameter is filled into the service microinstruction to be adjusted.
[0018] In a specific embodiment, the method further comprises:
[0019] According to the preset parameter mapping relationship, the parameters in each business microinstruction are converted;
[0020] All business microinstructions are grouped and stored according to the recipient business system identifier corresponding to each business microinstruction;
[0021] For each received feedback parameter, the feedback parameter and the service microinstruction corresponding to the feedback parameter are stored together.
[0022] In a specific embodiment, the method further comprises:
[0023] Regularly test the concurrent processing threshold of each receiving system;
[0024] For each receiving system, a corresponding relationship is established between the concurrent processing threshold of the receiving system and the receiving business system identifier of the receiving system and then stored.
[0025] In a second aspect, the present application provides a method for issuing business microinstructions, which is applied to a sender business system, and the method includes:
[0026] Acquire multiple business microinstructions, as well as the execution order relationship between all business microinstructions and the sending information corresponding to each business microinstruction, wherein the sending information includes a receiving party business system identifier;
[0027] According to the execution order relationship between all business microinstructions, a microinstruction tree relationship diagram is constructed;
[0028] The business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction are sent to the business microinstruction scheduling system.
[0029] In a specific implementation, the sending of the service microinstruction set formed by all service microinstructions, the microinstruction tree relationship diagram, and the sending information corresponding to each service microinstruction to the service microinstruction scheduling system includes:
[0030] The business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction are sent to the business microinstruction scheduling system through a message queue.
[0031] In a third aspect, the present application provides a device for issuing business microinstructions, comprising:
[0032] A receiving module, used for receiving a business microinstruction set, a microinstruction tree relationship diagram and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending party business system, wherein the sending information includes a receiving party business system identifier;
[0033] A processing module, configured to determine whether the parameters of each business microinstruction in the business microinstruction set are filled in the order from the root node to the child node in the microinstruction tree relationship diagram;
[0034] An acquisition module, for acquiring, if the parameters of the business microinstruction are filled, a concurrent processing threshold of the receiving system corresponding to the receiving business system identifier and a current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system according to the receiving business system identifier corresponding to the business microinstruction;
[0035] The sending module is used to send the business microinstructions to the receiving business system if the current concurrent processing quantity is less than the concurrent processing threshold, so that the receiving business system runs according to the business microinstructions.
[0036] In a fourth aspect, the present application provides a device for issuing business microinstructions, comprising:
[0037] An acquisition module, used to acquire multiple business microinstructions, as well as the execution order relationship between all business microinstructions, and the sending information corresponding to each business microinstruction, wherein the sending information includes a receiving party business system identifier;
[0038] A processing module, used to construct a microinstruction tree relationship diagram according to the execution order relationship between all business microinstructions;
[0039] The sending module is used to send the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system.
[0040] In a fifth aspect, the present application provides an electronic device, including:
[0041] Processor, memory, communication interface;
[0042] The memory is used to store executable instructions of the processor;
[0043] Wherein, the processor is configured to execute the business microinstruction issuing method described in any one of the first aspects by executing the executable instructions.
[0044] In a sixth aspect, the present application provides an electronic device, including:
[0045] Processor, memory, communication interface;
[0046] The memory is used to store executable instructions of the processor;
[0047] Wherein, the processor is configured to execute the business microinstruction issuing method described in any one of the second aspects by executing the executable instructions.
[0048] In a seventh aspect, the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for issuing business microinstructions described in any one of the first aspect or the second aspect is implemented.
[0049] The business microinstruction sending method, device, equipment and medium provided by the present application, after obtaining multiple business microinstructions through the sender business system, construct a microinstruction tree relationship diagram according to the execution order relationship between the business microinstructions, and then send the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system. The business microinstruction scheduling system follows the order from the root node to the child node in the microinstruction tree relationship diagram, and for each business microinstruction in the business microinstruction set, according to the receiving party business system identifier corresponding to the business microinstruction, obtains the concurrent processing threshold of the receiving party system corresponding to the receiving party business system identifier, and the current concurrent processing number of the receiving party business system by the business microinstruction scheduling system. Furthermore, if the current concurrent processing number is less than the concurrent processing threshold, the business microinstruction is sent to the receiving party business system, so that the receiving party business system runs according to the business microinstruction and completes the processing of business data. This scheme sends multiple business microinstructions at a time through the sender business system, and the business microinstruction scheduling system processes and sends each business microinstruction in turn, which effectively improves the efficiency of business data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1a A flowchart of a first embodiment of a method for issuing microinstructions for a business provided by the present application;
[0052] Figure 1b A microinstruction tree diagram provided for this application;
[0053] Figure 2 A flow chart of a second embodiment of the method for issuing business microinstructions provided in this application;
[0054] Figure 3 A flowchart of a third embodiment of the method for issuing business microinstructions provided in this application;
[0055] Figure 4 A flowchart of a fourth embodiment of the method for issuing business microinstructions provided in this application;
[0056] Figure 5 A schematic diagram of the structure of the first embodiment of the device for issuing business microinstructions provided by the present application;
[0057] Figure 6A schematic diagram of the structure of the second embodiment of the device for issuing business microinstructions provided by the present application;
[0058] Figure 7 A structural schematic diagram of an electronic device provided in this application;
[0059] Figure 8 A schematic diagram of the structure of an electronic device provided in this application Figure 2 . DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0061] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0062] With the development of technology, all kinds of business data will be processed by corresponding business systems, but the processing of some business data still requires the collaboration of multiple business systems, which requires interaction between different business systems.
[0063] In the prior art, in order to enable different business systems to interact with each other, it can be achieved by sending business microinstructions to each other. When the sending business system needs the assistance of other business systems to complete the processing of business data, the staff edits the business microinstructions, and the sending business system can send business microinstructions to other business systems, and other business systems operate according to the business microinstructions, thereby realizing the processing of business data.
[0064] However, when a piece of business data requires multiple business microinstructions to complete processing, after the sending business system sends a business microinstruction each time, the staff will edit the microinstructions that need to be sent next time based on the feedback results, and then send the business microinstructions again, which leads to low efficiency in business data processing.
[0065] In view of the problems existing in the prior art, the inventors found in the process of studying the method for issuing business microinstructions that in order to improve the efficiency of business data processing, the sending business system can obtain multiple business microinstructions required for business data processing at one time, and then build a microinstruction tree relationship diagram based on the execution order relationship between the business microinstructions, and then send the business microinstruction set formed by all business microinstructions, the sending information corresponding to each business microinstruction and the microinstruction tree relationship diagram to the business microinstruction scheduling system. The business microinstruction scheduling system sends the corresponding business microinstructions in sequence from the root node to the child node in the microinstruction tree relationship diagram. There is no need for the staff to perform multiple edits, and there is no need for the sending business system to send business microinstructions multiple times, which effectively improves the efficiency of business data processing. Based on the above-mentioned inventive concept, the business microinstruction issuance scheme in this application is designed.
[0066] The devices for deploying the business microinstruction scheduling system and the sender business system in this application can be servers, computers, terminal devices, etc. This application does not limit them and can be selected according to actual conditions.
[0067] The following is an example of an application scenario of the method for issuing business microinstructions provided in this application.
[0068] For example, in this application scenario, the sender's business system needs to build a virtual computer, and the construction of the virtual computer is built in the receiver's system, which requires the staff to write multiple business microinstructions in the sender's business system and determine the execution order between the multiple business microinstructions. Four business microinstructions can be written, the first business microinstruction is to build a central processing unit (CPU), the second business microinstruction is to build memory, the third business microinstruction is to build a hard disk, and the fourth business microinstruction is to open up a construction space and build a virtual computer.
[0069] The receiving business system identifier in the sending information of the four business microinstructions corresponds to the receiving business system. The instruction type of the first to third business microinstructions is the data type that requires feedback. The sending information corresponding to these business microinstructions also includes the feedback pointing microinstruction identifier, which is the identifier corresponding to the fourth business microinstruction, and the size of the space occupied by the feedback is required.
[0070] After the sending business system obtains four business microinstructions, the execution order relationship between all business microinstructions, and the sending information corresponding to each business microinstruction, it constructs a microinstruction tree relationship diagram based on the execution order relationship between all business microinstructions.
[0071] Then, the business microinstruction set formed by all business microinstructions, the sending information corresponding to each business microinstruction and the microinstruction tree relationship diagram are sent to the business microinstruction scheduling system.
[0072] The business microinstruction scheduling system sends the first to fourth business microinstructions in sequence according to the order from the root node to the child nodes in the microinstruction tree relationship diagram.
[0073] After the first business microinstruction is sent to the receiving business system, since the instruction type of the business microinstruction is a data type that requires feedback, the receiving business system will return the size of the occupied space after building the CPU. Then the business microinstruction scheduling system will fill the size of the occupied space to the fourth business microinstruction. The second and third business microinstructions are processed similarly.
[0074] For the fourth business microinstruction, the receiving business system opens up construction space and builds a virtual computer according to the sizes of the three occupied spaces, thereby completing the construction of the virtual computer.
[0075] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the deployment equipment of the various systems included in the scenario, nor does it limit the interaction method between the systems. In the specific application of the solution, it can be set according to actual needs.
[0076] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0077] Figure 1a The flowchart of the first embodiment of the method for issuing business microinstructions provided in the present application is as follows. The present application embodiment obtains multiple business microinstructions required for business data processing from the sending business system, and then generates a microinstruction tree relationship diagram and a business microinstruction set, and sends them to the business microinstruction scheduling system. The business microinstruction scheduling system sends business microinstructions in sequence according to the microinstruction tree relationship diagram. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 1a As shown, the method for issuing business microinstructions specifically includes the following steps:
[0078] S101: The sending party's business system obtains multiple business microinstructions required for business data processing, as well as the execution order relationship between all business microinstructions and the sending information corresponding to each business microinstruction.
[0079] When the business system of the sender needs the cooperation of the business system of the receiver to complete the business data processing, the staff can build multiple business microinstructions required for business data processing in the business system of the sender. Business microinstructions can be built according to the customized microinstruction template, which includes template attributes and data format, etc. Then determine the execution order relationship between business microinstructions and the corresponding receiving business system of each business microinstruction.
[0080] In this step, the sending business system can obtain multiple business microinstructions required for business data processing, as well as the execution order relationship between all business microinstructions and the sending information corresponding to each business microinstruction, and the sending information includes the receiving business system identifier.
[0081] It should be noted that, for constructing business microinstructions, the user may input relevant parameters and execution order, and the sender business system may construct the business microinstructions according to the microinstruction template.
[0082] S102: The sending business system constructs a microinstruction tree relationship diagram according to the execution order relationship between all business microinstructions.
[0083] In this step, after the sending business system obtains multiple business microinstructions, the execution order relationship between all business microinstructions, and the sending information corresponding to each business microinstruction, in order to enable the subsequent business microinstruction scheduling system to determine the order in which to send the business microinstructions, it is necessary to construct a microinstruction tree relationship diagram based on the execution order relationship between all business microinstructions.
[0084] For example, Figure 1b The microinstruction tree diagram provided for this application is as follows: Figure 1b As shown, there are 9 business microinstructions, represented by letters: A, B, C, D, E, F, G, H, I. The root node is A, the child node of A is B, the child nodes of B are C and D, the child nodes of C are E, F, G, the child nodes of D are G, H, I, and G is the common child node of C and D.
[0085] S103: The sending party's business system sends the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram, and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system.
[0086] In this step, after the sending business system constructs the microinstruction tree relationship diagram, it sends the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system.
[0087] It should be noted that, in the process of forming a business microinstruction set, it can be constructed according to a preset set template.
[0088] It should be noted that during the sending process, a message queue can be used for sending. The sending business system sends the business microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each business microinstruction to the message queue. The business microinstruction scheduling system monitors the message queue. When it detects that the message queue contains the business microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each business microinstruction, these messages can be obtained. The sending business system and the business microinstruction scheduling system can be decoupled, which effectively improves the operational stability of the system.
[0089] S104: After the business microinstruction scheduling system receives the business microinstruction set, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction in the business microinstruction set sent by the sending business system, in the order from the root node to the child node in the microinstruction tree relationship diagram, for each business microinstruction in the business microinstruction set, according to the receiving business system identifier corresponding to the business microinstruction, the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier and the current concurrent processing number of the receiving business system by the business microinstruction scheduling system are obtained.
[0090] In this step, the sending business system sends the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system, and the business microinstruction scheduling system can receive these data. The sending information includes the receiving business system identifier.
[0091] Then, each business microinstruction is sent in sequence from the root node to the child node in the microinstruction tree relationship diagram. First, for each business microinstruction in the business microinstruction set, according to the receiving business system identifier corresponding to the business microinstruction, the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier and the current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system are obtained.
[0092] Since the business microinstruction scheduling system will periodically test the concurrent processing threshold of each receiving system, the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier can be obtained.
[0093] It should be noted that the message queue can be used during the receiving process. The sender business system sends the business microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each business microinstruction to the message queue. The business microinstruction scheduling system monitors the message queue. When it detects that the message queue contains the business microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each business microinstruction, these messages can be obtained. The sender business system and the business microinstruction scheduling system can be decoupled, which effectively improves the operational stability of the system.
[0094] S105: If the current concurrent processing quantity is less than the concurrent processing threshold, the business microinstruction scheduling system sends the business microinstructions to the receiving business system, so that the receiving business system operates according to the business microinstructions.
[0095] In this step, the business microinstruction scheduling system obtains the current concurrent processing number and the concurrent processing threshold, and determines whether the current concurrent processing number is less than the concurrent processing threshold. If the current concurrent processing number is less than the concurrent processing threshold, it means that the receiving business system has not reached the upper limit of processing concurrent messages, and the business microinstruction can be processed. The business microinstruction scheduling system sends the business microinstruction to the receiving business system. The receiving business system can run according to the business microinstruction, and after all business microinstructions are executed in the corresponding receiving business system, the business data processing can be completed.
[0096] If the current number of concurrent processing is greater than or equal to the concurrent processing threshold, it means that the receiving business system has reached the upper limit of processing concurrent messages and cannot process the business microinstructions. Therefore, it is necessary to wait for the preset period of time, obtain the concurrent processing threshold and the current number of concurrent processing again, and then determine whether the current number of concurrent processing is less than the concurrent processing threshold. If the current number of concurrent processing is greater than or equal to the concurrent processing threshold, this process is repeated until the current number of concurrent processing is less than the concurrent processing threshold, and the business microinstruction scheduling system sends business microinstructions to the receiving business system.
[0097] It should be noted that the preset time length can be 0.3 seconds, 0.5 seconds, 2 seconds, etc. The embodiment of the present application does not limit the preset time length and can be set according to actual conditions.
[0098] For example, in Figure 1b On the basis of Figure 1b As shown, the business microinstruction scheduling system sends A first, then sends B, then sends C and D, after sending C, sends E and F, after sending D, sends H and I. For G, after both C and D are sent, G is sent.
[0099] The business microinstruction issuing method provided in this embodiment, after the sender business system obtains multiple business microinstructions required for business data processing, constructs a microinstruction tree relationship diagram according to the execution order relationship between the business microinstructions, and then sends the business microinstruction set formed by all business microinstructions, the sending information corresponding to each business microinstruction and the microinstruction tree relationship diagram to the business microinstruction scheduling system. The business microinstruction scheduling system sends the business microinstructions to the receiving business system in sequence from the root node to the child node in the microinstruction tree relationship diagram, so that the receiving business system runs according to the business microinstructions and completes the business data processing. Before sending, if the current concurrent processing number of the receiving business system by the business microinstruction scheduling system is less than the concurrent processing threshold of the receiving system, the business microinstruction is sent again. Compared with the prior art, the sender business system needs to send business microinstructions multiple times, which requires the full participation of staff. In this solution, the sender business system sends multiple business microinstructions at one time, and the business microinstruction scheduling system processes and sends each business microinstruction in turn, which effectively improves the efficiency of business data processing. In addition, when the business microinstruction scheduling system sends business microinstructions to the receiving business system, the concurrent processing threshold of the receiving business system is taken into consideration, which effectively improves the stability and security of the receiving business system and ensures that the business microinstructions can be processed by the receiving business system.
[0100] Figure 2 This is a flow chart of the second embodiment of the method for issuing business microinstructions provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation in which the business microinstruction scheduling system adjusts other business microinstructions according to the feedback parameters returned by the receiving business system. Figure 2 As shown, the method for issuing business microinstructions specifically includes the following steps:
[0101] S201: After receiving the feedback parameter returned by the receiving business system, determine that the feedback points to the business microinstruction to be adjusted corresponding to the microinstruction identifier.
[0102] After the business microinstruction scheduling system sends the business microinstruction, if the instruction type of the business microinstruction is a data type that requires feedback, the sending information corresponding to the business microinstruction also includes the feedback pointing microinstruction identifier, and the receiving business system needs to return feedback parameters after executing the business microinstruction.
[0103] In the above steps, after the receiving business system returns the feedback parameters to the business microinstruction scheduling system, the business microinstruction scheduling system can receive the feedback parameters.
[0104] Furthermore, since the feedback parameter is required by the service instruction to be adjusted, it is necessary to determine the service microinstruction to be adjusted corresponding to the microinstruction identifier to which the feedback points.
[0105] S202: Determine whether the sending information corresponding to the business microinstruction to be adjusted includes parameter conversion rules; if the sending information corresponding to the business microinstruction to be adjusted includes parameter conversion rules, execute step S203; if the sending information corresponding to the business microinstruction to be adjusted does not include parameter conversion rules, execute step S204.
[0106] In the step, after the business microinstruction scheduling system determines the business microinstructions to be adjusted, since the sending information of some business microinstructions to be adjusted includes parameter conversion rules, the feedback parameters need to be processed according to the parameter conversion rules, so it is necessary to first determine whether the sending information corresponding to the business microinstructions to be adjusted includes parameter conversion rules.
[0107] S203: According to the parameter conversion rule, the feedback parameter is converted to obtain a conversion parameter, and the conversion parameter is filled into the business microinstruction to be adjusted.
[0108] In this step, if the sending information corresponding to the business microinstruction to be adjusted includes a parameter conversion rule, the feedback parameter is converted according to the parameter conversion rule to obtain a conversion parameter, and the conversion parameter is filled into the business microinstruction to be adjusted.
[0109] For example, in Figure 1b On the basis of, the instruction type of the business microinstruction C is the data type that needs feedback, and the feedback of the business microinstruction C points to the microinstruction identifier corresponding to the business microinstruction F. After the business microinstruction scheduling system sends the business microinstruction C to the receiving business system, the feedback data can be received. The sending information of the business microinstruction F includes a parameter conversion rule, and the parameter conversion rule is to perform a remainder operation on the feedback parameter according to a preset quotient value to obtain a conversion parameter, and then fill the conversion parameter into the business microinstruction to be adjusted. Exemplarily, the part that needs to be filled in the business microinstruction to be adjusted before filling is "a=5+()", and the part after filling is "a=5+(3)".
[0110] It should be noted that the above example is only an illustration of the process of converting feedback data and filling the conversion parameters into the business microinstructions to be adjusted. The embodiment of the present application does not limit the parameter conversion rules, the business microinstructions to be adjusted, etc., which can be determined according to actual conditions.
[0111] S204: Fill the feedback parameter into the service microinstruction to be adjusted.
[0112] In this step, if the sending information corresponding to the service microinstruction to be adjusted does not include the parameter conversion rule, the feedback parameter is directly filled into the service microinstruction to be adjusted.
[0113] It should be noted that when the service microinstruction scheduling system sends the service microinstruction to be adjusted, what is sent is the service microinstruction to be adjusted after the feedback parameter or the conversion parameter is filled.
[0114] Compared with the prior art which requires staff to edit business microinstructions according to feedback parameters, the method for issuing business microinstructions provided in this embodiment uses a business microinstruction scheduling system to fill in parameters of the business microinstructions to be adjusted according to feedback parameters, thereby effectively improving the efficiency of business data processing.
[0115] Figure 3 This is a flow chart of the third embodiment of the method for issuing business microinstructions provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation in which the business microinstruction scheduling system groups and stores business microinstructions. Figure 3 As shown, the method for issuing business microinstructions specifically includes the following steps:
[0116] S301: Perform parameter conversion on the parameters in each business microinstruction according to a preset parameter mapping relationship.
[0117] In this step, after the business microinstruction scheduling system has sent all the business microinstructions in the business microinstruction set and received the corresponding feedback data, in order to facilitate the search for the cause of the fault when a fault occurs later, the business microinstructions in the business microinstruction set need to be stored. In addition, since the meaning of the parameters in the system used when searching for the cause of the fault is different from the meaning of the parameters in the business microinstructions, in order to unify the meaning of the parameters, it is necessary to convert the parameters in each business microinstruction according to the preset parameter mapping relationship.
[0118] S302: Group and store all the business microinstructions according to the recipient business system identifier corresponding to each business microinstruction.
[0119] In this step, after the business microinstruction scheduling system converts the parameters in each business microinstruction, it can be stored in groups to facilitate the search for the cause of the fault and improve the search efficiency. According to the receiving business system identifier corresponding to each business microinstruction, all business microinstructions are stored in groups. The receiving business system identifiers corresponding to the same group of business microinstructions are the same.
[0120] S303: For each received feedback parameter, store the feedback parameter and the service microinstruction corresponding to the feedback parameter together.
[0121] In this step, since the instruction type of some business microinstructions is a data type that requires feedback, the receiving system will return feedback data, which is also the data required to find the cause of the fault. Therefore, for each received feedback parameter, the feedback parameter and the business microinstruction corresponding to the feedback parameter are stored together.
[0122] The method for issuing business microinstructions provided in this embodiment not only improves storage stability but also improves the efficiency of finding fault causes by storing business microinstructions and feedback parameters in groups.
[0123] Figure 4 This is a flow chart of the fourth embodiment of the method for issuing business microinstructions provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation where the business microinstruction scheduling system periodically tests the concurrent processing threshold of each receiving system. Figure 4 As shown, the method for issuing business microinstructions specifically includes the following steps:
[0124] S401: Periodically test the concurrent processing threshold of each receiving system.
[0125] In this step, since the business microinstruction scheduling system will consider the concurrent processing capability of the receiving business system when sending business microinstructions to the receiving business system, it is necessary to periodically test the concurrent processing threshold of each receiving system in order to determine the latest concurrent processing capability of each receiving business system.
[0126] It should be noted that the timed test refers to a test once every preset test duration. The preset test duration can be 30 seconds, 1 minute, 5 minutes, etc. The embodiment of the present application does not modify the preset test duration and can be set according to actual conditions.
[0127] Exemplarily, for the test process, for each receiving business system, the business microinstruction scheduling system sends a preset first test number of test requests to the receiving business system, and then the business microinstruction scheduling system determines whether the number of feedback messages it receives is less than the preset first test number. If it is less than the preset first test number, the number of feedback messages is used as the concurrent processing threshold of the receiving business system. If it is greater than or equal to the preset first test number, a preset second test number of test requests is sent again, and the preset second test number is greater than the preset first test number. Then the business microinstruction scheduling system determines whether the number of feedback messages it receives is less than the preset second test number. If it is less than the preset second test number, the number of feedback messages is used as the concurrent processing threshold of the receiving business system. If it is greater than or equal to the preset second test number, the above process is similar until the number of feedback messages is less than the number of test requests sent, and the number of feedback messages is used as the concurrent processing threshold of the receiving business system. The preset first test quantity can be 500, 600, 800, etc., and the preset second test quantity can be 1000, 1200, 1800, etc. The embodiment of the present application does not limit the preset first test quantity and the preset second test quantity, and can be set according to actual conditions.
[0128] S402: For each receiving system, a corresponding relationship is established between the concurrent processing threshold of the receiving system and the receiving business system identifier of the receiving system and then stored.
[0129] In this step, after the business microinstruction scheduling system obtains the concurrent processing threshold of each receiving system, in order to facilitate the search for the concurrent processing threshold, it is necessary to establish a corresponding relationship between the concurrent processing threshold of the receiving system and the receiving business system identifier of the receiving system for each receiving system and then store it.
[0130] The business microinstruction sending method provided in this embodiment periodically tests the concurrent processing threshold of each receiving system, and stores the corresponding relationship between the concurrent processing threshold and the corresponding receiving business system identifier after establishing a correspondence, so that the business microinstruction scheduling system determines whether to send the business microinstruction immediately according to the concurrent processing threshold when sending the business microinstruction, which can effectively improve the stability and security of the receiving business system and ensure that the business microinstructions can be processed by the receiving business system.
[0131] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0132] Figure 5 The structural diagram of the first embodiment of the service microinstruction issuing device provided by the present application; Figure 5 As shown, the service microinstruction issuing device 50 includes:
[0133] A receiving module 51 is used to receive a business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending party business system, wherein the sending information includes a receiving party business system identifier;
[0134] The processing module 52 is used to determine whether the parameters of each business microinstruction in the business microinstruction set are filled in the order from the root node to the child node in the microinstruction tree relationship diagram;
[0135] The acquisition module 53 is used to acquire the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier and the current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system if the parameter filling of the business microinstruction is completed;
[0136] The sending module 54 is used to send the business microinstructions to the receiving business system if the current concurrent processing quantity is less than the concurrent processing threshold, so that the receiving business system runs according to the business microinstructions.
[0137] Furthermore, the sending module 54 is specifically used to receive, through a message queue, a business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by the sending party business system.
[0138] Furthermore, if the instruction type of the business microinstruction is a data type requiring feedback, the sending information corresponding to the business microinstruction also includes a feedback pointing microinstruction identifier, and the receiving module 51 is further used to receive feedback parameters returned by the receiving party business system;
[0139] Furthermore, the processing module 52 is also used for:
[0140] Determine the service microinstruction to be adjusted corresponding to the microinstruction identifier pointed to by the feedback;
[0141] Determine whether the transmission information corresponding to the service microinstruction to be adjusted includes a parameter conversion rule;
[0142] If the transmission information corresponding to the business microinstruction to be adjusted includes a parameter conversion rule, the feedback parameter is converted according to the parameter conversion rule to obtain a conversion parameter, and the conversion parameter is filled into the business microinstruction to be adjusted;
[0143] If the sending information corresponding to the service microinstruction to be adjusted does not include a parameter conversion rule, the feedback parameter is filled into the service microinstruction to be adjusted.
[0144] Furthermore, the processing module 52 is also used for:
[0145] According to the preset parameter mapping relationship, the parameters in each business microinstruction are converted;
[0146] All business microinstructions are grouped and stored according to the recipient business system identifier corresponding to each business microinstruction;
[0147] For each received feedback parameter, the feedback parameter and the service microinstruction corresponding to the feedback parameter are stored together.
[0148] Furthermore, the processing module 52 is also used for:
[0149] Regularly test the concurrent processing threshold of each receiving system;
[0150] For each receiving system, a corresponding relationship is established between the concurrent processing threshold of the receiving system and the receiving business system identifier of the receiving system and then stored.
[0151] The service microinstruction issuing device provided in this embodiment is used to execute the technical solution of the service microinstruction scheduling system in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.
[0152] Figure 6 The structural diagram of the second embodiment of the service microinstruction issuing device provided by this application; Figure 6 As shown, the service microinstruction issuing device 60 includes:
[0153] The acquisition module 61 is used to acquire multiple business microinstructions, the execution order relationship between all business microinstructions, and the sending information corresponding to each business microinstruction, wherein the sending information includes the business system identifier of the receiving party;
[0154] The processing module 62 is used to construct a microinstruction tree relationship diagram according to the execution order relationship between all business microinstructions;
[0155] The sending module 63 is used to send the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system.
[0156] Furthermore, the sending module 63 is specifically used to send the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system through a message queue.
[0157] The service microinstruction issuing device provided in this embodiment is used to execute the technical solution of the sender service system in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.
[0158] Figure 7 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 7 As shown, the electronic device 70 includes:
[0159] Processor 71, memory 72, and communication interface 73;
[0160] The memory 72 is used to store executable instructions of the processor 71;
[0161] Among them, the processor 71 is configured to execute the technical solution of the business microinstruction scheduling system in any of the aforementioned method embodiments by executing the executable instructions.
[0162] Optionally, the memory 72 can be independent or integrated with the processor 71.
[0163] Optionally, when the memory 72 is a device independent of the processor 71, the electronic device 70 may further include:
[0164] The bus 74 , the memory 72 and the communication interface 73 are connected to the processor 71 via the bus 74 and communicate with each other. The communication interface 73 is used to communicate with other devices.
[0165] Optionally, the communication interface 73 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0166] The bus 74 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0167] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0168] The electronic device is used to execute the technical solution of the business microinstruction scheduling system in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0169] Figure 8 A schematic diagram of the structure of an electronic device provided in this application Figure 2 .like Figure 8 As shown, the electronic device 80 includes:
[0170] Processor 81, memory 82, and communication interface 83;
[0171] The memory 82 is used to store executable instructions of the processor 81;
[0172] The processor 81 is configured to execute the technical solution of the sender business system in any of the aforementioned method embodiments by executing the executable instructions.
[0173] Optionally, the memory 82 can be independent or integrated with the processor 81.
[0174] Optionally, when the memory 82 is a device independent of the processor 81, the electronic device 80 may further include:
[0175] The bus 84 , the memory 82 and the communication interface 83 are connected to the processor 81 via the bus 84 and communicate with each other. The communication interface 83 is used to communicate with other devices.
[0176] Optionally, the communication interface 83 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0177] The bus 84 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0178] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0179] The electronic device is used to execute the technical solution of the sender's business system in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.
[0180] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.
[0181] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.
[0182] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for issuing business microinstructions, characterized in that: Applied to a business microinstruction scheduling system, the method includes: Receive a business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending party business system, wherein the sending information includes a receiving party business system identifier; According to the order from the root node to the child node in the microinstruction tree relationship diagram, for each business microinstruction in the business microinstruction set, according to the receiving business system identifier corresponding to the business microinstruction, obtain the concurrent processing threshold of the receiving system corresponding to the receiving business system identifier, and the current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system; If the current concurrent processing quantity is less than the concurrent processing threshold, the business microinstruction is sent to the receiving business system so that the receiving business system runs according to the business microinstruction.
2. The method according to claim 1, characterized in that The receiving and sending service microinstruction set, the microinstruction tree relationship diagram, and the sending information corresponding to each service microinstruction in the service microinstruction set sent by the service system of the sending party include: A business microinstruction set, a microinstruction tree relationship diagram, and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending business system are received through a message queue.
3. The method according to claim 1, characterized in that If the instruction type of the business microinstruction is a data type requiring feedback, the sending information corresponding to the business microinstruction also includes a feedback pointing microinstruction identifier, and the method further includes: Receiving feedback parameters returned by the receiving party's business system; Determine the service microinstruction to be adjusted corresponding to the microinstruction identifier pointed to by the feedback; Determine whether the transmission information corresponding to the service microinstruction to be adjusted includes a parameter conversion rule; If the transmission information corresponding to the business microinstruction to be adjusted includes a parameter conversion rule, the feedback parameter is converted according to the parameter conversion rule to obtain a conversion parameter, and the conversion parameter is filled into the business microinstruction to be adjusted; If the sending information corresponding to the service microinstruction to be adjusted does not include a parameter conversion rule, the feedback parameter is filled into the service microinstruction to be adjusted.
4. The method according to claim 3, characterized in that The method further comprises: According to the preset parameter mapping relationship, the parameters in each business microinstruction are converted; All business microinstructions are grouped and stored according to the recipient business system identifier corresponding to each business microinstruction; For each received feedback parameter, the feedback parameter and the service microinstruction corresponding to the feedback parameter are stored together.
5. The method according to claim 1, characterized in that The method further comprises: Regularly test the concurrent processing threshold of each receiving system; For each receiving system, a corresponding relationship is established between the concurrent processing threshold of the receiving system and the receiving business system identifier of the receiving system and then stored.
6. A method for issuing business microinstructions, characterized in that: Applied to the business system of the sender, the method includes: Acquire multiple business microinstructions required for business data processing, as well as the execution order relationship between all business microinstructions and the sending information corresponding to each business microinstruction, wherein the sending information includes a receiving party business system identifier; According to the execution order relationship between all business microinstructions, a microinstruction tree relationship diagram is constructed; The business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction are sent to the business microinstruction scheduling system.
7. The method according to claim 6, characterized in that The process of sending the service microinstruction set formed by all service microinstructions, the microinstruction tree relationship diagram, and the sending information corresponding to each service microinstruction to the service microinstruction scheduling system includes: The business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction are sent to the business microinstruction scheduling system through a message queue.
8. A device for issuing business microinstructions, characterized in that: include: A receiving module, used for receiving a business microinstruction set, a microinstruction tree relationship diagram and sending information corresponding to each business microinstruction in the business microinstruction set sent by a sending party business system, wherein the sending information includes a receiving party business system identifier; A processing module, configured to determine whether the parameters of each business microinstruction in the business microinstruction set are filled in the order from the root node to the child node in the microinstruction tree relationship diagram; An acquisition module, for acquiring, if the parameters of the business microinstruction are filled, a concurrent processing threshold of the receiving system corresponding to the receiving business system identifier and a current concurrent processing quantity of the receiving business system by the business microinstruction scheduling system according to the receiving business system identifier corresponding to the business microinstruction; The sending module is used to send the business microinstructions to the receiving business system if the current concurrent processing quantity is less than the concurrent processing threshold, so that the receiving business system runs according to the business microinstructions.
9. A device for issuing business microinstructions, characterized in that: include: An acquisition module, used to acquire multiple business microinstructions, as well as the execution order relationship between all business microinstructions, and the sending information corresponding to each business microinstruction, wherein the sending information includes a receiving party business system identifier; A processing module, used to construct a microinstruction tree relationship diagram according to the execution order relationship between all business microinstructions; The sending module is used to send the business microinstruction set formed by all business microinstructions, the microinstruction tree relationship diagram and the sending information corresponding to each business microinstruction to the business microinstruction scheduling system.
10. An electronic device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the business microinstruction issuing method described in any one of claims 1 to 5 by executing the executable instructions.
11. An electronic device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; Wherein, the processor is configured to execute the business microinstruction issuing method described in any one of claims 6 to 7 by executing the executable instructions.
12. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for issuing business microinstructions according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Task scheduling method and device, electronic equipment and readable storage medium
CN112764911A
Credit granting service data processing method and device, equipment and medium
CN115834492A
Data forwarding and sharing method, system and equipment of service data flow and storage medium
CN116011027A
Generating a schedule of instructions based on a processor memory tree
US20160239278A1
Cited By
Test method and system based on microinstruction classification operation, terminal and storage medium
CN119535072A