Limits

更新时间:
复制 MD 格式

SOFAStack Message Queue sets limits on certain metrics. To prevent errors in your program, you must stay within these limits.

The following table lists the limits and their corresponding values.

Limit

Limit

Description

Topic name length

64 characters

Exceeding this limit prevents you from sending messages to or subscribing to the topic.

Message size

  • Normal and ordered messages: 4 MB

  • Transaction, scheduled, and delayed messages: 4 MB

Messages that exceed the size limit for their type are discarded.

Message retention period

3 days

Messages are stored for a maximum of 3 days. Older messages are automatically deleted.

Consumer offset reset

3 days

You can reset the consumer offset to consume messages from any point in time within the last 3 days.

TPS for a single instance

4000 TPS

Note

Transactions Per Second (TPS) is calculated as the sum of messages sent and received, based on a message size of 1 KB.

For a higher TPS limit, submit a ticket.

Delay duration for scheduled and delayed messages

3 days

  • The maximum delay is 3 days by default. Messages with a longer delay will fail to send.

  • Set the message delay time using the msg.setStartDeliverTime parameter. The unit is milliseconds.