Overview
You cannot access a ApsaraMQ for Kafka instance by using a proxy. For more information, see Details.
Details
The following items describe the working mechanism for a client to access a ApsaraMQ for Kafka broker:
The client uses the
bootstrap.servers
list to access a broker and obtain the metadata.The client uses the IP address that is obtained from the metadata to send and receive messages.
After you configure a proxy, your client can obtain the metadata. However, the client cannot use the IP address that is obtained from the metadata to send or receive messages. This means if you access a ApsaraMQ for Kafka instance by using a proxy, the network cannot be fully connected.
If you want to access Alibaba Cloud from an on-premises data center, you must use an Express Connect circuit. For more information, see What is a connection over an Express Connect circuit?.