Posts

most popular

Apache Kafka for Developers #2: Kafka Architecture and Components

Apache Kafka's architecture is designed to handle high-throughput, real-time data streams efficiently and at scale. Here are the key components: Broker Kafka operates as a cluster composed of one or more servers, known as brokers. These brokers are responsible for storing data and handling client requests. Each broker has a unique ID and can manage hundreds of thousands of read and write operations per second from thousands of clients. Topic A topic is a category where records are stored in the Kafka cluster. Topics are divided into multiple partitions, enabling parallel data processing. It is like tables in the database. Partition A topic divided into multiple partitions for scalability and fault tolerance. Each partition is an ordered, immutable sequence of records that is continually appended to a commit log. Partitions allow Kafka to scale horizontally by distributing data across multiple servers. Example If a topic has 3 partitions and there are 3 brokers, each broker will ha...

Apache Kafka for Developers #13: Setting Up a Kafka Consumer in Node.js using KafkaJS

Apache Kafka for Developers #12: Setting Up a Kafka Producer in Node.js using KafkaJS

Apache Kafka for Developers #11: Creating and Managing Kafka Topics