Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2332

JMS mail queue should reuse sessions and the like

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, master, 3.0.1
    • Fix Version/s: None
    • Component/s: Queue
    • Labels:

      Description

      As stated here: https://activemq.apache.org/artemis/docs/1.0.0/perf-tuning.html (section anti-patterns)

      Re-use connections / sessions / consumers / producers. Probably the most common messaging anti-pattern we see is users who create a new connection/session/producer for every message they send or every message they consume. This is a poor use of resources. These objects take time to create and may involve several network round trips. Always re-use them.

      Note that a JMS section needs to be "thread local". Rationals: the rollback operations rolls back the entire session.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              btellier Benoit Tellier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: