Logo

dev-resources.site

for different kinds of informations.

Apache Kafka with Docker

Published at
12/25/2024
Categories
programming
devops
kafka
Author
iamzahid
Categories
3 categories in total
programming
open
devops
open
kafka
open
Author
8 person written this
iamzahid
open
Apache Kafka with Docker

Apache Kafka, a robust distributed streaming platform, is essential for building dynamic data pipelines and real-time applications. Pairing it with Docker makes setting up Kafka seamless, empowering developers to explore and innovate effortlessly. In this guide, we’ll dive into the step-by-step process of running Apache Kafka with Docker

Create Docker Compose File

https://github.com/zahido/Docker.git
Enter fullscreen mode Exit fullscreen mode

This docker-compose.yml file contains kafka, zookeeper & GUI redpanda.

Spin Docker Compose

docker-compose up -d
Enter fullscreen mode Exit fullscreen mode

Verify Container is Running

docker ps
Enter fullscreen mode Exit fullscreen mode

Create Topic

docker exec -it <kafka-container-id> /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic my-topic
Enter fullscreen mode Exit fullscreen mode

Replace with the actual container ID of the Kafka container (you can find it using docker ps).

Produce & Consume Messages

docker exec -it <kafka-container-id> /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning
Enter fullscreen mode Exit fullscreen mode

Replace with the actual container ID of the Kafka container.

You’ve successfully set up and run Apache Kafka on Docker well done! This guide offers you a straightforward yet effective way to experiment with Kafka. 🚀

kafka Article's
30 articles in total
Favicon
Building RelaxTube: A Scalable Video Transcoding and Streaming Application
Favicon
Java-kafka producing a message
Favicon
Why Schema Compatibility Matters
Favicon
Kafka vs rabbitmq
Favicon
Testcontainers for kafka
Favicon
Navigating the World of Event-Driven Process Orchestration for Technical Leaders
Favicon
Kafka protocol practical guide
Favicon
I want to connect my flutter app with kafka websocket,is that possible??!
Favicon
Apache Kafka with Docker
Favicon
Use cases of Kafka
Favicon
Microservice communication using Kafka
Favicon
Debezium - Real-Time Change Data Capture for Apache Kafka
Favicon
AutoMQ: A Revolutionary Cloud-First Alternative to Kafka
Favicon
Goodbye Kafka: Build a Low-Cost User Analysis System
Favicon
.Net Core and Kafka
Favicon
Kafka Producer Important Properties
Favicon
How to Stream Data from Kafka to Kafka
Favicon
Kafka and Enterprise Integration Patterns: A Match Made in Event-Driven Heaven
Favicon
Delivery Guarantees with Kafka: Balancing Resilience and Performance
Favicon
High-Load Systems: Choosing Between Redpanda and Kafka
Favicon
Advanced Strategies for Building Scalable Data Pipelines with Cloud Technologies
Favicon
Kafka fundamentals with a practical example
Favicon
The streaming bridges — A Kafka, RabbitMQ, MQTT and CoAP example
Favicon
Building a Kafka Producer and Consumer in Go
Favicon
Kafka x RabbitMQ: Escolha Entre Processamento de Fluxo e Filas de Mensagens
Favicon
🚀 Learning by Doing: Building an Incident Alert System 🛠️
Favicon
Cataloging critical Kafka topic characteristics for Event-driven Innovation
Favicon
Building Real-Time Data Pipelines with Debezium and Kafka: A Practical Guide
Favicon
Schema Manager: Centralize Schemas in a Repository with Support for Schema Registry Integration
Favicon
Mastering Event-Driven Systems: My Perspective on Common Pitfalls

Featured ones: