Implementing the Messaging Hub module
Messaging Hub
is the module that will serve as a conduit for real-time market data between the LOB and the various non-latency-sensitive modules within the system. Its primary function is to decouple the hot path, which is the real-time data flow from the LOB, from the rest of the system, ensuring that the hot path is not burdened with the task of serving data to multiple modules.
This module is designed to operate concurrently with the LOB and the Strategy
module, receiving real-time data updates from the LOB and distributing them to the subscribed modules. This design allows the LOB to focus on its core task of maintaining the state of the market, while Messaging Hub
handles the distribution of this data to the rest of the system.
The architecture of Messaging Hub
is based on the publish-subscribe pattern, a popular choice for real-time data distribution in modern trading systems. In this pattern, Messaging Hub
acts as a publisher, broadcasting...