<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arti Chandane on Medium]]></title>
        <description><![CDATA[Stories by Arti Chandane on Medium]]></description>
        <link>https://medium.com/@artichandane?source=rss-1dd3b42de10------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zVgPz0nw04OBIzK5RB6g-A.jpeg</url>
            <title>Stories by Arti Chandane on Medium</title>
            <link>https://medium.com/@artichandane?source=rss-1dd3b42de10------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:37:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@artichandane/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Everything You Need to Know About Kafka: From Basics to Setup]]></title>
            <link>https://medium.com/@artichandane/everything-you-need-to-know-about-kafka-from-basics-to-setup-472401e50884?source=rss-1dd3b42de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/472401e50884</guid>
            <dc:creator><![CDATA[Arti Chandane]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 09:08:01 GMT</pubDate>
            <atom:updated>2025-07-11T09:08:01.528Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔍 What is Apache Kafka?</h3><p>Apache Kafka is an open-source, distributed event streaming platform developed by LinkedIn and later donated to the Apache Software Foundation. Kafka is designed for high-throughput, fault-tolerant, real-time data processing and communication between systems.</p><p>It acts as a <strong>message broker</strong> where data is published (produced) by producers, stored in topics, and consumed by consumers in a fault-tolerant, scalable way.</p><h3>❓ Why Use Kafka?</h3><p>Kafka is used to handle real-time data streams and enables decoupling between systems that produce and consume data. It’s a critical tool for:</p><ul><li>Log aggregation</li><li>Real-time analytics</li><li>Data pipelines</li><li>Event sourcing</li><li>Stream processing</li></ul><h3>✅ Advantages of Kafka</h3><ol><li><strong>High Throughput</strong>: Can handle millions of messages/sec.</li><li><strong>Scalability</strong>: Easily scales horizontally by adding more brokers.</li><li><strong>Durability</strong>: Data is replicated and persisted.</li><li><strong>Fault Tolerance</strong>: Replication ensures no data loss.</li><li><strong>Real-time Processing</strong>: Ideal for stream-based systems.</li><li><strong>Decoupling of Systems</strong>: Producers and consumers are independent.</li></ol><h3>⚠️ Disadvantages of Kafka</h3><ol><li><strong>Complex Setup</strong>: Not beginner-friendly to configure and maintain.</li><li><strong>High Resource Usage</strong>: Requires good hardware for large-scale deployments.</li><li><strong>No Message Prioritization</strong>: All messages are treated equally.</li><li><strong>Learning Curve</strong>: Steep for new users.</li></ol><h3>🚀 Future Scope of Kafka</h3><ul><li><strong>IoT Integration</strong>: Real-time processing for sensor data.</li><li><strong>Machine Learning Pipelines</strong>: Feeding real-time data into models.</li><li><strong>Edge Computing</strong>: Kafka can integrate with edge systems.</li><li><strong>Cloud-native Kafka</strong>: Managed services like Confluent Cloud are expanding Kafka’s reach.</li><li><strong>5G &amp; Telecom</strong>: Kafka is being integrated into telco event systems.</li></ul><h3>⚙️ Kafka Installation and Setup (Windows)</h3><h3>📦 Prerequisites</h3><ul><li>Java 8 or later installed</li><li>Kafka downloaded and extracted to a directory (e.g., C:\kafka)</li></ul><h3>🪄 Step-by-Step Setup</h3><h4>1. Start Zookeeper</h4><pre>cd C:\kafka<br>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties</pre><h4>2. Start Kafka Server</h4><pre>cd C:\kafka<br>.\bin\windows\kafka-server-start.bat .\config\server.properties</pre><h4>3. Create Kafka Topic</h4><pre>.\bin\windows\kafka-topics.bat --create --topic my-test-topic --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1</pre><h4>4. List Topics</h4><pre>.\bin\windows\kafka-topics.bat --list --bootstrap-server localhost:9092</pre><h4>5. Start Producer</h4><pre>.\bin\windows\kafka-console-producer.bat --topic my-test-topic --bootstrap-server localhost:9092</pre><h4>6. Start Consumer</h4><pre>.\bin\windows\kafka-console-consumer.bat --topic my-test-topic --from-beginning --bootstrap-server localhost:9092</pre><h4>7. Delete a Topic</h4><pre>.\bin\windows\kafka-topics.bat --delete --topic my-test-topic --bootstrap-server localhost:9092</pre><h3>🔍 How to Check if Kafka is Running</h3><h4>Method 1: Using netstat</h4><pre>netstat -ano | findstr :9092</pre><p>If it shows LISTENING, Kafka is running.</p><h4>Method 2: List Topics</h4><pre>.\bin\windows\kafka-topics.bat --list --bootstrap-server localhost:9092</pre><h3>🧠 Kafka Key Concepts</h3><ol><li><strong>Broker: </strong>Kafka server that stores data and serves clients</li><li><strong>Producer: </strong>Sends data to topics</li><li><strong>Consumer: </strong>Reads data from topics</li><li><strong>Topic: </strong>Logical channel where messages are stored</li><li><strong>Partition: </strong>A topic is split into partitions to scale and parallelize</li><li><strong>Offset: </strong>Unique ID of a message in a partition</li><li><strong>Consumer Group: </strong>A group of consumers that coordinate to consume messages</li></ol><h3>📁 Kafka Important Files</h3><ol><li>config\zookeeper.properties: Zookeeper config</li><li>config\server.properties: Kafka broker config</li><li>logs\: Kafka and Zookeeper logs</li><li>tmp\: Default data storage location</li></ol><h3>💡 Tips</h3><ul><li>Always start Zookeeper <strong>before</strong> Kafka.</li><li>Keep terminals open for Zookeeper and Kafka.</li><li>Use meaningful topic names.</li><li>For production, enable topic deletion and configure retention policies.</li></ul><h3>📚 References</h3><ul><li><a href="https://kafka.apache.org/documentation/">Kafka Official Docs</a></li><li>Confluent Documentation</li><li><a href="https://github.com/apache/kafka">Kafka GitHub Repo</a></li></ul><p>This document is a complete reference to help you <strong>understand, set up, and work with Apache Kafka</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472401e50884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Kafka Made Simple: A Beginner’s Guide]]></title>
            <link>https://medium.com/@artichandane/apache-kafka-made-simple-a-beginners-guide-f05718969ada?source=rss-1dd3b42de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/f05718969ada</guid>
            <dc:creator><![CDATA[Arti Chandane]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 21:00:53 GMT</pubDate>
            <atom:updated>2025-02-06T21:00:53.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OT5OW6pDb1duDBhNlvHSAw.jpeg" /></figure><p><strong>Introduction</strong></p><p>In today’s fast-paced digital world, businesses need to process large amounts of data in real time. Enter <a href="https://kafka.apache.org/">Apache Kafka</a>, a powerful platform that helps you handle streams of data quickly and efficiently. Whether you’re a developer, data engineer, or just curious about real-time data streaming, this guide will break down Kafka’s concepts in simple language.</p><h3>What Is Apache Kafka?</h3><p>At its core, Apache Kafka is a distributed event streaming platform. Think of it as a messaging system that can handle huge volumes of data at high speed. Originally built at LinkedIn and later open-sourced, Kafka is now widely used for building real-time data pipelines and streaming apps.</p><p>Imagine Kafka as a central hub where data is collected, processed, and then distributed to different systems in your organization. It’s designed to be fast, scalable, and resilient.</p><h3>Key Concepts and Terminology</h3><p>Before diving into how Kafka works, let’s get familiar with some basic terms:</p><ul><li><strong>Producer</strong>: The application or service that sends data (or “messages”) to Kafka.</li><li><strong>Consumer</strong>: The application or service that reads data from Kafka.</li><li><strong>Topic</strong>: A category or feed name to which messages are published. Think of it as a “channel” for related messages.</li><li><strong>Partition</strong>: Topics are split into partitions. Each partition is an ordered, immutable sequence of messages that continually appends. Partitions help Kafka scale horizontally and support parallel processing.</li><li><strong>Broker</strong>: A Kafka server that stores data and serves clients. A Kafka cluster is made up of multiple brokers to ensure reliability and scalability.</li><li><strong>Cluster</strong>: A group of Kafka brokers working together. Clustering helps distribute the workload and provides fault tolerance.</li><li><strong>Offset</strong>: A unique identifier for each message within a partition. Consumers use offsets to keep track of which messages have been read.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAsbMlzSrOuktyn0flIyNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqNTrVt-16NgbcmKzUrTFA.png" /><figcaption>Concepts and Terminology</figcaption></figure><h3>How Does Kafka Work?</h3><ol><li><strong>Producing Messages</strong>:<br>A producer sends messages to a specific topic. Each message is stored in one of the topic’s partitions. Kafka ensures these messages are stored reliably even if one of the brokers goes down.</li><li><strong>Storing and Replicating Data</strong>:<br>Kafka writes messages to disk and can replicate them across multiple brokers. Replication ensures that your data isn’t lost if a broker fails.</li><li><strong>Consuming Messages</strong>:<br>Consumers subscribe to topics and read messages from the partitions. They keep track of the offsets, ensuring that every message is processed, even if the consumer restarts.</li><li><strong>Scaling and Parallelism</strong>:<br>By splitting topics into multiple partitions, Kafka allows multiple consumers to read from the same topic in parallel. This division is key to handling large volumes of data efficiently.</li></ol><h3>Common Kafka Commands</h3><p>Getting hands-on with Kafka involves using its command-line tools. Below are some essential commands to start your journey:</p><h3>1. Start ZooKeeper</h3><p><em>Note: Older versions of Kafka require ZooKeeper. Newer versions can run without it, but many tutorials still include ZooKeeper.</em></p><pre>bin/zookeeper-server-start.sh config/zookeeper.properties</pre><h3>2. Start the Kafka Broker</h3><pre>bin/kafka-server-start.sh config/server.properties</pre><h3>3. Create a Topic</h3><p>Create a topic named my-topic with 1 partition and a replication factor of 1:</p><pre>bin/kafka-topics.sh --create --topic my-topic --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1</pre><h3>4. List All Topics</h3><p>To see the topics available in your Kafka cluster:</p><pre>bin/kafka-topics.sh --list --bootstrap-server localhost:9092</pre><h3>5. Describe a Topic</h3><p>Get detailed information about a topic, such as its partitions and replication status:</p><pre>bin/kafka-topics.sh --describe --topic my-topic --bootstrap-server localhost:9092</pre><h3>6. Produce Messages</h3><p>Start a producer to send messages to my-topic. After running the command, type your messages and hit Enter:</p><pre>bin/kafka-console-producer.sh --broker-list localhost:9092 --topic my-topic</pre><h3>7. Consume Messages</h3><p>Start a consumer to read messages from my-topic from the beginning:</p><pre>bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning</pre><h3>Real-World Use Cases</h3><p>Apache Kafka is used in various scenarios, including:</p><ul><li><strong>Real-Time Analytics</strong>: Monitoring user activity or system logs to provide real-time insights.</li><li><strong>Data Pipelines</strong>: Integrating data between different systems, such as sending data from a website to a data warehouse.</li><li><strong>Event Sourcing</strong>: Storing the state changes of an application as a series of events.</li><li><strong>Microservices Communication</strong>: Decoupling services by using Kafka as the central messaging system, making systems more scalable and resilient.</li></ul><h3>Getting Started with Kafka</h3><p>If you’re interested in trying out Kafka, here are a few steps to get started:</p><ol><li><strong>Install Kafka</strong>:<br>Visit the <a href="https://kafka.apache.org/downloads">official Kafka download page</a> and follow the instructions for your operating system.</li><li><strong>Run a Local Kafka Cluster</strong>:<br>Start by running a single-node cluster on your machine. This usually involves starting a ZooKeeper instance (which Kafka uses for managing the cluster) and then starting a Kafka broker.</li><li><strong>Produce and Consume Messages</strong>:<br>Use Kafka’s command-line tools or one of its client libraries (available in Java, Python, etc.) to send and receive messages. Experiment with creating topics, producing messages, and setting up consumers to get a feel for how Kafka works.</li><li><strong>Explore Tutorials and Examples</strong>:<br>The <a href="https://kafka.apache.org/documentation/">Kafka documentation</a> offers a range of tutorials that can help you understand more advanced features like stream processing with Kafka Streams or integrating Kafka with other systems.</li></ol><h3>Why Use Apache Kafka?</h3><ul><li><strong>High Throughput</strong>: Kafka can handle millions of messages per second, making it ideal for high-volume data applications.</li><li><strong>Scalability</strong>: With its partitioning and clustering features, Kafka can scale horizontally by adding more brokers.</li><li><strong>Fault Tolerance</strong>: Data replication ensures that even if one broker fails, your messages are safe.</li><li><strong>Real-Time Processing</strong>: Kafka is designed for real-time analytics and monitoring, enabling immediate insights from data streams.</li></ul><h3>Conclusion</h3><p>Apache Kafka might sound complex at first, but when you break it down into its core components — producers, consumers, topics, partitions, and brokers — it becomes much easier to understand. Its ability to handle large-scale data streaming reliably and in real time has made it a favorite among businesses looking to build responsive and resilient data systems.</p><p>By combining the concepts explained above with the practical commands provided, you now have a foundation to experiment with Kafka. Whether you’re just starting out or looking to integrate real-time data processing into your projects, Apache Kafka is a tool worth exploring.</p><p><em>Feel free to leave your comments or share your experiences with Kafka below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f05718969ada" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Unlocking Node.js Scalability: 8 Facts You Might Not Know]]></title>
            <link>https://medium.com/@artichandane/unlocking-node-js-scalability-8-facts-you-might-not-know-2bde8a2fb001?source=rss-1dd3b42de10------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bde8a2fb001</guid>
            <dc:creator><![CDATA[Arti Chandane]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 17:45:31 GMT</pubDate>
            <atom:updated>2024-10-01T17:45:31.317Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_q3MAkcQtxPIS4WtWHY_A.jpeg" /></figure><p>If you’ve worked with Node.js, you’re probably familiar with its ability to handle real-time apps. But when it comes to large-scale systems, there are some overlooked features that truly set Node.js apart.</p><p>Let’s dive into a few:</p><ol><li><strong>Non-blocking I/O and Scalability</strong><br>The real power of Node.js lies in its event-driven, non-blocking architecture. This design allows Node.js to handle thousands of concurrent connections without breaking a sweat. It’s a game changer for scaling applications, especially when compared to traditional multi-threaded environments.</li><li><strong>Leveraging Multi-core Systems</strong><br>By default, Node.js is single-threaded, but it can easily scale across multiple CPU cores using the Cluster module. This allows applications to balance loads efficiently by creating child processes that share the same server port — perfect for handling more demanding, CPU-intensive tasks.</li><li><strong>Horizontal Scaling with Load Balancers</strong><br>One of the strengths of Node.js is how seamlessly it scales horizontally. You can easily spin up multiple instances of your app behind a load balancer and distribute the incoming traffic, allowing your application to scale out as traffic grows.</li><li><strong>Efficient Memory Management</strong><br>Node.js, powered by the V8 JavaScript engine, is incredibly efficient with memory. This makes it ideal for high-traffic applications, as it can maintain a small memory footprint even under heavy loads.</li><li><strong>Async Operations for Improved Throughput</strong><br>Asynchronous operations are at the core of Node.js, allowing it to handle multiple database requests, file reads, or network calls simultaneously without blocking the event loop. This dramatically reduces overhead and keeps your application fast, even as traffic spikes.</li><li><strong>Microservices Architecture</strong><br>Node.js is lightweight, making it a natural fit for microservices. By breaking down your application into smaller, manageable services, each can be scaled independently, which improves both performance and fault tolerance.</li><li><strong>Real-time Capabilities</strong><br>For real-time apps, like live chat or data streaming, Node.js’s WebSocket support is a huge advantage. It enables persistent two-way communication between the server and client, and when paired with its event-driven nature, this allows Node.js to efficiently manage large numbers of simultaneous connections.</li><li><strong>Third-party Tools that Enhance Scalability</strong><br>Tools like PM2 (for process management) and Redis (for caching) make scaling Node.js apps even easier. PM2 helps with clustering and keeping apps running smoothly, while Redis offloads the pressure on your database by caching frequently accessed data.</li></ol><p><strong>Key Takeaway</strong>:<br>Node.js is far more than just a go-to for real-time apps. Its ability to scale horizontally, handle asynchronous operations, and support microservices architecture makes it a powerful choice for building scalable systems. If you’re thinking about scaling your app, Node.js has the tools and flexibility to grow with you.</p><p>What has your experience been like scaling with Node.js? Would love to hear your thoughts!</p><p>#NodeJS #Scalability #Microservices #WebDevelopment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bde8a2fb001" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>