Microservice Configuration via Active Cluster Pulling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Microservice configuration in large-scale microservice architectures can be delayed or incorrect, affecting operation stability.
Innovation Solution
Implementing a method and apparatus for microservice configuration that allows service clusters to actively acquire configuration and service data from a main cluster, reducing the load on the main cluster and improving stability through active data acquisition and governance tasks.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the main cluster passively provides configuration and service data to all service clusters, then all service clusters can obtain data, but the load on the main cluster becomes extremely high and stability deteriorates in large-scale scenarios
Solution Approach 1:
The patent inverts the traditional data distribution model by switching from passive pushing (main cluster pushes to all service clusters) to active pulling (service clusters actively acquire from main cluster). This inversion resolves the technical contradiction by transferring the initiative of data acquisition to service clusters, thereby reducing the load on the main cluster while ensuring all service clusters obtain necessary configuration and service data.
2Productivity
If the main cluster actively pushes data to all service clusters, then data can be distributed efficiently, but the main cluster becomes a single point of failure and stability decreases in large-scale scenarios
Solution Approach 1:
The patent applies the inversion principle by reversing the data distribution direction from push-based to pull-based. Service clusters actively acquire configuration and service data from the main cluster when needed, rather than receiving continuous pushes. This approach maintains data distribution efficiency while eliminating the main cluster's role as an active pusher, thereby reducing its load and preventing it from becoming a single point of failure.
3Loss of information
If service clusters continuously poll the main cluster for data updates, then data freshness is improved, but the network load and main cluster burden increase significantly
Solution Approach 1:
The patent implements periodic action by having service clusters send acquisition requests to the main cluster at specific intervals or when data changes are detected, rather than continuously polling. This periodic acquisition mechanism ensures data freshness is maintained while significantly reducing network load and the burden on the main cluster compared to continuous polling approaches.
Data Source
AI summary
Provided are a method and apparatus for microservice configuration, an electronic device, a system and a storage medium in the present disclosure, relates to the field of computer technologies, and in particular to the field of cloud computing, Internet of things, etc. A specific implementation solution is as follows. Configuration data is received from a main cluster; a service data acquisition request is sent to the main cluster in response to determining that service data in the main cluster has been changed, and the changed service data is received from the main cluster; and at least one service governance task is executed according to the configuration data and the changed service data.


