Important Notice: CloudKarafka is shutting down. Read all about it in our End of Life Announcement


To get started with Apache Kafka add the kafka-client dependency to your project.


You can get all the connection variables you need from the provider you used to create the CloudKarafka instance.

Consumer example in Java

KafkaConsumer consumer = new KafkaConsumer<>(props);
while (true) {
    ConsumerRecords records = consumer.poll(100);
    for (ConsumerRecord record : records)
        System.out.printf("msg = %s\n", record.value());

The code example can be found here: