ApsaraMQ for RocketMQ provides the .NET SDK to send and consume messages. This topic describes the parameters for sending and consuming messages.

ParameterDescription
NAMESRV_ADDRThe TCP endpoint, which can be obtained from the Instances page in the ApsaraMQ for RocketMQ console.
AccessKeyAn AccessKey ID is used as the identifier for identity authentication. For information about how to obtain an AccessKey ID, see Create an AccessKey pair.
SecretKeyAn AccessKey secret is used as the password for identity authentication. For information about how to obtain an AccessKey secret, see Create an AccessKey pair.
OnsChannelThe user channel, which is ALIYUN by default and CLOUD for CloudTmall users.

Parameters for sending messages

ParameterDescription
ProducerIdThe group ID that you created in the ApsaraMQ for RocketMQ console. For more information, see Terms.
SendMsgTimeoutMillisThe message transmission timeout period in milliseconds. Default value: 3000.
shardingKey (for ordered messages)The sharding key for ordered messages.

Parameter for consuming messages

ParameterDescription
ConsumerIdThe group ID that you created in the ApsaraMQ for RocketMQ console. For more information, see Terms.
MessageModelThe message consumption model of a consumer instance. Valid values are as follows:
  • CLUSTERING (default value): indicates clustering consumption.
  • BROADCASTING: indicates broadcasting consumption.
ConsumeThreadNumsThe number of consumption threads for a consumer instance. Default value: 20.

References