Multi-Point Data Writing in Distributed Database Systems
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current distributed consensus protocols only support single-point writing and do not support multi-point writing, which leads to poor user experience for users moving across regions, as they cannot write data into nodes in the current region.
Innovation Solution
A method and apparatus for data writing in a distributed database system, where a first node receives a message from a second node with a group identifier, modifies the group identifier in a data row to the received group identifier, and sends an update message to the second node, enabling multi-point writing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If distributed consensus protocols use single-point writing with fixed master nodes, then data consistency is ensured, but users moving across regions cannot write data in their current region
Solution Approach 1:
The patent applies dynamics by making the master node assignment dynamic rather than static. When a user moves to a different region, the system dynamically determines the user's current region and assigns a master node from that region, enabling multi-point writing while maintaining data consistency through the dynamic master node selection mechanism
Solution Approach 2:
The patent introduces a region determination module as an intermediary that mediates between the user's write request and the master node selection. This intermediary determines the user's current region and uses this information to select an appropriate master node, enabling users to write data in their current region while maintaining system consistency
2Ease of operation
If users can write data in their current region after moving, then user experience is improved, but the distributed consensus protocol complexity increases
Solution Approach 1:
The patent segments the master node selection process into distinct components: a region determination module that identifies the user's current region, and a master node selection mechanism that chooses an appropriate master node based on region information. This segmentation allows the system to maintain relatively simple consensus protocols while improving user experience through region-aware writing
Data Source
Figure 1~2
Figure 3A~3B
Figure 3C~3D
AI summary
Embodiments of present disclosure provides a method and an apparatus for data writing. An exemplary method includes; obtaining first to-be-written data, determining a first group identifier corresponding to the first to-be-w7ritten data; determining a master node corresponding to the first group identifier; and writing the first to-be- written data if the master node is the current node.