Kafka Cluster Deployment with Automation Scripts
Cluster Configuration
The following configuration demonstrates essential broker settings for a multi-node Kafka deployment. Each server in the cluster requires unique identifier and network configuration parameters.
[admin@server01 kafka_2.11-0.10.2.1]$ cat config/server.properties | grep -v ^$ | grep -v ^#
broker.id=0
listeners=PLAINTEXT://ser ...
Posted on Sat, 07 Nov 2026 16:00:25 +0000 by tha_mink
Integrating PHP with Kafka Message Queue Using rdkafka
This guide demonstrates how to integrate PHP applications with Apache Kafka using the rdkafka extension. The implementation covers both message producer and consumer patterns with practical examples.
Environment Setup
The following environment components are required for this integration:
PHP 7.3 or higher
Laravel 8 (or any PHP framework)
Apac ...
Posted on Mon, 26 Oct 2026 16:41:06 +0000 by davey10101
Real-time Stream Processing for Hot Article Calculation
Understanding Real-time Stream Processing
Real-time stream processing differs from batch processing by handling continuous, unbounded data streams with low latency. Unlike batch jobs that operate on complete datasets, stream processing applies computations to data as it arrives, often using incremental updates for efficiency.
Key Characteristic ...
Posted on Thu, 15 Oct 2026 15:59:52 +0000 by Pavlos1316
Deploying Kafka Clusters on Kubernetes with Zookeeper Coordination
Prerequisites
Kubernetes version: 1.23.17
Zookeeper version: 3.5.9
Kafka version: 3.6.0
Zookeeper Cluster Setup
Create a StatefulSet with three pods, each running a Zookeeper server instance:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: zk-cluster
spec:
serviceName: zk-headless
replicas: 3
selector:
matchLabels:
app ...
Posted on Sun, 11 Oct 2026 16:44:02 +0000 by raku
Diagnosing and Resolving Kafka Consumer Group Rebalance Instability
Kafka consumer group rebalancing is a frequent source of operational friction—especially in high-throughput or long-polling workloads. While designed for fault tolerance, the default dynamic membership model often triggers unnecessary rebalances due to transient client unavailability, misconfigured timeouts, or infrastructure-level disruptions. ...
Posted on Tue, 29 Sep 2026 16:57:16 +0000 by anfo
Installing and Configuring Logstash for Kafka-to-Elasticsearch Pipelines
Package Installation
Add the Elastic PGP key and set up the repository:
sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
sudo tee /etc/yum.repos.d/logstash.repo <<EOF
[logstash-8.x]
name=Elastic repository for 8.x packages
baseurl=https://artifacts.elastic.co/packages/8.x/yum
gpgcheck=1
gpgkey=https://artifacts.elasti ...
Posted on Mon, 21 Sep 2026 16:55:23 +0000 by hyperpcs
Kafka Production Best Practices: A Comprehensive Guide
Kafka, a distributed publish-subscribe messaging system, is designed for high-throughput handling of real-time data feeds. Its architecture offers O(1) time complexity for data persistence, enabling efficient access even with terabytes of data. Capable of processing over 100,000 messages per second on commodity hardware, Kafka supports partitio ...
Posted on Fri, 11 Sep 2026 16:17:33 +0000 by tomlei
Deploying Kafka with Docker Compose and Bitnami Images
Create an isolated Docker network for the stack:
docker network create --driver bridge kafkaNet
ZooKeeper container
docker run -d \
--name zk \
--network kafkaNet \
-p 2181:2181 \
-e ALLOW_ANONYMOUS_LOGIN=yes \
bitnami/zookeeper:latest
Kafka broker
Replace HOST_IP with the address Docker will advertise to cleints outside the bridge ...
Posted on Fri, 11 Sep 2026 16:16:46 +0000 by suge
Kafka Message Loss and Duplication: A Complete Guide
Core Principles
Kafka provides At-Least-Once delivery semantics by default, not exactly-once. This means:
Messages may be duplicated but will never be lost
Achieving no-duplication requires business-level idempotency
Achieving no-loss requires proper configuration and mechanisms
Part One: Message Loss Scenarios and Solutions
Message loss occu ...
Posted on Wed, 19 Aug 2026 16:55:19 +0000 by figo2476
Securing Kafka with SASL/PLAIN Authentication in Docker
To enable SASL/PLAIN authentication for Apache Kafka running in Docker, you must configure both the broker and client components with appropriate security settings. Below is a streamlined guide to set up and validate this configuration.
Docker Container Setup
docker run --name secure-kafka \
--restart=always \
--net=host \
--volume /data/ ...
Posted on Tue, 11 Aug 2026 17:02:05 +0000 by nevillejones