[
https://issues.apache.org/jira/browse/ARTEMIS-5637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016875#comment-18016875
]
ASF subversion and git services commented on ARTEMIS-5637:
----------------------------------------------------------
Commit 1c394e4bdf4cce8824503613d92ed15f705f0ac5 in activemq-artemis's branch
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=1c394e4bdf ]
ARTEMIS-5637 reduce MQTT-to-Core session ratio
This commit includes the following changes:
- Eliminate the "internal" Core session used by MQTT.
- Consolidate MQTT-specific logic to send a message directly to a
queue.
- Rename some variables in MQTTPublishManager to be more clear.
- Refactor some methods in MQTTPublishManager to be more clear.
- Move createPubRelMessage method from MQTTUtil to MQTTPublishManager.
- Add new methods to ServerSession to allow creating a consumer with no
security checks (i.e. an "internal" consumer).
- Add a test to verify 1:1 MQTT-connection:Core-session ratio.
> Reduce MQTT-to-Core session ratio
> ---------------------------------
>
> Key: ARTEMIS-5637
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5637
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently for every MQTT connection we create 2 Core sessions. One sessions
> represents the MQTT client (e.g. used for creating consumers & sending
> messages), and the other is for internal operations. It should be possible to
> eliminate the session used for internal operations by either using the
> existing session or by performing operations directly on the broker without
> an intermediary session. Doing so will speed up MQTT connection creation &
> destruction as well as reducing pressure on GC.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact