Yes. Use an Internet- and VPC-connected instance to access ApsaraMQ for Kafka over the Internet.
ApsaraMQ for Kafka provides two instance network types:
| Network type | Internet access | VPC access | When to use |
|---|---|---|---|
| VPC-connected | No | Yes | All producers and consumers run within the same VPC |
| Internet- and VPC-connected | Yes | Yes | Producers or consumers connect from outside the VPC |
Enable Internet access
For a new instance, select the Internet- and VPC-connected instance type during purchase.
For an existing VPC-connected instance, upgrade the network type:
Open the Instance Details page.
Click Upgrade.
Change the network type to Internet and VPC.
For detailed steps, see Upgrade instance configurations.
Note
Exceptions may occur when a client in the Chinese mainland connects to an instance outside the Chinese mainland over the Internet, or vice versa.