All Products
Search
Document Center

Simple Message Queue (formerly MNS):Topics

Last Updated:Mar 11, 2026

A topic in Simple Message Queue (SMQ, formerly MNS) is a container that stores messages. Publishers send messages to a topic, and the topic delivers a copy of each message to every active subscription -- similar to a mailing list where every subscriber receives every message.

Publishers and subscribers operate independently: publishers do not wait for subscribers, and each subscriber processes messages at its own pace.

SMQ topics support five subscription endpoint types: queues, HTTP servers, Short Message Service (SMS), Direct Mail, and Mobile Push. Each endpoint independently receives and processes its own copy of every published message.

Topic model

When to use topics

Use topics when a single message needs to reach multiple consumers. Common scenarios:

ScenarioDescription
Event broadcastingNotify multiple downstream services when an order is placed or a resource status changes.
Fan-out processingRoute a single event to a queue for processing, an HTTP server for logging, and an SMS endpoint for alerting -- all at once.
Selective deliveryAttach a filtering tag so each subscriber receives only the messages it needs.

If each message needs only one consumer, use a queue instead.

Features

At-least-once delivery

Every message published to a topic reaches each subscriber at least once, provided the message is within its retention period and has not exceeded the maximum delivery attempts.

Multiple subscriber types

A single topic can deliver messages to different endpoint types simultaneously:

Endpoint typeUse case
QueueBuffer messages for asynchronous processing.
HTTP serverPush messages to web servers.
SMSSend text notifications to mobile phone numbers.
Direct MailSend email notifications.
Mobile PushDeliver push notifications to mobile apps.

Message filtering

Assign a tag when you publish a message. Subscribers with matching filter rules receive only the tagged messages, reducing unnecessary processing.

Each message supports one filtering tag of up to 16 characters.

Topic properties

PropertyDescriptionValid values
Topic nameGlobally unique identifier of the topic in a cluster.Up to 120 characters. Letters, digits, and hyphens (-). Must start with a letter.
Maximum message sizeMaximum size of the message body, in KB.1 to 64. Default: 64.
LoggingWhen enabled, SMQ pushes operation logs to a specified logging bucket. Use these logs to view message traces, delay, and other diagnostics. For details, see Log management.true or false.

Limits

ItemLimitWhat happens if exceeded
Topic name length120 charactersTopic creation fails.
Topics per region1,000To request more, open Quota Center and apply to increase Maximum Topic Quantity in a Single Region. See Submit an application to increase a quota.
Message size64 KBThe message is discarded.
Subscriptions per topic100--
Message retention period1 dayExpired messages are automatically deleted. Set this value based on your workload.
Filtering tags per message1Each tag can be up to 16 characters.
Queue-to-topic subscriptionThe subscribing queue size must equal or exceed the topic size.Subscription creation fails.