Message Queue for Apache RocketMQ provides the .NET SDK to send and consume messages. This topic describes the parameters for sending and consuming messages.
Parameter | Description |
---|---|
NAMESRV_ADDR | The TCP endpoint, which can be obtained from the Instances page in the Message Queue for Apache RocketMQ console. |
AccessKey | The AccessKey ID that you created in the Alibaba Cloud console for identity authentication. |
SecretKey | The AccessKey secret that you created in the Alibaba Cloud console for identity authentication. |
OnsChannel | The user channel, which is ALIYUN by default and CLOUD for CloudTmall users. |
Parameters for sending messages
Parameter | Description |
---|---|
ProducerId | The group ID that you created in the Message Queue for Apache RocketMQ console. For more information, seeTerms. |
SendMsgTimeoutMillis | The message transmission timeout period in milliseconds. Default value: 3000. |
shardingKey (for ordered messages) | The sharding key for ordered messages. |
Parameter for consuming messages
Parameter | Description |
---|---|
ConsumerId | The group ID that you created in the Message Queue for Apache RocketMQ console. For more information, see Terms. |
MessageModel | The message consumption model of a consumer instance. Valid values are as follows:
|
ConsumeThreadNums | The number of consumption threads for a consumer instance. Default value: 20. |