Microservice Governance Action Links for Faster RPC Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional microservice governance solutions suffer from low execution efficiency and poor performance due to the need for repetitive parameter acquisition and condition judgment in microservice governance logic.
Innovation Solution
A method involving querying an action link table using message features as criteria to determine a target action link with consecutively executable nodes, allowing for efficient execution of governance actions without additional condition judgments.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If conventional microservice governance logic is used with repetitive parameter acquisition and condition judgment, then comprehensive governance control is achieved, but execution efficiency and performance deteriorate
Solution Approach 1:
The patent pre-calculates and stores action links in a table structure during system initialization or configuration phase. These action links contain pre-determined sequences of governance actions keyed by message features. When a message arrives, the system performs a simple table lookup using the message feature as key, immediately obtaining the pre-computed action sequence without needing to execute condition judgments or acquire parameters at runtime. This preliminary preparation resolves the contradiction by shifting computational work from runtime to setup phase.
Solution Approach 2:
The patent creates simplified copies of governance logic in the form of action link tables that mirror the essential decision-making pathways. Instead of executing the full complex governance logic with multiple condition judgments for each message, the system uses pre-computed action link copies that capture the essential routing decisions. These action link copies are stored in a readily accessible table format, allowing fast retrieval and execution without re-evaluating conditions.
2Loss of time
If traditional governance processing with condition judgments is implemented, then adaptive governance is achieved, but time consumption increases
Solution Approach 1:
The system pre-computes action sequences for various message feature combinations and stores them in the action link table. This preliminary action captures adaptive governance decisions in advance, so that during runtime, the system only needs to perform a quick table lookup based on the message feature key. The adaptability is preserved because the pre-computed action links cover different message types and scenarios, while the processing time is dramatically reduced by eliminating runtime condition evaluation.
Solution Approach 2:
The action link table is designed to be dynamically configurable and updatable. While the action sequences are pre-computed for fast execution, the table itself can be modified to adapt to changing governance requirements. This allows the system to maintain fast processing speeds through pre-computation while retaining the ability to adapt to new message types or governance policies by updating the action link table contents.
Data Source
AI summary
Embodiments of the disclosure provide a method, apparatus, electronic device, and storage medium for controlling a microservice governance service. In the method, a first message is received from a business unit. The first message is a remote procedure call message comprising a business request. An action link table is queried by using a message feature of the first message as a query criteria. If a corresponding action link in the action link table is hit, the hit action link is determined as a target action link. The action link table is stored in a microservice governance unit and used for processing the first message to implement a microservice governance for the business unit. The target action link comprises at least two action nodes configured to implement a governance action of the microservice governance. The target action link is run to consecutively execute governance actions corresponding to the action nodes.


