Message Queue for Apache RocketMQ provides multi-language client SDKs for sending and subscribing to messages over TCP and HTTP. This topic describes how to use the multi-language SDKs to send and subscribe to messages over TCP and HTTP.

Procedure

Depending on the protocol you select, the procedure is as follows.

quick-start-process

Instructions

  • A TCP client SDK and an HTTP client SDK provided by Message Queue for Apache RocketMQ are different from each other. Therefore, the group IDs of TCP-based instances cannot be used for HTTP-based instances and vice versa.
  • If a Message Queue for Apache RocketMQ has a TCP endpoint and an HTTP endpoint, you must obtain a TCP SDK and an HTTP SDK separately to use the endpoints. SDKs of TCP-based instances cannot be used for HTTP-based instances and vice versa.
  • If your application uses Message Queue for Apache RocketMQ across domains, we recommend that you use HTTP.

What to do next