Search code examples
node.jsamazon-web-servicesapache-kafkaaws-msk

How to connect to an existing Kafka MSK Cluster step by step?


I would like to know more about how to connect to a Kafka MSK Cluster.


Solution

  • You need a Kafka client.

    Since you have , start with kafkajs or node-rdkafka. I'd recommend kafkajs since it supports SASL consumption with AWS IAM

    Beyond that, MSK is an implementation detail, and any steps will work for all Kafka clusters (depending on other security implementations). However, cloud providers will require that you allow your client IP address space within the VPC, and you can follow the official getting started guide for verifying a basic client will work.