{"id":19309047,"url":"https://github.com/devops-360-online/kafka-guide","last_synced_at":"2025-02-24T03:19:41.027Z","repository":{"id":247084381,"uuid":"824860257","full_name":"devops-360-online/kafka-guide","owner":"devops-360-online","description":"a comprehensive guide to understanding Apache Kafka, including its architecture, installation steps, and a practical use case demonstration .","archived":false,"fork":false,"pushed_at":"2024-07-07T17:40:02.000Z","size":161,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-06T01:42:22.324Z","etag":null,"topics":["kafka","kraft","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devops-360-online.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-06T06:33:43.000Z","updated_at":"2024-07-25T07:59:33.000Z","dependencies_parsed_at":"2025-01-06T01:40:48.367Z","dependency_job_id":null,"html_url":"https://github.com/devops-360-online/kafka-guide","commit_stats":null,"previous_names":["devops-360-online/kafka-guide"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-360-online%2Fkafka-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-360-online%2Fkafka-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-360-online%2Fkafka-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-360-online%2Fkafka-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-360-online","download_url":"https://codeload.github.com/devops-360-online/kafka-guide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240410034,"owners_count":19796820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kafka","kraft","kubernetes"],"created_at":"2024-11-10T00:17:35.628Z","updated_at":"2025-02-24T03:19:40.998Z","avatar_url":"https://github.com/devops-360-online.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kafka-Guide\n\nA comprehensive guide to understanding Apache Kafka, including its architecture, installation steps, and a practical use case demonstration.\n\nKafka is a message broker using a commit log, often associated with infrastructure data, microservices, and event-driven architectures.\n\n## Architecture\n\nSchema: ![Kafka Architecture](images/kafka-architecture.png)\n\n### Kafka Cluster Components\n\n- **Broker**: Acts as a node with SSD storage.\n- **Partition**: Ensures high availability and fault tolerance of data. We could have multiple partitions replicated across brokers (Leader and Followers).\n- **Topic**: Similar to a table in a database, it defines a data stream.\n- **Offset**: The unique identifier for a message/event within a topic.\n- **Producer**: Publishes messages to Kafka.\n- **Consumer**: Reads messages from a topic.\n- **Consumer Group**: Multiple instances of the same application (e.g., App C with 3 instances) can consume messages from specific partitions with coordination.\n\n### Key Features\n\n- **Replications**: Ensures data redundancy and availability.\n- **Partitions**: Allows for data distribution and parallel processing.\n- **Scalability**: Easily scalable to handle large volumes of data.\n- **Performance**: Optimized for high-throughput and low-latency message processing.\n\nKafka operates asynchronously, and consumers can reread messages since events are stored with offsets.\n\n### Partitioning\n\nPartitions logically divide topics and are distributed across the cluster. Each message within a partition is associated with a unique key.\n\n### Alternatives to Kafka\n\n- RabbitMQ\n- ActiveMQ\n- ZeroMQ\n\n## Installing Kafka with Kubernetes\n\nInstructions for installing Kafka using Kubernetes will be provided in this section.\n\n## Real-World Example\n\nTracking a bus to see its real-time position using Flask, JavaScript, and leafletjs .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-360-online%2Fkafka-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-360-online%2Fkafka-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-360-online%2Fkafka-guide/lists"}