Synchronization Locking Server for Parallel Service Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing synchronization schemes for inter-process communication are inadequate for handling synchronization requirements across multiple service layers deployed in different cities, IDCs, or servers, leading to logical confusion and data inconsistency in parallel service processing.
Innovation Solution
A method and system that utilize a synchronization locking server to lock service requests, ensuring that only one service layer can process a request at a time, with mechanisms for retrying locking requests and employing timers to prevent permanent locking, thereby maintaining data consistency across distributed service layers.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If parallel service layers process the same service request simultaneously, then service processing speed is improved, but logical confusion and data inconsistency occur
Solution Approach 1:
The patent applies preliminary action by acquiring a lock on the service request before processing begins. The locking mechanism is established in advance to prevent other service layers from processing the same request simultaneously, ensuring data consistency while allowing parallel processing of different requests.
Solution Approach 2:
The patent introduces a locking mechanism as an intermediary between multiple service layers and the same service request. This mediator coordinates access to the request, allowing parallel service layers to work on different requests simultaneously while preventing concurrent access to the same request, thus resolving the contradiction between processing speed and data consistency.
2Reliability
If a synchronization locking server is introduced to coordinate service requests, then data consistency is improved, but system complexity increases
Solution Approach 1:
The patent applies self-service by enabling service layers to autonomously acquire and release locks on service requests without requiring complex centralized coordination. The locking mechanism is integrated into the service processing flow, allowing each service layer to manage its own access control, thereby reducing overall system complexity while maintaining data consistency.
Data Source
AI summary
The present invention provides a method a device and a system for processing parallel services, which includes: determining, by a synchronization locking server, whether a service request for locking is locked after receiving a locking request sent by a service server, and locking the service request when the service request is unlocked and returning a locking success response to the service server, or returning a locking failure response to the service server when the service request is locked, so as to ensure accuracy of a processing result of the parallel services that are processed across the cities, IDCs or servers.


