This topic describes how to use ApsaraMQ for RocketMQ to send and receive messages.

Process

The following figure shows the process of using ApsaraMQ for RocketMQ to send and receive messages. Process

Usage notes

  • Permissions

    If you are a RAM user, you must obtain the required permissions before you can access ApsaraMQ for RocketMQ to add, delete, modify, and query the specified resources of ApsaraMQ for RocketMQ. For more information about permissions, see Permission overview.

  • Endpoints
    If you use SDKs to send and receive messages, you must configure the instance endpoint in the code to connect the client to the ApsaraMQ for RocketMQ broker. ApsaraMQ for RocketMQ supports access over virtual private clouds (VPCs) and the Internet.
    • VPCs (recommended): By default, ApsaraMQ for RocketMQ instances provide VPC endpoints. We recommend that you use VPCs to access ApsaraMQ for RocketMQ in production environments.
    • Internet: To access ApsaraMQ for RocketMQ over the Internet, you must manually enable Internet access. After you enable Internet access, ApsaraMQ for RocketMQ instances can provide both VPC endpoints and public endpoints.

      You are charged for outbound data transfer if you access ApsaraMQ for RocketMQ over the Internet. We recommend that you use the Internet in only test environments or data centers. For more information, see Internet access fee.