Code Monkey home page Code Monkey logo

datastack-kafka's Introduction

Kafka Cluster Setup with Docker Compose

License

Introduction

This repository contains a comprehensive Docker Compose setup for deploying a Kafka cluster along with its supporting services. It is designed to provide a robust, scalable, and easily understandable Kafka environment suitable for development, testing, and potentially for smaller production deployments.

Services Included:

  1. ZooKeeper: Manages Kafka cluster metadata and coordination.
  2. Kafka Broker: Core service for storing and processing messages.
  3. Kafka Connect: Enables integration of Kafka with external data sources and sinks.
  4. Schema Registry: Manages Avro schemas for Kafka messages, ensuring compatibility.
  5. KSQLDB Server and CLI: Stream processing engine to process Kafka data in real-time.
  6. Kafka REST Proxy: Provides a RESTful interface to the Kafka cluster.
  7. Kafka UI: This project uses Kafka-UI by provectus for Kafka management and monitoring.

Features:

  • Ease of Deployment: One-command deployment of a full Kafka stack.
  • Scalability: Easy to scale Kafka brokers and other components.
  • Configuration Customization: Configuration options are externalized for easy customization.
  • Development and Testing: Ideal environment for Kafka development and testing.
  • Health Checks: Built-in health checks for service stability and monitoring.
  • Data Persistence: Volumes configured for data persistence.

Best Practices Incorporated:

  • Service Dependencies: Correct order and dependencies of services ensure smooth startup and operation.
  • Configuration Management: Environment variables and external configuration files for easy management.
  • Network Configuration: Custom network settings for inter-service communication.
  • Security: Basic security configurations, with scope for further enhancements.
  • Monitoring and Logging: JMX configuration for Kafka Broker monitoring.

Getting Started:

  1. Clone the repository.
  2. Navigate to the repository directory.
  3. Run docker compose up -d to start all services.
  4. Access Kafka UI at http://localhost:8080 for cluster management.

Prerequisites:

  • Docker and Docker Compose installed on your machine.
  • Basic understanding of Kafka and Docker.

Customization:

  • Modify the .env file for environment-specific settings.
  • Update Docker Compose file for advanced configurations such as scaling brokers, adding more ZooKeeper nodes, etc.

Contributing:

Contributions to enhance this setup are welcome! Please adhere to the following guidelines:

  • Fork the repository.
  • Create a new branch for your feature.
  • Open a pull request with a detailed description of your changes.

Disclaimer:

This setup is primarily for development and testing purposes. For production environments, additional configurations for security, high availability, and performance tuning are recommended.


Feel free to open issues for any questions or suggestions regarding this Kafka Docker Compose setup.

datastack-kafka's People

Contributors

mojo4044 avatar quantumfuturist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.