tencent cloud

TDMQ for MQTT

Related Agreement
개인 정보 보호 정책
데이터 개인 정보 보호 및 보안 계약
문서TDMQ for MQTT

Technical Architecture

포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-04-01 16:21:33

MQTT Components and Deployment Architecture


Pub/Sub Client: client application or device identified by a unique client ID that can publish and subscribe to messages.
MQTT Proxy: server-side computing component responsible for MQTT protocol processing, connection session management, and authentication and authorization, stateless to allow rapid scaling.
NameSrv: naming discovery service responsible for routing and addressing based on topics, as well as Broker heartbeat registration.
RocketMQ Broker: server-side component that stores messages, responsible for message sending and receiving, storage, and message models, with support for horizontal scaling.

MQTT Implementation Principle and Architecture


Message Publishing Process
The publishing client establishes a connection with the Proxy. Once connected, it publishes an MQTT message. The Proxy parses and converts the message, then writes it into the RocketMQ Broker for persistence.
Message Storage
After receiving the message, the Broker first persists the message to the Commitlog data file, then creates two indexes based on the topic. The primary topic index is used for event notification, while the multi-level topic index is used for user maintenance of consumption progress.
Message Subscription Process
The subscribing client establishes a connection with the Proxy and specifies the subscribed topic expressions. The Proxy maintains each connection through sessions. When new messages arrive, the notify module broadcasts events to matching sessions, triggering immediate message pop. Additionally, the cache module reduces repeated extraction, improving performance and real-time message delivery.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백