The Design of Real-time Message Middleware Based on Event Service

Houjie Li, Pengjie Wang, Haiyu Song, Wei Li, Cheng-Xue YuThe Open Automation and Control Systems Journal 2014 · DOI

Abstract

In distributed computing environments, the standard Common Object Request Broker Architecture (CORBA) Event Service provides a useful asynchronous communication model. However, it often lacks the real-time guarantees and data persistence required by complex, large-scale engineering applications. This paper proposes a real-time message middleware design that extends the standard Event Service. By introducing Quality of Service (QoS) controls, a persistent storage mechanism for crash recovery, and a dedicated Event Channel Manager, the proposed system ensures stable, prioritized, and reliable communication among distributed objects.

Introduction

Traditional distributed systems often rely on synchronous, "tightly coupled" communication, where a client must wait for a specific server to respond. While the standard CORBA Event Service introduced asynchronous communication—allowing senders to proceed without waiting for receivers—it operates primarily on a "best effort" basis. This model is insufficient for real-time applications where message prioritization is critical and data loss during system failures is unacceptable. To bridge this gap, we designed a middleware that transforms the standard Event Service into a robust, real-time message system.

Architectural Design

The proposed middleware architecture is built around three core enhancements: lifecycle management, quality control, and data persistence. At the heart of the system is the Event Channel Manager, which handles the creation, destruction, and ownership transfer of communication channels. This allows the system to adapt as project teams evolve and members join or leave.

High-level architecture of the proposed real-time message middleware showing the interaction between suppliers, consumers, and the core message system components.

To improve reliability, we introduced an Event Monitor and modified the standard push method. By changing the return type from void to boolean, the system provides immediate feedback on delivery success, moving beyond the "best effort" limitation of the original specification.

Real-time Scheduling and Persistence

Real-time performance is achieved through a five-level priority scheduling system. To prevent "starvation"—where low-priority messages are never sent because of a constant stream of high-priority data—the system employs an aging mechanism. The effective priority of a message is calculated as Priority * ElapseTime. As a message waits in the queue, its elapsed time increases its effective priority, ensuring it will eventually be processed.

Reliability is further bolstered by a Persistent Storage Unit. This unit ensures that even if the system crashes, in-transit message data is not lost. The system uses a sophisticated logging workflow involving a LogWriter, LogTimer, and LogReader to manage data flow between the active event channel and physical disk storage.

Detailed workflow of the persistent storage and logging mechanism, illustrating how event data is written to and recovered from logs.

To balance performance with reliability, logging is not constant. Instead, it is triggered by specific thresholds: when memory reaches 30% capacity, every 5 seconds, or immediately before a message is purged from the active buffer.

Application and Conclusion

The middleware was designed with complex engineering workflows in mind, such as those involving designers, auditors, and project managers across multiple sub-projects. By allowing for decoupled ownership and cross-project event transfers, the system facilitates seamless collaboration.

While the current design significantly improves upon the standard CORBA Event Service, future work is needed to adapt this middleware for the Internet of Things (IoT) and mobile environments, which require higher protocol agility and better handling of intermittent connectivity. Nonetheless, this architecture provides a solid foundation for reliable, real-time distributed communication in industrial and engineering contexts.

Summary updated

Abstract

The Event Service defined in Common Object Request Broker Architecture provides an asynchronous, multicast communication model among distributed objects. However, the standard CORBA Event Service and previous methods lack important features required by real-time applications. For instance, message transferring programs for cooperating design groups may have requirements of real-time processing and persistent storage of Event data. To address these problems, we propose a real-time message middleware design based on Event service. First, we extend Standard Event Service to a real-time Message Middleware by improving the QoS (Quality of Service) of Event Channel. Second, we propose a model that can persistently store the Event data and recover after the system crushed. Finally, we introduce an Event Channel Manager object to well manage the Event Channels. By using this real-time message middleware, the Object Request Brokers can communicate stably with each other without caring whether the two or many communication sides have relation or whether the other communication side is ready.
BibTeX
@article{li2014design,
  author = {Houjie Li and Pengjie Wang and Haiyu Song and Wei Li and Cheng-Xue Yu},
  title = {{The Design of Real-time Message Middleware Based on Event Service}},
  journal = {The Open Automation and Control Systems Journal},
  year = {2014},
  doi = {10.2174/1874444301406010782},
}
Figure