Real-time Multi-master Transaction Session Replication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Financial transactions experience delays when a customer's session is bounced from one data center to another, especially if the distant data center needs to re-authenticate and retrieve transaction information, leading to increased message travel time and user inconvenience.
Innovation Solution
Implementing a system where session and transaction information is replicated in real-time across multiple data centers, allowing seamless continuation of transactions without the need for re-authentication if the session is bounced, by using synchronization data and asynchronous messaging to ensure data consistency across databases.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If session information is replicated in real-time across multiple data centers, then transaction continuity and user experience are improved, but system complexity and data synchronization overhead increase
Solution Approach 1:
The system performs preliminary actions by proactively replicating session information and authentication status to backup data centers before a failover event occurs. This ensures that when a session bounce happens, the backup data center already possesses the necessary information to continue the transaction without interruption, thereby improving reliability while managing complexity through advance preparation rather than reactive response.
Solution Approach 2:
The patent implements copying by creating replicated copies of session information, authentication tokens, and transaction state across multiple data centers. These copies are maintained through asynchronous synchronization mechanisms, allowing any data center to assume the master role during a failover without requiring complex real-time coordination or manual intervention, thus improving transaction continuity while keeping the replication mechanism manageable.
2Loss of time
If real-time replication of transaction information is implemented, then message travel time is reduced during session bounce, but data synchronization overhead and network bandwidth consumption increase
Solution Approach 1:
The system applies partial action by selectively replicating only the essential session information and authentication status rather than all transaction data in real-time. This partial replication approach reduces network bandwidth consumption and synchronization overhead while still providing sufficient information for rapid failover. When a session bounce occurs, the replicated authentication tokens and session state enable quick resumption without requiring complete data transfer, thus reducing message travel time without excessive network resource consumption.
Solution Approach 2:
The patent ensures continuity of useful action by maintaining persistent, asynchronous replication connections between data centers that continuously sync critical session data without interrupting normal transaction processing. This continuous background synchronization ensures that when a failover event occurs, the backup data center immediately has access to up-to-date session information, eliminating message travel time delays while the ongoing asynchronous nature of the replication minimizes network bandwidth impact compared to synchronous real-time replication.
3Reliability
If session authentication is performed at each data center, then security is enhanced, but transaction speed and user convenience deteriorate during session bounce
Solution Approach 1:
The system performs preliminary authentication by validating user credentials and establishing secure sessions at the primary data center before any failover can occur. The authentication result and security tokens are then replicated to backup data centers in advance. When a session bounce happens, the backup data center uses the pre-replicated authentication information to immediately continue the session without requiring the user to re-authenticate, thus maintaining both security and transaction speed. This preliminary authentication approach eliminates the need for re-authentication during failover while preserving security standards.
Data Source
AI summary
According to some embodiments, a system comprises a plurality of data centers communicatively coupled by a network. The data centers include an assigned data center and a second data center. The assigned data center receives a request for a session, determines the session passes authentication, and communicates session information to the second data center indicating the session passes authentication. The assigned data center also receives a first message comprising a first portion of transaction information and communicates synchronization data for replicating the first portion of transaction information at the second data center. The second data center receives a second message comprising a second portion of transaction information. The system facilitates a financial transaction in real-time based on the first portion and the second portion of transaction information.


