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.
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.
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