Annotated Microservice Code Generation for Data Consistency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In distributed network management systems, ensuring data consistency across central and regional managers is challenging due to differences in data models and lack of efficient mechanisms for data replication and call routing, leading to inconsistencies in managing network devices.
Innovation Solution
The implementation of a microservices-based architecture with annotated data models that generate application code for network managers, enabling transparent consistency enforcement through data replication and call routing across the network, using scope and consistency level annotations to define the scope and behavior of objects and methods.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If data models are customized for different regional and central managers, then adaptability to specific management needs is improved, but data consistency across the distributed system deteriorates
Solution Approach 1:
The system segments the monolithic manager into independent microservices that can be deployed separately to central and regional managers. Each microservice is a self-contained unit that can be customized for specific management needs while maintaining standardized interfaces, allowing adaptability without compromising data consistency through the use of consistent service contracts and data schemas.
Solution Approach 2:
The patent uses code generation to create copies of microservice implementations for different manager types. A single source microservice definition is copied and instantiated across multiple managers, ensuring that identical business logic and data handling rules are replicated throughout the system, thereby maintaining consistency while allowing deployment flexibility.
2Reliability
If manual data consistency management is implemented, then control over data replication is improved, but development complexity and time consumption worsen
Solution Approach 1:
The system implements self-service data consistency through automated microservice orchestration. When data is updated in one manager, the microservice infrastructure automatically propagates changes to other managers without requiring manual intervention. The system self-manages replication, synchronization, and conflict resolution, eliminating the need for developers to implement manual consistency mechanisms.
Solution Approach 2:
The patent employs preliminary code generation that pre-configures microservices with built-in consistency management capabilities. During the development phase, the system generates pre-configured microservice code that includes automated data replication and synchronization logic, so that when the system is deployed, consistency management is already in place and operational without requiring additional manual setup or configuration.
3Adaptability or versatility
If microservices are independently deployed to central and regional managers, then deployment flexibility is improved, but system complexity increases
Solution Approach 1:
The patent creates universal microservice components that can function in multiple contexts - the same microservice implementation can be deployed to both central and regional managers. These multi-functional microservices use standardized interfaces and data schemas, allowing them to operate correctly in different management contexts without requiring separate custom implementations, thereby reducing overall system complexity despite deployment flexibility.
Solution Approach 2:
The system manages complexity through parameterized microservice configurations. Instead of creating different microservice code for different managers, the patent uses parameter changes and configuration variables to adapt the same microservice to different deployment contexts. This allows independent deployment to central and regional managers while maintaining a unified codebase, reducing complexity by avoiding code duplication.
Data Source
AI summary
In general, techniques are described for providing data consistency for managed device data among network managers in a hierarchical and distributed network management system in which the network managers operate according to a microservices-based software architecture. For example, a method comprises receiving a data model for a network device, wherein the data model comprises an object and an annotation that indicates a type of scope for the object; and processing, based on the object and annotation, the data model to generate application code for a microservice application for a network manager for managing instances of the network device, wherein the application code, when compiled, and executed by the network manager, causes the network manager to replicate data associated with the object to one or more of a plurality of network managers of a distributed network managed system.


