A Java client can connect to Message Queue for Apache Kafka through various endpoints and send and receive messages.

The following table lists the endpoints provided by Message Queue for Apache Kafka.

Item Default endpoint SASL endpoint
Network VPC VPC
Port 9092 9094
SASL mechanism N/A
  • PLAIN: a simple username and password verification mechanism. Message Queue for Apache Kafka improves the PLAIN mechanism and allows you to dynamically add SASL users without restarting the instance.
  • SCRAM: a username and password verification mechanism, providing higher security than PLAIN. Message Queue for Apache Kafka uses SCRAM-SHA-256.
Topic Use the default endpoint to send and subscribe to messages