[Paper Review] Queues Are Databases
This paper argues that message queues are fundamentally databases, proposing that queue systems should be built on top of full-featured database management systems (DBMS) rather than as standalone middleware. It demonstrates that queues require database capabilities like concurrency control, recovery, security, and monitoring—features already present in DBMS—thereby advocating for unified, database-native queue implementations to avoid feature duplication and improve reliability and performance.
Message-oriented-middleware (MOM) has become an small industry. MOM offers queued transaction processing as an advance over pure client-server transaction processing. This note makes four points: Queued transaction processing is less general than direct transaction processing. Queued systems are built on top of direct systems. You cannot build a direct system atop a queued system. It is difficult to build direct, conversational, or distributed transactions atop a queued system. Queues are interesting databases with interesting concurrency control. It is best to build these mechanisms into a standard database system so other applications can use these interesting features. Queue systems need DBMS functionality. Queues need security, configuration, performance monitoring, recovery, and reorganization utilities. Database systems already have these features. A full-function MOM system duplicates these database features. Queue managers are simple TP-monitors managing server pools driven by queues. Database systems are encompassing many server pool features as they evolve to TP-lite systems.
Motivation & Objective
- To challenge the prevailing architectural separation between message queues and databases by arguing that queues are fundamentally database systems.
- To highlight that direct, conversational, or distributed transactions cannot be reliably built atop queued systems due to their stateless and asynchronous nature.
- To advocate for integrating queue functionality directly into standard DBMSs to leverage existing database features such as ACID properties, security, and monitoring.
- To demonstrate that full-featured MOM systems are essentially reimplementing DBMS functionality, leading to redundancy and inefficiency.
- To propose that queue managers are simpler than DBMSs, but that DBMSs should evolve to natively support queue semantics as part of a broader TP-lite model.
Proposed method
- Analyzes the architectural relationship between message-oriented middleware (MOM) and traditional direct transaction processing systems.
- Argues that queued transaction processing is a restricted form of direct processing and cannot be used to implement the latter.
- Identifies core database features—such as concurrency control, recovery, configuration, monitoring, and reorganization—that are essential for robust queue systems.
- Proposes that these features should be implemented within a standard DBMS rather than in isolated MOM systems.
- Uses the observation that MOM systems duplicate DBMS functionality to argue for architectural unification.
- Suggests that DBMSs should evolve to natively support queue semantics, treating queues as first-class database objects with full transactional guarantees.
Experimental results
Research questions
- RQ1Can message queues be meaningfully reinterpreted as a form of database system?
- RQ2Why is it infeasible to build direct or conversational transaction processing atop a queued system?
- RQ3What database features are essential for reliable queue management and why should they be natively supported in a DBMS?
- RQ4How does the duplication of DBMS functionality in MOM systems lead to inefficiency and technical debt?
- RQ5What architectural evolution is required for DBMSs to natively support queue-based workloads as part of a TP-lite model?
Key findings
- Queued transaction processing is less expressive and cannot support direct, conversational, or distributed transactions, making it unsuitable as a foundation for such systems.
- Queue systems inherently require database-level features such as concurrency control, recovery, security, configuration, and performance monitoring.
- Full-function MOM systems effectively reimplement core DBMS functionality, leading to redundancy and increased complexity.
- It is not possible to build a direct transaction system on top of a queued system due to the loss of state and control flow inherent in queuing.
- The most robust and efficient approach is to embed queue functionality directly into a standard DBMS, leveraging existing database infrastructure.
- Database systems are better positioned to evolve into comprehensive TP-lite platforms by natively supporting queue semantics and related features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.