Shared-Memory Failover Architecture for Low-Latency Trading
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing electronic trading systems face challenges in achieving fault tolerance with minimal recovery time and performance degradation due to geographic separation of backup systems, leading to communication latency and potential data loss during failover scenarios.
Innovation Solution
Integrate core components of the trading system on a single processing platform using shared memory communication and implement a fault tolerance mechanism that synchronizes and switches to a backup instance upon failure, ensuring all components fail over together, minimizing latency and data loss.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If backup systems are located in different geographic regions from the primary instance, then fault tolerance and system availability are improved, but communication latency increases and data loss risk increases during failover
Solution Approach 1:
The system segments fault tolerance into two distinct mechanisms: synchronous replication for critical state data (maintained in shared memory within the same geographic location) and asynchronous replication for full backup (maintained in geographically separate locations). This segmentation allows the system to optimize each replication type for its specific purpose, minimizing latency for critical operations while maintaining geographic separation for disaster recovery.
Solution Approach 2:
The patent introduces a shared memory communication infrastructure as an intermediary between the primary instance and backup systems. This shared memory acts as a high-speed buffer that enables rapid state synchronization without the latency penalties of traditional network communication, effectively mediating between the need for geographic separation and the need for low-latency failover.
2Reliability
If backup systems are located in different geographic regions from the primary instance, then fault tolerance is improved, but data loss during failover increases
Solution Approach 1:
The system performs preliminary synchronization of the backup instance state with the primary instance state before failover is needed. Through continuous synchronous replication of critical state data to shared memory and periodic asynchronous replication of full system state, the backup is preliminarily prepared with up-to-date information, minimizing data loss when failover occurs.
Solution Approach 2:
The patent implements a cushioning mechanism through shared memory that buffers and protects against data loss during failover. The shared memory maintains a synchronized copy of critical state data that can be immediately transferred to the backup instance, cushioning the system against the effects of geographic separation and network latency during critical failover moments.
3Loss of time
If core components are integrated on a single processing platform with shared memory communication, then communication latency is reduced, but system complexity increases
Solution Approach 1:
The patent merges multiple core components (primary instance, backup instance, and shared memory communication infrastructure) onto a single processing platform. This consolidation eliminates the need for external network communication between these components, dramatically reducing communication latency while managing complexity through unified resource management and coordinated failover protocols.
4Stability of the object's composition
If synchronous replication is used for backup systems, then data consistency is improved, but communication bandwidth requirements increase
Solution Approach 1:
The patent applies different replication qualities to different data types and timeframes: synchronous replication is used for critical state data that requires immediate consistency (local quality optimization), while asynchronous replication is used for full backup systems where eventual consistency is acceptable. This local quality differentiation reduces overall bandwidth requirements while maintaining data consistency where absolutely necessary.
Data Source
AI summary
A system/process provides fault tolerance to an integrated component system which integrates core components of a transaction processing system into a single processing platform, i.e., a single server, enabling elimination of the network interconnects and associated latencies introduced thereby in favor of much faster interconnects, such as inter-process communication and shared memory communication messaging, where a failure of any one component necessitates failing over the entire system to a backup thereof.


