Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2509

Remove message staging from C++ broker

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      Staging was originally implemented so that a message with content that exceeds available memory can be handled. The message is sent to disk in parts as it arrives, and is never fully resident in memory. However, the current implementation of staging is problematic:

      1. The current architecture requires the entire message to be loaded into memory before it can be delivered. This renders the staging facility superfluous. In fact, it can lead to a problem where it is possible to enqueue messages much larger than the available memory, but never be able to dequeue it again.

      2. The current implementation uses a BDB database to save the message. This is done under a transaction to ensure atomicity of the operation. This results in two issues:
      a) BDB is very slow for large messages, and gets exponentially slower as the message size grows.
      b) The database leaves behind a large number of log files that are not currently managed and tend to accumulate.

      The staging feature is still a valuable one, and the issue of reinstating staging should be revisited when the fundamental problem (1. above) has been corrected. The use of BDB is an implementation issue and can easily be changed for something more suitable.

        Attachments

          Activity

            People

            • Assignee:
              kpvdr Kim van der Riet
              Reporter:
              kpvdr Kim van der Riet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: