Yes, you can access Message Queue for Apache RocketMQ over the Internet.

Message Queue for Apache RocketMQ provides a region named Internet for your access over the Internet. When you create an instance, a topic, and a group ID in the Message Queue for Apache RocketMQ console, select Internet Region. Then, your client can access the topic by using the public TCP or HTTP endpoint of Message Queue for Apache RocketMQ.

endpoint

The following table describes the endpoints of Message Queue for Apache RocketMQ.

Region TCP endpoint HTTP endpoint
Internet Only the public endpoint is available. Only the public endpoint is available.
Regions other than the Internet region Only the internal endpoint is available. Both the public and internal endpoints are available.

However, the Internet environment is complex and less stable than the internal network. In the production environment, you can deploy your application on an Elastic Compute Service (ECS) instance in a region in the internal network to send and receive messages. Regions in the internal network provide higher availability.

For more information about how to send and receive messages by using Message Queue for Apache RocketMQ, see the following two topics: