<?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 Sachin Kamath on Medium]]></title>
        <description><![CDATA[Stories by Sachin Kamath on Medium]]></description>
        <link>https://medium.com/@skamath?source=rss-9b2757d95092------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O2j7UgTNG8cwv0uq</url>
            <title>Stories by Sachin Kamath on Medium</title>
            <link>https://medium.com/@skamath?source=rss-9b2757d95092------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:12:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@skamath/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[Real-Time Financial Risk Management with Kafka: How Banks Are Moving Beyond Overnight Batch Reports]]></title>
            <link>https://medium.com/@skamath/real-time-financial-risk-management-with-kafka-how-banks-are-moving-beyond-overnight-batch-reports-7b5b1b2d75c9?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b5b1b2d75c9</guid>
            <category><![CDATA[financial-risk-management]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[realtime-data-streaming]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 00:00:49 GMT</pubDate>
            <atom:updated>2026-07-22T10:43:58.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*FonwGrWAxOHlODfc" /></figure><p>Financial institutions have always relied on accurate and timely risk assessment to make informed business decisions. Whether approving loans, managing trading portfolios, maintaining liquidity, or meeting regulatory obligations, understanding an institution’s current risk exposure is essential to maintaining financial stability.</p><p>What has changed is the pace at which that exposure evolves. Digital banking, instant payment networks, algorithmic trading, open banking, and always-on financial services have dramatically increased both the volume and velocity of transactions flowing through financial systems. A single market movement, large payment, loan approval, or securities trade can immediately alter an institution’s risk profile, with thousands of similar events occurring every second across the enterprise.</p><p>Traditional risk management architectures were not designed for this level of operational speed. Most were built around periodic data collection, scheduled processing, and end-of-day reporting, when transactions were measured in thousands rather than millions and business decisions could wait for the next reporting cycle. As financial services have become increasingly real time, the gap between how quickly risk changes and how quickly it is measured has continued to widen.</p><p>Closing this gap has become a strategic priority for financial institutions. Rather than relying solely on historical snapshots, organizations are adopting architectures that evaluate risk as transactions occur, enabling faster operational decisions, greater market responsiveness, and improved regulatory oversight.</p><h3>The Problem with Overnight VaR and Credit Risk Batch Reports</h3><p>For many financial institutions, risk calculations still follow a familiar pattern. Throughout the trading day, transactions from trading platforms, lending systems, payment networks, treasury operations, and core banking applications are collected into centralized repositories. Overnight batch jobs then calculate Value at Risk (VaR), credit exposure, liquidity positions, and other enterprise risk metrics, producing reports that guide business decisions the following day.</p><p>This approach works well for historical reporting, but it has become increasingly ineffective for operational risk management. By the time overnight calculations are complete, market conditions may have changed, additional trades may have been executed, new loans may have been approved, and thousands of payments may have been processed. The reported risk accurately reflects a previous point in time, not the institution’s current exposure.</p><p>The challenge becomes even greater during periods of market volatility. A sharp decline in asset prices can significantly alter portfolio exposure within minutes. A large corporate loan can immediately increase credit concentration. High-value settlements can reduce available liquidity well before treasury teams receive updated reports. When decisions are based on delayed information, institutions have less time to respond to emerging risks.</p><p>Some of the most common limitations of overnight risk reporting include:</p><ul><li><strong>Delayed market risk visibility</strong>, where portfolio exposure and VaR are updated only after scheduled processing cycles.</li><li><strong>Outdated credit exposure</strong>, as loan approvals, repayments, and customer activity are reflected hours after they occur.</li><li><strong>Limited intraday liquidity visibility</strong>, making it difficult to track changing cash positions throughout the business day.</li><li><strong>Slower response to market events</strong>, delaying mitigation actions during periods of high volatility.</li><li><strong>Reactive risk management</strong>, where organizations identify changing exposures after they have already materialized.</li></ul><p>Overnight reporting remains valuable for historical analysis, regulatory reporting, and executive reporting. However, it is no longer sufficient for operational decisions that must be made while markets are still moving. Financial institutions need architectures that measure and evaluate risk as business activity unfolds, not after the trading day has ended.</p><h3>How Streaming Enables Continuous Risk Calculation (Tick-by-Tick)</h3><p>Instead of processing transactions in large batches, event streaming processes each transaction as it enters the system. Every trade execution, payment settlement, loan approval, market price update, or treasury movement is captured as an individual event and made immediately available to downstream applications.</p><p>Apache Kafka provides the event streaming backbone for this architecture. Rather than waiting for scheduled ETL jobs or database synchronization, Kafka continuously transports events from trading platforms, payment gateways, core banking systems, market data feeds, and lending applications to multiple consumers simultaneously. Every application receives the same sequence of events as they occur, creating a consistent and up-to-date view of business activity across the organization.</p><p>This allows risk engines to evaluate only what has changed instead of recalculating an entire portfolio at the end of the day. A new trade can update portfolio exposure, a loan approval can revise credit utilization, and a high-value settlement can adjust liquidity positions immediately after the transaction is processed. Risk calculations become incremental, allowing institutions to maintain a live view of enterprise risk throughout the trading day.</p><p>The same event stream can also power multiple business applications simultaneously. While one application recalculates market risk, another can monitor credit exposure, a treasury application can track liquidity positions, and a compliance system can validate regulatory thresholds. This eliminates duplicate data pipelines while ensuring every team works from the same stream of operational data.</p><p>By processing transactions one event at a time, financial institutions reduce the delay between <strong>transaction</strong>, <strong>risk evaluation</strong>, and <strong>business action</strong>. Instead of waiting for overnight reports to understand exposure, risk becomes an operational capability that evolves alongside the business.</p><p><strong>Related Reading: </strong><a href="https://www.zeliot.in/blog/real-time-application-patterns-using-kafka">Real-Time Application Patterns Using Kafka</a></p><h3>Use Case: Real-Time Credit Risk Monitoring</h3><p>Credit risk is constantly influenced by customer activity. Loan approvals, repayments, credit card spending, account balances, collateral valuations, and repayment behavior all contribute to a customer’s risk profile. In traditional lending systems, these changes are often reflected only after scheduled processing cycles, delaying an institution’s ability to respond.</p><p>With an event-driven architecture, each customer interaction becomes an opportunity to reassess risk. As new transactions occur, credit risk models can immediately update exposure, utilization, repayment patterns, and other lending indicators without waiting for the next batch run.</p><p>For example, approving a new business loan instantly increases a customer’s outstanding exposure. A missed EMI payment can trigger an immediate review of repayment risk, while a significant salary credit or early loan repayment may improve the customer’s credit position. Instead of relying on historical snapshots, lending teams work with information that reflects the customer’s latest financial activity.</p><p>This approach supports faster and more informed lending decisions. Banks can dynamically adjust credit limits, prioritize high-risk accounts for manual review, automate collection workflows, or approve additional credit based on current customer behavior rather than data that may already be hours old.</p><p>Real-time visibility also strengthens fraud and financial crime detection. Unusual borrowing patterns, multiple loan applications across channels, or abnormal repayment activity can be identified earlier, allowing investigation before potential losses increase.</p><p><strong>Related Reading:</strong> <a href="https://www.zeliot.in/blog/real-time-data-streaming-to-detect-financial-fraud-using-condense">Real-Time Data Streaming to Detect Financial Fraud Using Condense</a></p><h3>Use Case: Real-Time Market Risk Monitoring</h3><p>Market risk can change within seconds. Fluctuations in equity prices, interest rates, foreign exchange markets, commodity prices, or bond yields directly affect trading portfolios and investment positions. Waiting until the end of the trading day to measure these changes limits an institution’s ability to understand its current exposure.</p><p>An event-driven architecture allows trading activity and market data to be evaluated together as they occur. Live price feeds, trade executions, position updates, and market movements are processed as a continuous flow of events, enabling risk models to refresh portfolio valuations and exposure throughout the trading day.</p><p>Consider a portfolio with significant exposure to banking stocks. A sudden sector-wide decline immediately changes the portfolio’s market value and risk profile. Instead of discovering the impact in the next VaR report, trading and risk teams can see the updated exposure as prices change, allowing them to evaluate hedging strategies, rebalance positions, or reduce risk before losses escalate.</p><p>This approach also supports automated risk controls. Institutions can generate alerts when Value at Risk (VaR) exceeds predefined thresholds, sector or asset-class concentration limits are breached, or individual trading positions move beyond acceptable risk tolerances. These controls help risk teams respond while market conditions are still evolving rather than after the opportunity to act has passed.</p><p>By making market risk visible throughout the trading day, financial institutions improve portfolio oversight, respond faster to volatility, and make trading decisions using current market conditions instead of historical reports.</p><p><strong>Related Reading:</strong> <a href="https://www.zeliot.in/blog/real-time-application-patterns-using-kafka">Real-Time Application Patterns Using Kafka</a></p><h3>Use Case: Real-Time Liquidity Monitoring</h3><p>Maintaining adequate liquidity is essential for every financial institution. Banks must ensure they have sufficient funds to settle payments, support customer withdrawals, meet lending obligations, and satisfy regulatory liquidity requirements. Achieving this requires an accurate view of cash positions throughout the business day, not just at scheduled reporting intervals.</p><p>An event-driven architecture gives treasury teams immediate visibility into changing cash positions. Payment settlements, customer deposits, securities transactions, loan disbursements, interbank transfers, and treasury activities update liquidity positions as they occur, providing a current view of available funds across the organization.</p><p>For example, a large corporate payment may temporarily reduce available liquidity, while incoming customer deposits or securities settlements can restore cash reserves later in the day. With timely visibility into these movements, treasury teams can rebalance funds, optimize short-term borrowing, or adjust investment positions before liquidity constraints begin affecting operations.</p><p>This operational awareness also strengthens financial resilience. Treasury teams can identify unexpected cash outflows earlier, anticipate funding requirements, and respond proactively to changing liquidity conditions instead of relying on historical reports that may no longer reflect the institution’s actual position.</p><p>As payment volumes increase and settlement cycles become faster, real-time liquidity monitoring helps financial institutions make better treasury decisions, improve cash utilization, and maintain confidence that sufficient funds are available when they are needed most.</p><h3>Regulatory Reporting with Streaming: Supporting MiFID II and Basel III</h3><p>Financial institutions operate under stringent regulatory requirements that demand accurate, timely, and auditable reporting. Frameworks such as <strong>MiFID II</strong> and <strong>Basel III</strong> require organizations to maintain comprehensive records of financial activity, monitor risk exposure, and demonstrate effective governance over trading, capital adequacy, and liquidity management.</p><p>Meeting these obligations depends on the quality and timeliness of the underlying data. In batch-oriented environments, operational systems and reporting platforms are often updated at different intervals, increasing the effort required to reconcile transactions, investigate discrepancies, and produce accurate regulatory reports.</p><p>An event-driven architecture improves this process by making the same operational data available to both business applications and downstream reporting systems. Trading activity, payment transactions, position updates, and treasury operations can be captured in sequence and shared across multiple consumers, reducing inconsistencies between operational and reporting environments.</p><p>This approach also strengthens auditability. Because events are recorded in the order they occur, organizations have a clear history of business activity that supports reconciliation, regulatory investigations, and forensic analysis. Compliance teams can trace how data moved through systems and verify that reports were generated from the same operational records used by risk and treasury applications.</p><p>While regulatory reports are still submitted according to prescribed schedules, the data supporting those reports can remain current throughout the business day. This helps financial institutions improve reporting accuracy, reduce operational overhead, and respond more effectively to evolving regulatory expectations.</p><p><strong>Related Reading:</strong> <a href="https://www.zeliot.in/blog/kafka-security-for-the-enterprise-building-trust-in-motion">Kafka Security for the Enterprise: Building Trust in Motion</a></p><h3>Why BYOC and Data Sovereignty Matter for Regulated Financial Institutions</h3><p>Adopting event-driven architectures is only one part of modernizing financial systems. Financial institutions must also ensure that sensitive customer data, payment information, and trading records remain protected and are managed in accordance with internal governance policies and regulatory requirements. Where data is processed is often just as important as how it is processed.</p><p>This is why many banks are adopting <strong>Bring Your Own Cloud (BYOC)</strong> deployment models. Instead of running critical streaming workloads in a third-party managed environment, organizations deploy the platform within their own AWS, Microsoft Azure, or Google Cloud accounts. They retain ownership of their infrastructure, networking, security controls, and data while benefiting from a managed operational experience.</p><p>For regulated industries, this approach offers several important advantages:</p><ul><li><strong>Data sovereignty:</strong> Customer and financial data remains within the organization’s cloud environment, helping satisfy regional data residency and regulatory requirements.</li><li><strong>Security and governance:</strong> Existing identity management, encryption standards, network policies, and security controls can be applied consistently across the streaming platform.</li><li><strong>Regulatory alignment:</strong> Streaming workloads can be integrated into established compliance, audit, and governance frameworks without introducing additional operational silos.</li><li><strong>Operational control:</strong> Infrastructure policies, cloud resources, and access management remain under the institution’s control while reducing the effort required to operate the platform.</li></ul><p>For financial institutions, choosing a streaming platform is no longer only about performance or scalability. It is equally about deploying modern data infrastructure without compromising security, governance, or regulatory obligations. BYOC enables organizations to modernize confidently while keeping ownership of the environment where their most critical data resides.</p><p><strong>Related Reading:</strong> <a href="https://www.zeliot.in/blog/what-is-bring-your-own-cloud-byoc-and-why-is-it-important">What Is Bring Your Own Cloud (BYOC) and Why Is It Important?</a></p><h3>Accelerating Real-Time Financial Risk Management with Condense</h3><p>Financial institutions are redefining how risk is managed. Instead of relying solely on overnight reports to understand changing exposures, they are adopting event-driven architectures that bring risk evaluation closer to business operations. This shift enables faster decision-making, greater operational resilience, and improved visibility across trading, lending, treasury, and compliance functions.</p><p>Apache Kafka provides the foundation for this transformation, but building production-ready event-driven systems requires more than a streaming platform. Organizations must develop and operate stream processing applications, integrate diverse financial systems, manage deployments across environments, and maintain observability, governance, and operational reliability at scale.</p><p>Condense brings these capabilities together in a unified platform for building, deploying, and operating event-driven applications on Apache Kafka. Rather than assembling multiple tools across the development lifecycle, engineering teams can focus on delivering applications that solve business problems while Condense simplifies the underlying operational complexity.</p><p>As financial markets continue to evolve, competitive advantage will increasingly depend on how quickly institutions can transform operational data into informed decisions. Organizations that invest in event-driven architectures today will be better positioned to manage risk proactively, respond confidently to changing market conditions, and build more resilient financial systems for the future.</p><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/real-time-financial-risk-management-with-kafka"><em>https://www.zeliot.in</em></a><em> on July 20, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b5b1b2d75c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BYOC Kafka for US Enterprise: Data Residency and Compliance]]></title>
            <link>https://medium.com/@skamath/byoc-kafka-for-us-enterprise-data-residency-and-compliance-2aca5d2b9bb6?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aca5d2b9bb6</guid>
            <category><![CDATA[byoc]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[data-compliance]]></category>
            <category><![CDATA[usa]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 00:00:15 GMT</pubDate>
            <atom:updated>2026-07-22T10:39:03.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*aygEOQ_jeqZwzZUa" /></figure><p>Every second, enterprises stream millions of business events through Apache Kafka, from customer transactions and IoT telemetry to payment processing, supply chain events, and AI-driven applications. As Kafka becomes part of mission-critical infrastructure, enterprise teams are evaluating not only how Kafka performs, but also where it runs, who owns the underlying infrastructure, and how it integrates with existing security and governance controls.</p><p>However, as Kafka adoption grows across regulated industries such as healthcare, financial services, manufacturing, and the public sector, the conversation has shifted beyond throughput and performance. Enterprise architects and security teams are now asking a different set of questions:</p><ul><li>Where does Kafka actually run?</li><li>Who owns the infrastructure processing sensitive data?</li><li>Can Kafka integrate with existing security and governance controls?</li><li>How can organizations simplify operations without compromising compliance or data ownership?</li></ul><p>These questions have become increasingly important as organizations process personally identifiable information (PII), protected health information (PHI), financial transactions, and operational data through real-time streaming platforms. While cloud-native managed services simplify operations, many enterprises also need to ensure that streaming workloads align with internal security policies, data residency strategies, and regulatory obligations.</p><p>This has led to growing adoption of <strong>Bring Your Own Cloud (BYOC)</strong> deployment models. Instead of deploying Kafka in a provider-owned environment, BYOC allows organizations to run the platform within their own cloud account or on-premises infrastructure while continuing to use their existing networking, identity, encryption, monitoring, and governance frameworks. The platform provider manages Kafka and its lifecycle, while the organization retains ownership of the infrastructure and data.</p><p>In this guide, we’ll explain why deployment architecture matters for enterprise Kafka, how <strong>BYOC Kafka</strong> supports data residency and compliance objectives, what questions to ask before selecting a Kafka platform, and how <strong>Condense</strong> delivers a fully managed BYOC Kafka platform that runs within customer-controlled infrastructure.</p><h3>Why Do US Enterprise Teams Care Where Kafka Data Lives?</h3><p>As organizations adopt real-time data streaming, Apache Kafka has become the backbone for processing business-critical events, including customer transactions, healthcare records, financial data, IoT telemetry, and operational logs. These workloads often contain sensitive or regulated information, making the underlying infrastructure as important as the streaming platform itself.</p><p>For enterprise teams, evaluating Kafka is no longer limited to throughput, scalability, or latency. Security architects, compliance officers, and platform engineers must also consider <strong>where data is processed, who controls the infrastructure, and how security policies are enforced</strong> throughout the data lifecycle.</p><p>Many organizations have already established enterprise-wide governance frameworks that include private networking, centralized identity management, encryption standards, security monitoring, and operational auditing. Introducing a streaming platform that operates outside these established controls can increase operational complexity, requiring additional security reviews, risk assessments, and compliance validation.</p><p>As a result, infrastructure ownership has become a key consideration when selecting a Kafka platform. Organizations increasingly prefer deployment models that allow Kafka to operate within their existing cloud or on-premises environment, enabling security and governance policies to extend consistently across both traditional applications and real-time data pipelines.</p><p>Although regulations such as <strong>CCPA</strong>, <strong>HIPAA</strong>, <strong>SOX</strong>, and <strong>FedRAMP</strong> do not prescribe a specific Kafka deployment model, they require organizations to implement appropriate controls for protecting sensitive data, managing access, maintaining audit trails, and securing production environments. These requirements have made deployment architecture an important part of enterprise Kafka evaluations.</p><p>The following sections explore how <strong>Bring Your Own Cloud (BYOC)</strong> addresses these challenges by allowing organizations to maintain infrastructure ownership while reducing the operational complexity of managing Apache Kafka.</p><h3>Why Infrastructure Ownership Matters for Enterprise Kafka</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/721e3fee50cb50bbc447debf61b750a6/href">https://medium.com/media/721e3fee50cb50bbc447debf61b750a6/href</a></iframe><p><strong>Enterprise Insight:</strong> For most regulated organizations, the decision isn’t simply <em>where Kafka runs</em>. It’s whether the streaming platform can integrate with the organization’s existing security, governance, and operational framework without introducing additional infrastructure boundaries.</p><h3>What Does BYOC Actually Mean for Kafka Deployment?</h3><p><strong>BYOC (Bring Your Own Cloud)</strong> is a deployment model where a software platform runs inside the customer’s cloud account or on-premises infrastructure instead of the provider’s cloud environment. For Apache Kafka, this means the entire streaming platform is deployed within infrastructure owned and governed by the customer, while the platform provider manages provisioning, upgrades, monitoring, and ongoing operations.</p><p>Unlike traditional Software-as-a-Service (SaaS) deployments, a true BYOC model gives organizations complete control over the infrastructure supporting Kafka. Networking, identity, encryption, storage, and security policies remain under the customer’s ownership, allowing Kafka to integrate seamlessly with existing enterprise governance frameworks.</p><h4>Running Kafka on AWS Isn’t the Same as BYOC</h4><p>One of the most common misconceptions is that deploying Kafka on a public cloud automatically qualifies as BYOC. In reality, <strong>where Kafka runs within the cloud matters just as much as the cloud provider itself.</strong></p><p>For example, two Kafka platforms may both advertise support for Amazon Web Services (AWS):</p><ul><li>One deploys Kafka inside the <strong>vendor’s AWS account</strong>, with customers connecting over the network to a managed service.</li><li>The other deploys Kafka inside <strong>the customer’s AWS account and Virtual Private Cloud (VPC)</strong>, allowing the organization to apply its own networking, IAM policies, encryption standards, and security controls.</li></ul><p>Although both run on AWS, they represent fundamentally different deployment models from a governance and operational perspective.</p><h4>True BYOC Means Your Infrastructure, Your Policies</h4><p>A true BYOC Kafka deployment extends existing enterprise security controls to real-time streaming workloads.</p><p>Instead of introducing another infrastructure boundary, Kafka becomes part of the organization’s existing cloud environment, allowing security and platform teams to continue using familiar operational processes and governance policies.</p><p>This includes:</p><ul><li>Customer-owned cloud accounts or on-premises infrastructure</li><li>Private VPC or virtual network deployment</li><li>Existing IAM and Role-Based Access Control (RBAC)</li><li>Customer-managed encryption keys</li><li>Enterprise monitoring and logging platforms</li><li>Existing firewall, network segmentation, and security policies</li></ul><p>Rather than adapting enterprise security to fit a managed service, the streaming platform adapts to the organization’s existing infrastructure.</p><h4>Comparing Common Kafka Deployment Models</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ef7a8dbc8995ab1270c674ee342ffbe/href">https://medium.com/media/1ef7a8dbc8995ab1270c674ee342ffbe/href</a></iframe><p><strong>Key Takeaway:</strong> BYOC is not defined by the cloud provider. It is defined by <strong>where the platform is deployed and who owns the underlying infrastructure</strong>. Running Kafka on AWS, Azure, or Google Cloud does not automatically make it BYOC. A true BYOC deployment places Kafka inside the customer’s cloud account or on-premises environment, allowing existing networking, identity, encryption, and governance policies to remain in effect.</p><h3>How Do US Compliance Frameworks Influence Kafka Deployment Decisions?</h3><p>Enterprise compliance isn’t determined by where Kafka runs alone. Instead, regulations require organizations to implement controls that protect sensitive data, restrict unauthorized access, maintain audit trails, and secure production environments. The deployment model directly affects how easily these controls can be implemented and managed.</p><p>A <strong>BYOC Kafka</strong> deployment allows organizations to keep Kafka within their existing cloud or on-premises infrastructure, enabling security teams to apply established identity, networking, encryption, and monitoring policies to streaming workloads. This can simplify governance and reduce the complexity of integrating Kafka into existing compliance programs.</p><p>The following sections explain how four major US compliance frameworks influence enterprise Kafka deployments.</p><h4>How Does CCPA Influence Kafka Deployments?</h4><p>The <strong>California Consumer Privacy Act (CCPA)</strong> gives California residents greater control over how businesses collect, use, disclose, and delete their personal information. Organizations processing customer events through Kafka must understand where personal data is stored, who can access it, and how it is protected throughout its lifecycle.</p><p>While <strong>CCPA does not require data to remain within California or mandate a BYOC deployment</strong>, organizations are expected to implement reasonable security measures and maintain governance over personal information.</p><p>Running Kafka within customer-managed infrastructure can help organizations:</p><ul><li>Maintain visibility into where customer data is processed</li><li>Apply existing identity and access controls</li><li>Integrate Kafka with enterprise audit and monitoring systems</li><li>Reduce additional infrastructure boundaries for regulated workloads</li></ul><h4>Why Is BYOC Valuable for Healthcare Organizations Subject to HIPAA?</h4><p>Healthcare organizations frequently use Kafka to process <strong>Protected Health Information (PHI)</strong> from electronic health records (EHRs), medical devices, laboratory systems, and patient applications.</p><p>The <strong>Health Insurance Portability and Accountability Act (HIPAA)</strong> requires covered entities and business associates to implement administrative, physical, and technical safeguards that protect electronic Protected Health Information (ePHI). These safeguards include access controls, audit controls, integrity protections, and transmission security.</p><p>A BYOC deployment supports these objectives by allowing healthcare organizations to:</p><ul><li>Keep Kafka within private healthcare infrastructure</li><li>Integrate with existing identity providers and authentication systems</li><li>Apply customer-managed encryption policies</li><li>Centralize security monitoring and audit logging</li><li>Extend existing security controls to real-time data pipelines</li></ul><p><strong>Note:</strong> A BYOC deployment does not make a Kafka platform HIPAA compliant. Compliance depends on the organization’s overall security architecture, operational processes, and governance.</p><h4>How Does SOX Influence Enterprise Kafka Platforms?</h4><p>Financial institutions increasingly use Kafka to stream payment events, trading data, fraud detection events, customer transactions, and operational metrics.</p><p>The <strong>Sarbanes-Oxley Act (SOX)</strong> focuses on the integrity of financial reporting and the internal controls that support financial systems. Organizations must demonstrate appropriate governance, change management, auditability, and access control across systems that influence financial reporting.</p><p>Deploying Kafka within customer-managed infrastructure allows organizations to:</p><ul><li>Integrate Kafka with existing change management processes</li><li>Apply centralized identity and access controls</li><li>Maintain infrastructure-level audit trails</li><li>Support enterprise governance for financial workloads</li></ul><h4>Why Does FedRAMP Matter for Government Kafka Deployments?</h4><p>US federal agencies and many government contractors operate within environments that align with the <strong>Federal Risk and Authorization Management Program (FedRAMP)</strong>, which standardizes security assessment and authorization for cloud services used by federal agencies.</p><p>Although <strong>FedRAMP does not require a BYOC deployment</strong>, organizations often prefer customer-controlled infrastructure because it allows Kafka to operate within approved cloud environments using established security controls, continuous monitoring, and network segmentation.</p><p>For government workloads, this can simplify the integration of Kafka into existing security architectures while maintaining operational consistency across the broader cloud environment.</p><h4>How BYOC Supports Common Enterprise Compliance Objectives</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2a4eb6215c1e8f934f4a23bfceed9d36/href">https://medium.com/media/2a4eb6215c1e8f934f4a23bfceed9d36/href</a></iframe><p><strong>Key Takeaway:</strong> Compliance frameworks don’t dictate a specific Kafka deployment model, but they do require organizations to implement strong security, governance, and operational controls. A BYOC deployment enables Kafka to operate within the same trusted infrastructure, identity, and monitoring framework that organizations already use for other mission-critical workloads.</p><h3>What Questions Should You Ask a Kafka Vendor Before Signing?</h3><p>Choosing a Kafka platform isn’t just about comparing features or pricing. For enterprise teams, the deployment architecture determines how well the platform integrates with existing security, governance, and operational processes. Before selecting a Kafka vendor, security architects and platform teams should understand exactly <strong>where the platform runs, who controls the infrastructure, and how customer data is protected</strong>.</p><p>The following questions can help distinguish a true BYOC deployment from a traditional managed service.</p><h4>1. Where Does the Kafka Data Plane Run?</h4><p>The <strong>data plane</strong> includes Kafka brokers, topics, event streams, storage, and supporting runtime services that process production workloads.</p><p>Ask the vendor:</p><ul><li>Are Kafka brokers deployed inside our cloud account or yours?</li><li>Are topics and event data stored in our infrastructure?</li><li>Can Kafka be deployed inside our existing VPC or private network?</li></ul><p>For organizations with strict governance requirements, the answer should be <strong>your infrastructure</strong>, not a shared vendor environment.</p><h4>2. Does the Platform Require Cross-Account Access?</h4><p>Many managed services require privileged access into customer cloud environments for deployment, monitoring, or operational support.</p><p>Ask the vendor:</p><ul><li>Does the platform require persistent cross-account IAM roles?</li><li>What level of administrative access does the vendor retain after deployment?</li><li>Can operational management be performed without exposing customer workloads or streaming data?</li></ul><p>Understanding these access models is essential for organizations operating under strict internal security policies.</p><h4>3. Who Controls Encryption Keys?</h4><p>Encryption protects data, but <strong>key ownership determines who ultimately controls access</strong>.</p><p>Ask the vendor:</p><ul><li>Can we use customer-managed encryption keys?</li><li>Are keys managed using our existing cloud Key Management Service (KMS)?</li><li>Who controls key rotation and lifecycle policies?</li></ul><p>Customer-managed keys allow organizations to align Kafka with existing enterprise encryption standards.</p><h4>4. How Are Audit Logs and Operational Events Managed?</h4><p>Security teams rely on centralized logging to investigate incidents, demonstrate compliance, and monitor production systems.</p><p>Ask the vendor:</p><ul><li>Can Kafka audit logs integrate with our SIEM platform?</li><li>Are administrative actions logged?</li><li>Can operational events be exported to our existing monitoring and observability tools?</li></ul><p>Auditability should extend beyond Kafka brokers to include platform operations and administrative activities.</p><h4>5. Does the Platform Support Enterprise Deployment Models?</h4><p>Modern enterprises rarely operate in a single environment. Cloud migrations, hybrid architectures, and regulatory requirements often require deployment flexibility.</p><p>Ask the vendor:</p><ul><li>Can the platform run in our preferred cloud environment?</li><li>Does it support on-premises deployments?</li><li>Does it run on standard Kubernetes?</li><li>Is it certified for enterprise Kubernetes platforms such as Red Hat OpenShift?</li></ul><p>Deployment flexibility helps organizations standardize operations while meeting business and regulatory requirements.</p><h4>Kafka Vendor Evaluation Checklist</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/27b08af6b599710b7978c300a17ae822/href">https://medium.com/media/27b08af6b599710b7978c300a17ae822/href</a></iframe><p><strong>Enterprise Recommendation:</strong> Ask vendors to demonstrate their deployment architecture rather than relying solely on feature lists. Understanding where the data plane runs, how administrative access is managed, and who controls encryption and networking provides a much clearer picture of how the platform will fit within your organization’s security and governance framework.</p><h3>How Does Condense Implement BYOC for US Enterprise?</h3><p>Choosing a BYOC Kafka platform isn’t just about deployment location. The underlying architecture determines whether customer data, networking, identity, and operational controls remain under the organization’s ownership.</p><p>Condense delivers a true BYOC Kafka architecture by deploying the complete streaming platform inside customer-managed infrastructure while automating provisioning, upgrades, monitoring, and lifecycle management. Instead of moving production workloads into a vendor-managed environment, organizations retain control of their infrastructure, networking, security policies, and streaming data while benefiting from a fully managed platform.</p><h4>Deploy Entirely Within Your Infrastructure</h4><p>Condense supports deployment across major cloud providers and private infrastructure, allowing organizations to standardize Kafka operations regardless of where their workloads run.</p><p>Supported deployment environments include:</p><ul><li>Amazon Web Services (AWS)</li><li>Microsoft Azure</li><li>Google Cloud Platform (GCP)</li><li>Oracle Cloud Infrastructure (OCI)</li><li>On-premises infrastructure</li></ul><p>The platform runs on <strong>standard Kubernetes</strong> and is <strong>certified for Red Hat OpenShift</strong>, enabling enterprises to align Kafka deployments with their existing container orchestration strategy.</p><h4>Customer Infrastructure Remains Under Your Control</h4><p>Unlike vendor-managed Kafka services, Condense deploys the complete streaming platform inside customer-managed infrastructure. Apache Kafka, stream processing, connectors, metadata services, observability components, and supporting platform services all run within the customer’s cloud account or on-premises environment.</p><p>This includes:</p><ul><li>Apache Kafka brokers</li><li>Stream processing services</li><li>Kafka Connect and connectors</li><li>PostgreSQL metadata services</li><li>Observability components</li><li>Internal platform services</li></ul><p>Organizations continue to control:</p><ul><li>Virtual Private Cloud (VPC) or private networking</li><li>Identity and Access Management (IAM)</li><li>Firewall and network security policies</li><li>Encryption policies</li><li>Monitoring and logging</li></ul><p>This architecture enables Kafka to operate as part of the organization’s existing cloud governance model rather than as a separate managed environment.</p><h4>Enterprise Security Without Compromising Data Ownership</h4><p>Condense is designed for organizations that require strong security and operational governance.</p><p>Key capabilities include:</p><ul><li>Deployment within customer-controlled infrastructure</li><li>Customer-managed encryption keys</li><li>Integration with existing IAM and RBAC policies</li><li>Private networking</li><li>Centralized observability and monitoring</li><li>Support for enterprise security workflows</li></ul><p>In addition, Condense is developed in alignment with internationally recognized security standards, including:</p><ul><li>SOC 2 Type II</li><li>ISO 27001</li></ul><p>These certifications support enterprise security and operational governance programs while helping organizations evaluate the platform as part of their broader risk management processes.</p><h4>Unified Platform Beyond Kafka</h4><p>Running Apache Kafka in production requires more than brokers. Enterprise streaming platforms also need stream processing, connectors, observability, metadata management, and operational tooling.</p><p>Condense provides these capabilities as a unified platform, reducing the need to assemble and manage multiple independent components.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e0b69649335e06520c1a1a13d81664a/href">https://medium.com/media/1e0b69649335e06520c1a1a13d81664a/href</a></iframe><h4>Why Enterprises Choose Condense for BYOC Kafka</h4><p>Enterprise organizations increasingly want the flexibility of customer-owned infrastructure without the operational burden of managing Kafka themselves.</p><p>Condense combines both.</p><p>Organizations retain ownership of their infrastructure, networking, identity, encryption, and streaming data while Condense automates:</p><ul><li>Platform provisioning</li><li>Kafka upgrades</li><li>Scaling</li><li>Monitoring</li><li>Stream processing</li><li>Connector management</li><li>Platform lifecycle operations</li></ul><p>The result is a <strong>fully managed BYOC Kafka platform</strong> that enables enterprises to modernize real-time data streaming while maintaining control over security, compliance, and governance.</p><h4>Architecture at a Glance</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/624474e1254b6b417d88a3236adefa0b/href">https://medium.com/media/624474e1254b6b417d88a3236adefa0b/href</a></iframe><h3>Conclusion</h3><p>As enterprises continue to build real-time applications, the conversation around Apache Kafka has expanded beyond performance and scalability. Security, governance, data residency, and operational control have become equally important factors when selecting a streaming platform, particularly for organizations operating in regulated industries.</p><p>A <strong>BYOC Kafka</strong> deployment enables organizations to keep Kafka within their own infrastructure while extending existing security, networking, identity, and governance policies to real-time data pipelines. Rather than introducing another operational boundary, BYOC allows Kafka to become part of the organization’s established cloud or on-premises operating model, simplifying governance without sacrificing operational efficiency.</p><p>However, successfully adopting BYOC requires more than simply deploying Kafka on a public cloud. Enterprise teams should evaluate where the data plane runs, how infrastructure is managed, who controls encryption keys, and whether the platform integrates with existing security and compliance processes.</p><p><strong>Condense</strong> brings these capabilities together in a single platform. Built on Apache Kafka, Condense delivers a fully managed BYOC deployment model that runs within customer-controlled infrastructure across AWS, Microsoft Azure, Google Cloud Platform (GCP), Oracle Cloud Infrastructure (OCI), and on-premises environments. Running on standard Kubernetes and certified for Red Hat OpenShift, Condense enables organizations to modernize real-time data streaming while maintaining ownership of their infrastructure, security policies, and operational governance.</p><p>Whether you’re modernizing legacy streaming infrastructure, migrating from self-managed Kafka, or evaluating enterprise streaming platforms for regulated workloads, Condense provides the operational simplicity of a managed service without compromising infrastructure ownership, data control, or enterprise security.</p><blockquote><strong><em>Ready to modernize your real-time data platform?</em></strong></blockquote><blockquote><em>Discover how Condense helps enterprises deploy a fully managed BYOC Kafka platform inside their own infrastructure while simplifying operations, strengthening governance, and accelerating innovation.</em></blockquote><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/byoc-kafka-us-enterprise-data-residency-compliance"><em>https://www.zeliot.in</em></a><em> on July 17, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aca5d2b9bb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Partition Strategy: The Complete Guide to Designing for Scale from Day One]]></title>
            <link>https://medium.com/@skamath/kafka-partition-strategy-the-complete-guide-to-designing-for-scale-from-day-one-e480e8612711?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/e480e8612711</guid>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[stream-processing]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 00:00:59 GMT</pubDate>
            <atom:updated>2026-07-22T10:23:29.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*-DDhR97vuyfsvXN4" /></figure><p>Apache Kafka is designed to scale horizontally, but that scalability depends on one fundamental architectural decision: the partition strategy. Every topic in Kafka is divided into partitions, which determine how data is distributed across brokers, how many consumers can process events in parallel, and whether related events maintain their ordering. A well-designed partition strategy enables applications to scale predictably as data volumes grow, while a poor strategy can create bottlenecks that become increasingly difficult to resolve in production.</p><p>Partition strategy extends beyond simply deciding how many partitions a topic should have. It involves calculating the right partition count based on throughput requirements, selecting partition keys that balance workloads without compromising ordering guarantees, avoiding hotspots caused by uneven data distribution, and planning for future growth. Since partitioning decisions influence producers, consumers, stream processing applications, and downstream systems, modifying them after deployment often requires careful migration planning.</p><p>While Apache Kafka provides the flexibility to configure and scale partitions, managing them across production environments introduces additional operational complexity. <strong>Condense</strong> simplifies this process through its Kafka Management capabilities, allowing engineering teams to configure partition counts during topic creation, increase partitions as workloads grow, inspect partition-level data, monitor consumer lag and partition assignments, and manage consumer rebalancing from a unified interface. This enables teams to implement and operate scalable partition strategies more efficiently while continuing to leverage the flexibility of Apache Kafka.</p><p>In this guide, we’ll explore why Kafka partition strategy is one of the most important design decisions in event streaming, how to calculate the right partition count, design effective partition keys, prevent hotspots, and safely scale partitions as application workloads evolve.</p><h3>Why Is Kafka Partition Strategy the Most Consequential Design Decision?</h3><p>Every Kafka topic is divided into one or more partitions, making partitions the fundamental unit of scalability, parallel processing, and fault tolerance. As records are written to a topic, Kafka distributes them across these partitions, allowing producers and consumers to process data concurrently. Because of this, the partition strategy directly influences application throughput, consumer parallelism, message ordering, broker utilization, and the overall efficiency of the Kafka cluster.</p><p>Unlike configuration settings such as retention policies, compression, or replication factors, partitioning decisions become deeply integrated into application architecture. Producers determine how records are distributed using partition keys, consumers process records based on partition assignments, and stateful stream processing applications rely on consistent partitioning to maintain local state and perform joins or aggregations. Changing the partition strategy after applications are deployed often requires creating new topics, migrating producers and consumers, and validating downstream processing, making it one of the most expensive architectural changes in a Kafka deployment.</p><p>A well-designed partition strategy delivers several benefits:</p><ul><li>Maximizes producer and consumer throughput</li><li>Enables horizontal scaling through partition-level parallelism</li><li>Preserves message ordering for related events</li><li>Balances workload evenly across brokers</li><li>Reduces the risk of hotspots and consumer bottlenecks</li><li>Simplifies long-term capacity planning</li></ul><p>Conversely, a poorly designed strategy can create challenges that become more pronounced as workloads grow. Topics with too few partitions restrict consumer parallelism, ineffective partition keys create uneven workload distribution, and insufficient planning for future growth can force disruptive repartitioning efforts in production.</p><p>Although partition strategy is an architectural decision, implementing and managing that strategy at scale requires operational visibility. <strong>Condense</strong> simplifies Kafka partition management through its Kafka Management capabilities, enabling engineering teams to configure partitions during topic creation, increase partition counts as workloads grow, monitor partition health and consumer lag, inspect partition-level messages, and manage consumer group rebalancing from a unified interface. This allows teams to focus on designing the right partition strategy while simplifying its implementation and ongoing operation.</p><h4>Key Takeaways</h4><pre>| **Kafka Partition Strategy Influences** | **Why It Matters** |<br>|-----------------------------------------|--------------------|<br>| **Consumer Parallelism** | Determines the maximum number of active consumers in a consumer group. |<br>| **Throughput** | Controls how much data producers and consumers can process concurrently. |<br>| **Message Ordering** | Preserves the sequence of related events within a partition. |<br>| **Broker Utilization** | Distributes storage and processing workloads across the cluster. |<br>| **Scalability** | Enables topics to grow with increasing data volumes. |<br>| **Operational Complexity** | Poor partitioning decisions are difficult and costly to change after deployment. |</pre><h3>How Does Kafka Partition Count Determine Consumer Parallelism?</h3><p>One of Kafka’s biggest strengths is its ability to process large volumes of data in parallel. However, the level of parallelism that a Kafka application can achieve is determined by a single factor: <strong>the number of partitions in a topic</strong>.</p><p>Each partition acts as an independent, ordered log that can be processed by only one consumer within a consumer group at any given time. This guarantees message ordering within the partition while allowing multiple partitions to be processed simultaneously by different consumers. As a result, the number of partitions defines the maximum number of consumers that can actively process records in parallel.</p><h4>Consumer Parallelism in Action</h4><p>Consider a Kafka topic with four partitions.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b8ba5927043366009aa6ca5eac239d9b/href">https://medium.com/media/b8ba5927043366009aa6ca5eac239d9b/href</a></iframe><p>With four partitions:</p><ul><li>Two consumers process two partitions, leaving two partitions assigned across the available consumers.</li><li>Four consumers can each process one partition simultaneously.</li><li>Adding more than four consumers does not increase throughput because there are no additional partitions to assign.</li></ul><p>This limitation is commonly referred to as the <strong>consumer parallelism ceiling</strong>. Regardless of how many application instances are deployed, a consumer group cannot process records in parallel beyond the number of partitions available in the topic.</p><h4>Why Consumer Parallelism Matters</h4><p>Imagine a connected mobility platform ingesting telemetry from hundreds of thousands of vehicles. As more vehicles come online, the volume of incoming events increases significantly. If the telemetry topic has only four partitions, only four consumers can actively process those events at any given time. Deploying additional consumer instances does not improve throughput because the partition count limits parallel processing.</p><p>By increasing the partition count, Kafka can distribute the workload across more consumers, allowing the application to scale horizontally as data volumes grow.</p><h4>More Partitions Don’t Always Mean Better Performance</h4><p>Although increasing the number of partitions enables greater consumer parallelism, creating excessive partitions introduces additional operational overhead. Every partition consumes broker resources, increases metadata management, extends consumer group rebalancing, and adds complexity to cluster operations.</p><p>The goal is to provision enough partitions to support current and future workloads without creating unnecessary operational overhead.</p><h4>How Condense Simplifies Partition Scaling</h4><p>As applications evolve, maintaining the right balance between partition count and consumer parallelism becomes an ongoing operational task. <strong>Condense</strong> simplifies this through Kafka Management, allowing engineering teams to configure partition counts during topic creation and increase partitions as workloads grow. Combined with partition-level observability, consumer lag monitoring, and consumer group health tracking, teams can validate whether additional partitions are improving throughput and parallelism without manually correlating broker-level metrics.</p><p><strong>Best Practice:</strong> Size Kafka topics based on the maximum consumer parallelism your application is expected to require over time, not just the number of consumers deployed today. As workloads grow, periodically review partition utilization and consumer lag to determine whether increasing the partition count is necessary.</p><h3>How Do You Calculate the Right Kafka Partition Count?</h3><p>Choosing the right Kafka partition count is one of the most important capacity planning decisions when designing an event streaming platform. Too few partitions can limit throughput and consumer parallelism, while too many increase broker overhead, metadata management, and operational complexity. Instead of relying on fixed recommendations, partition count should be determined using expected throughput, consumer processing capacity, and future growth projections.</p><p>A commonly used approach is to calculate the partition count based on both producer and consumer throughput requirements and choose the larger value.</p><h4>Kafka Partition Count Formula</h4><pre>Partition Count = Max ( <br>    Target Producer Throughput ÷ Producer Throughput per Partition, <br>    Target Consumer Throughput ÷ Consumer Throughput per Partition <br>) </pre><p>Where:</p><ul><li><strong>Target Producer Throughput</strong> is the expected rate at which data is produced.</li><li><strong>Producer Throughput per Partition</strong> is the maximum throughput a single partition can sustain.</li><li><strong>Target Consumer Throughput</strong> is the rate at which data must be processed.</li><li><strong>Consumer Throughput per Partition</strong> is the maximum processing capacity of a single partition.</li></ul><h4>Example Calculation</h4><p>Consider a real-time streaming application with the following requirements:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/374efafde21a29f84648c76a4fcf287f/href">https://medium.com/media/374efafde21a29f84648c76a4fcf287f/href</a></iframe><p><strong>Producer calculation:</strong></p><p>600 ÷ 50 = 12 partitions</p><p><strong>Consumer calculation:</strong></p><p>600 ÷ 30 = 20 partitions</p><p><strong>Recommended partition count:</strong></p><p>Max(12, 20) = 20 partitions</p><p>Although producers can achieve the required throughput with 12 partitions, consumers require 20 partitions to process data without creating bottlenecks. In this scenario, <strong>20 partitions</strong> is the appropriate starting point.</p><h4>Factors That Influence Partition Count</h4><p>There is no universal recommendation for the ideal number of Kafka partitions. The optimal partition count depends on several workload-specific factors, including:</p><ul><li>Message size</li><li>Producer batching and compression</li><li>Replication factor</li><li>Acknowledgement (acks) configuration</li><li>Consumer processing complexity</li><li>Broker CPU, memory, and storage performance</li><li>Expected traffic growth</li><li>Maximum consumer parallelism</li></ul><p>Benchmarking representative workloads is significantly more reliable than relying on generic partition sizing recommendations.</p><h4>Plan for Growth, Not Just Today’s Traffic</h4><p>Kafka allows partition counts to be increased after a topic is created, but increasing partitions changes how future records are distributed across the topic. While this makes scaling possible, resizing production topics still requires planning, especially for applications that depend on key-based routing or message ordering.</p><p>A better approach is to estimate expected workload growth over the next two to three years and provision enough partitions to support that scale from the beginning. This reduces the need for repartitioning as applications evolve.</p><h4>How Condense Simplifies Partition Planning</h4><p>Once the required partition count has been determined, <strong>Condense</strong> simplifies implementation through <strong>Kafka Management</strong>. Engineering teams can configure partition count, replication factor, retention policies, cleanup policies, and segment settings when creating a topic from a unified interface. As workloads grow, partition counts can be increased without recreating the topic, allowing streaming applications to scale while continuing to operate on the same Kafka deployment. Combined with partition-level observability and consumer lag monitoring, teams can validate whether additional partitions are delivering the expected improvements in throughput and parallelism.</p><p><strong>Best Practice:</strong> Calculate Kafka partition count using measured throughput, expected consumer parallelism, and future growth projections. Configure topics with sufficient partitions during initial deployment, and periodically review partition utilization as workloads evolve.</p><h3>How Should You Design a Kafka Partition Key?</h3><p>Choosing the right Kafka partition count determines how much a topic can scale, but choosing the right <strong>partition key</strong> determines <strong>how efficiently that scale is utilized</strong>. The partition key controls how records are distributed across partitions, whether related events remain ordered, and how evenly workloads are balanced across brokers and consumers. An ineffective partition key can create hotspots, uneven resource utilization, and reduced application throughput even when a topic has an adequate number of partitions.</p><p>When a producer sends a record with a key, Kafka uses a hashing algorithm to determine the destination partition.</p><p>Partition = hash(partition_key) % number_of_partitions</p><p>This calculation ensures that every record with the same partition key is consistently routed to the same partition, preserving message ordering for that key.</p><h4>Why Does the Partition Key Matter?</h4><p>The partition key influences several critical aspects of a Kafka deployment:</p><p>Because the partition key affects both application correctness and cluster performance, it should be selected based on business requirements rather than convenience.</p><h4>Semantic Keys vs Random Keys</h4><p>Partition keys generally fall into two categories.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c4aa3d08a682f79b6840d044adda46f/href">https://medium.com/media/7c4aa3d08a682f79b6840d044adda46f/href</a></iframe><h4>When Should You Use Semantic Keys?</h4><p>Semantic keys represent a business entity whose events must remain in sequence.</p><p>Examples include:</p><ul><li>Customer ID</li><li>Vehicle ID</li><li>Device ID</li><li>Order ID</li><li>Account ID</li></ul><p>For example, if every telemetry event generated by <strong>Vehicle_1042</strong> uses the vehicle ID as its partition key, all events for that vehicle are written to the same partition.</p><pre>&gt; Vehicle_1042 <br> <br>  Engine Started <br>        ↓ <br>  Location Updated <br>        ↓ <br>  Speed Updated <br>        ↓ <br>  Engine Stopped </pre><p>Because all events remain within a single partition, Kafka preserves their order throughout processing.</p><p>Semantic keys are recommended when applications require:</p><ul><li>Ordered event processing</li><li>Stateful stream processing</li><li>Event sourcing</li><li>Stream joins and aggregations</li><li>Entity state management</li></ul><h4>When Should You Use Random or Null Keys?</h4><p>Not every workload requires message ordering.</p><p>If records are independent and can be processed in any sequence, producers can use random keys or publish records without specifying a partition key. Kafka distributes these records across partitions, resulting in a more even workload distribution.</p><p>Random or null keys are commonly used for:</p><ul><li>Log ingestion</li><li>Metrics collection</li><li>Clickstream analytics</li><li>Independent telemetry events</li><li>High-throughput event ingestion</li></ul><p>The trade-off is that events for the same entity may be written to different partitions, meaning Kafka no longer guarantees their relative order.</p><h4>Designing an Effective Partition Key</h4><p>A good partition key should:</p><ul><li>Preserve ordering where required.</li><li>Have high cardinality to distribute traffic evenly.</li><li>Remain stable throughout the application’s lifecycle.</li><li>Support future scaling without creating hotspots.</li><li>Reflect the application’s processing requirements rather than temporary business attributes.</li></ul><p>Selecting fields such as <strong>Country</strong>, <strong>Region</strong>, <strong>Status</strong>, or <strong>Event Type</strong> often results in uneven traffic distribution because these values have relatively low cardinality. Business identifiers with many unique values typically provide a much better balance across partitions.</p><h4>How Condense Simplifies Partition Validation</h4><p>Choosing a partition key is only the first step. Validating that it distributes records as expected is equally important in production.</p><p><strong>Condense</strong> simplifies this through <strong>Kafka Management</strong>, allowing engineering teams to inspect messages at the partition level by selecting a specific partition, browsing records from any offset, viewing messages in JSON, Avro, or Protobuf formats, and publishing test messages directly to a chosen partition. These capabilities make it easier to verify partition key behavior, troubleshoot routing issues, and understand how records are distributed across Kafka topics without relying on external tooling.</p><p><strong>Best Practice:</strong> Choose partition keys based on application behavior rather than convenience. High-cardinality business identifiers generally provide the best balance between message ordering, workload distribution, and long-term scalability. Validate the chosen strategy early using partition-level inspection before workloads reach production scale.</p><h3>How Do Poor Partition Keys Create Hotspots in Kafka Clusters?</h3><p>Even with the right number of partitions, a Kafka topic can still suffer from poor performance if records are distributed unevenly across those partitions. This typically happens when an ineffective partition key causes a disproportionate amount of traffic to be routed to a small number of partitions, creating <strong>hotspots</strong>.</p><p>A hotspot occurs when one or more partitions receive significantly more records than others. Since each partition is processed independently, these overloaded partitions become bottlenecks, increasing consumer lag, producer latency, and broker resource utilization while other partitions remain underutilized.</p><h4>What Causes Partition Hotspots?</h4><p>Hotspots are usually caused by partition keys with <strong>low cardinality</strong> or uneven business data distribution.</p><p>Consider an application that uses <strong>Country</strong> as the partition key.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/489c83eeba1c1762bc2da5b9dbc1ff35/href">https://medium.com/media/489c83eeba1c1762bc2da5b9dbc1ff35/href</a></iframe><p>Although the topic may contain multiple partitions, most events associated with <strong>India</strong> are consistently routed to the same partition. As traffic increases, that partition becomes overloaded while the remaining partitions process comparatively little data.</p><p>This imbalance reduces the effectiveness of Kafka’s parallel processing model.</p><h4>Operational Impact of Hot Partitions</h4><p>Partition hotspots affect the entire streaming pipeline, not just a single consumer.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7733c247688a78119be7d46c2b3a86d1/href">https://medium.com/media/7733c247688a78119be7d46c2b3a86d1/href</a></iframe><p>Over time, the busiest partition becomes the limiting factor for the application, regardless of the available capacity across the rest of the cluster.</p><h4>Common Partition Key Mistakes</h4><p>The following partition keys frequently lead to workload imbalance.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca860d39788e7305c93db0f9522bf830/href">https://medium.com/media/ca860d39788e7305c93db0f9522bf830/href</a></iframe><p>The objective is to select partition keys with <strong>high cardinality</strong>, allowing Kafka to distribute records more evenly across partitions while preserving ordering where required.</p><h4>Detecting Hotspots Before They Become Production Issues</h4><p>Traffic patterns evolve over time. A partition key that distributes records evenly today may become imbalanced as specific customers, devices, or tenants generate significantly more events than others.</p><p>Engineering teams should continuously monitor:</p><ul><li>Consumer lag by partition</li><li>Records processed per partition</li><li>Partition assignment across consumers</li><li>Broker CPU and memory utilization</li><li>Partition storage growth</li><li>Consumer group health</li></ul><p>Monitoring these metrics helps identify workload imbalance before it impacts application performance.</p><h4>How Condense Simplifies Hotspot Detection</h4><p><strong>Condense</strong> provides partition-level visibility through its Kafka Management and observability capabilities, making it easier to identify workload imbalance as traffic patterns evolve. Engineering teams can monitor <strong>consumer lag for individual partitions</strong>, track <strong>partition ownership and assignments across consumer groups</strong>, view <strong>committed offsets and lag</strong>, and monitor <strong>consumer group health</strong>, including stable, rebalancing, and inactive states. These insights help teams detect hotspots early, validate whether workloads are evenly distributed, and determine when partition scaling or partition key changes may be required.</p><p><strong>Best Practice:</strong> Designing an effective partition key is only part of the solution. Continuously monitor partition-level metrics to ensure workloads remain balanced as applications scale, and adjust partition strategy proactively before hotspots become production bottlenecks.</p><h3>What Happens If You Have Too Few or Too Many Kafka Partitions?</h3><p>Choosing the right Kafka partition count is a balancing act. While partitions are the foundation of scalability and parallel processing, both under-partitioning and over-partitioning can introduce performance and operational challenges. The objective is not to maximize the number of partitions, but to provision enough partitions to support current workloads, accommodate future growth, and maintain efficient cluster operations.</p><h4>What Happens When There Are Too Few Partitions?</h4><p>Topics with too few partitions limit the amount of work that can be processed concurrently. Since each partition can be consumed by only one consumer within a consumer group, insufficient partitions restrict consumer parallelism regardless of how many consumer instances are deployed.</p><p>As workloads grow, this often results in:</p><ul><li>Limited consumer parallelism</li><li>Higher consumer lag</li><li>Lower overall throughput</li><li>Underutilized consumer instances</li><li>Reduced ability to scale horizontally</li></ul><p>For example, if a topic has <strong>8 partitions</strong> but an application requires <strong>20 consumers</strong> to keep pace with incoming traffic, only <strong>8 consumers</strong> can actively process records. The remaining <strong>12 consumers</strong> remain idle because there are no partitions available to assign.</p><h4>What Happens When There Are Too Many Partitions?</h4><p>Although increasing partition count improves scalability, excessive partitioning introduces additional operational overhead. Every partition requires metadata management, broker resources, storage, and coordination during cluster operations.</p><p>Creating significantly more partitions than required can lead to:</p><ul><li>Increased broker memory consumption</li><li>More metadata to manage</li><li>Longer consumer group rebalancing</li><li>Higher storage and file handle usage</li><li>Slower broker startup and recovery</li><li>Greater operational complexity</li></ul><p>These effects become increasingly noticeable in large production clusters hosting thousands of partitions across multiple brokers.</p><h4>Comparing Both Approaches</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4687d9a53f7afbce60c798af4e6a99c/href">https://medium.com/media/f4687d9a53f7afbce60c798af4e6a99c/href</a></iframe><p>The ideal partition count balances these trade-offs while leaving sufficient headroom for expected growth.</p><h4>Design for Growth, Not Just Current Workloads</h4><p>Many engineering teams size Kafka topics based only on current traffic, only to discover later that additional consumers cannot be utilized because the partition count has become the limiting factor.</p><p>A more sustainable approach is to consider:</p><ul><li>Expected peak throughput</li><li>Maximum consumer parallelism</li><li>Business growth projections</li><li>Seasonal traffic spikes</li><li>Infrastructure capacity</li></ul><p>Planning with future growth in mind reduces the likelihood of repartitioning production topics as workloads evolve.</p><h4>How Condense Simplifies Partition Scaling</h4><p>As streaming workloads increase, engineering teams often need to increase partition counts to maintain throughput and consumer parallelism. <strong>Condense</strong> simplifies this process through <strong>Kafka Management</strong>, allowing partition counts to be increased after topic creation while preserving the existing topic lifecycle. As data volumes grow, the platform helps engineering teams scale Kafka brokers and partitions together, enabling applications to handle higher event volumes without manual infrastructure coordination. This is particularly valuable for workloads with rapidly changing traffic patterns, such as connected vehicle platforms, IoT deployments, or event-driven applications that experience predictable peak events.</p><p><strong>Best Practice:</strong> Select a partition count that supports both current and projected workloads rather than optimizing solely for today’s traffic. As throughput and consumer demand increase, periodically review partition utilization and scale partitions proactively to maintain balanced workloads and consistent application performance.</p><h3>How Can You Safely Increase Kafka Partition Count Without Downtime?</h3><p>As applications scale, increasing the number of Kafka partitions is often necessary to support higher throughput and greater consumer parallelism. Apache Kafka allows partition counts to be increased for existing topics without taking producers or consumers offline, making it possible to scale running applications with minimal disruption.</p><p>However, increasing the partition count is more than a capacity upgrade. It changes how future records are distributed across partitions and can affect applications that depend on partition keys for ordering or stateful processing. Understanding these implications helps engineering teams scale topics safely while maintaining application correctness.</p><h4>Can Kafka Increase and Decrease Partition Count?</h4><p>Kafka supports increasing the number of partitions for an existing topic, but it does not allow partitions to be removed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f59c5357c43de4dfa97ef75a78328b3/href">https://medium.com/media/2f59c5357c43de4dfa97ef75a78328b3/href</a></iframe><p>Because partition counts cannot be reduced, capacity planning should consider future growth during the initial topic design.</p><h4>What Happens When You Increase the Partition Count?</h4><p>Kafka determines the destination partition for keyed records using the partition key and the total number of partitions.</p><p>Partition = hash(partition_key) % number_of_partitions</p><p>When the number of partitions changes, the calculated destination partition for future records may also change.</p><p>For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/021038d7b8c41fb621716091d449afad/href">https://medium.com/media/021038d7b8c41fb621716091d449afad/href</a></iframe><p>Existing records remain in their original partitions, while <strong>new records</strong> are written according to the updated partition mapping.</p><p>This distinction is important because Kafka <strong>does not redistribute existing records</strong> when partitions are added.</p><h3>What Should Engineering Teams Consider Before Scaling?</h3><p>Before increasing partition counts, evaluate whether your applications depend on:</p><ul><li>Message ordering for a business entity</li><li>Stateful stream processing</li><li>Stream joins and aggregations</li><li>Consumer applications maintaining local state</li><li>Historical event replay</li></ul><p>If ordering across the complete event history is a requirement, increasing partition count should be planned carefully.</p><h3>Recommended Migration Strategies</h3><p>The safest approach depends on the application architecture.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96dbe524b348307e72a83f86eceb8315/href">https://medium.com/media/96dbe524b348307e72a83f86eceb8315/href</a></iframe><p>Many engineering teams choose to create a new topic with the desired partition count for large production workloads. Producers publish to both topics during the migration period, consumers are validated against the new topic, and the original topic is retired once the migration is complete.</p><h3>How Condense Simplifies Partition Scaling</h3><p>Scaling Kafka topics should not require engineering teams to manually coordinate infrastructure changes across multiple tools.</p><p>Using <strong>Kafka Management</strong>, <strong>Condense</strong> allows teams to increase partition counts as application workloads grow while continuing to manage the same Kafka topic throughout its lifecycle. As additional partitions are introduced, Condense provides visibility into <strong>consumer lag</strong>, <strong>partition assignments</strong>, <strong>committed offsets</strong>, and <strong>consumer group health</strong>, helping teams verify that workloads are being redistributed effectively.</p><p>For consumer groups, Condense supports <strong>cooperative incremental rebalancing</strong>, allowing Kafka to move only the affected partitions when consumers join or leave the group instead of reassigning every partition. This significantly reduces disruption, minimizes unnecessary data movement, and enables smoother scaling for production workloads.</p><p>Combined with broker scaling, partition management, and partition-level observability, engineering teams can expand streaming capacity while maintaining application stability during periods of sustained growth or peak traffic.</p><p><strong>Best Practice:</strong> Plan partition growth before throughput becomes a bottleneck. Increase partitions based on measured workload trends, validate workload distribution using partition-level metrics, and use cooperative incremental rebalancing to minimize disruption during consumer scaling.</p><h3>What Are the Most Common Kafka Partition Strategy Mistakes?</h3><p>Even experienced engineering teams can encounter partitioning issues as streaming workloads evolve. In many cases, performance bottlenecks are not caused by Kafka itself but by partitioning decisions made during the initial design phase. Understanding these common mistakes helps teams build Kafka deployments that remain scalable, balanced, and resilient as data volumes increase.</p><h4>Choosing Partition Keys with Low Cardinality</h4><p>Partition keys such as <strong>Country</strong>, <strong>Region</strong>, <strong>Status</strong>, or <strong>Event Type</strong> have a limited number of unique values. As traffic grows, these values often create hotspots by routing a disproportionate amount of data to a small number of partitions.</p><p>Instead, choose high-cardinality identifiers such as:</p><ul><li>Customer ID</li><li>Device ID</li><li>Vehicle ID</li><li>Order ID</li><li>Session ID</li></ul><p>These keys distribute records more evenly while preserving ordering for related events.</p><h4>Ignoring Future Consumer Parallelism</h4><p>Many teams size partition counts based only on their current deployment.</p><p>For example:</p><ul><li>Current deployment: 4 consumers</li><li>Topic configured with: 4 partitions</li></ul><p>As the application grows, the team deploys <strong>12 consumers</strong>, expecting throughput to increase. However, only four consumers actively process records because the partition count has become the limiting factor.</p><p>Always size partition counts based on expected peak consumer parallelism rather than today’s deployment.</p><h4>Prioritizing Throughput Over Ordering</h4><p>Using random or null partition keys can improve distribution across partitions, but it also removes ordering guarantees for related events.</p><p>Applications involving:</p><ul><li>Financial transactions</li><li>Fleet telemetry</li><li>Inventory updates</li><li>Customer state</li><li>Event sourcing</li></ul><p>typically require semantic partition keys to preserve event order.</p><p>Select the partition key based on application behavior rather than throughput alone.</p><h4>Creating Excessive Partitions</h4><p>More partitions do not automatically improve Kafka performance.</p><p>Excessive partition counts increase:</p><ul><li>Broker metadata</li><li>Memory usage</li><li>File handles</li><li>Consumer rebalancing time</li><li>Recovery time after failures</li></ul><p>Partition count should be determined through capacity planning and benchmarking instead of arbitrary sizing rules.</p><h4>Not Monitoring Partition Health</h4><p>Partition strategies should evolve as workloads change.</p><p>Traffic patterns that are evenly distributed today may become skewed as new customers, devices, or business regions generate significantly more events.</p><p>Engineering teams should continuously monitor:</p><ul><li>Consumer lag</li><li>Partition assignments</li><li>Broker utilization</li><li>Partition growth</li><li>Consumer group health</li></ul><p>These metrics provide early warning signs that partition counts or partition keys should be reviewed.</p><p>With <strong>Condense</strong>, teams can monitor partition-level consumer lag, partition assignments, committed offsets, and consumer group health from a unified Kafka Management interface, making it easier to identify imbalance before it affects production workloads.</p><h3>Treating Partition Strategy as a One-Time Activity</h3><p>Partition strategy should evolve alongside the application.</p><p>As throughput, consumer groups, and traffic distribution change, engineering teams should periodically review:</p><ul><li>Partition utilization</li><li>Consumer parallelism</li><li>Workload distribution</li><li>Broker capacity</li><li>Future scaling requirements</li></ul><p>Rather than waiting for consumer lag or hotspots to appear, proactively reviewing these metrics helps maintain consistent performance as streaming workloads grow.</p><h3>Common Mistakes at a Glance</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9784b7297d09a0f19aff2943dc6845a2/href">https://medium.com/media/9784b7297d09a0f19aff2943dc6845a2/href</a></iframe><p><strong>Best Practice:</strong> Kafka partition strategy should be treated as an ongoing architectural practice rather than a one-time configuration task. Combining effective partition sizing, well-designed partition keys, continuous monitoring, and proactive capacity planning enables streaming applications to scale predictably while maintaining performance and reliability.</p><h3>Conclusion</h3><p>Kafka partition strategy is the foundation of every scalable Kafka deployment. It influences how data is distributed across brokers, determines the maximum level of consumer parallelism, preserves message ordering, and directly impacts throughput, resource utilization, and long-term cluster performance. Decisions made during topic design continue to influence application behavior long after workloads move into production, making partition strategy one of the most important architectural considerations in event streaming.</p><p>Designing an effective partition strategy requires balancing multiple factors. The right partition count should support expected throughput and future consumer parallelism without introducing unnecessary operational overhead. Partition keys should distribute workloads evenly while preserving ordering for events that belong together. As traffic patterns evolve, continuous monitoring helps identify hotspots, consumer lag, and partition imbalance before they affect application performance.</p><p>While Apache Kafka provides the flexibility to configure and scale partitions, implementing and operating an effective partition strategy across production environments requires the right operational capabilities. <strong>Condense</strong> simplifies the complete partition lifecycle through Kafka Management, enabling engineering teams to configure partitions during topic creation, scale partition counts as workloads grow, inspect partition-level data, monitor consumer lag and partition assignments, and manage consumer group rebalancing from a unified interface. This allows teams to focus on designing scalable streaming applications while simplifying the deployment, monitoring, and evolution of their Kafka infrastructure.</p><p>Whether you’re building connected mobility platforms, IoT applications, real-time analytics pipelines, or event-driven microservices, investing time in the right Kafka partition strategy from day one helps build streaming systems that remain scalable, resilient, and easier to operate as data volumes continue to grow.</p><h4>Try Condense for Free</h4><p>Designing an effective Kafka partition strategy is only the first step. Building, scaling, and operating production Kafka deployments requires the right tooling to manage topics, partitions, consumer groups, and observability as workloads evolve.</p><p><strong>Condense</strong> provides a unified Kafka-native data streaming platform that simplifies the complete lifecycle of Kafka deployments through Kafka Management, stream processing, connectors, observability, and operational tooling. Whether you’re building connected mobility platforms, IoT applications, real-time analytics pipelines, or enterprise event-driven architectures, Condense helps engineering teams deploy, manage, and scale Kafka with confidence.</p><blockquote><strong><em>Start your free 30-day Condense trial</em></strong><em> and experience a unified platform for designing, building, and operating real-time data streaming applications.</em></blockquote><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/kafka-partition-strategy-how-to-design-for-scale"><em>https://www.zeliot.in</em></a><em> on July 15, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e480e8612711" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BYOC Kafka: Why Forward-Thinking Enterprises Are Bringing Their Streaming Infrastructure In-House]]></title>
            <link>https://medium.com/@skamath/byoc-kafka-why-forward-thinking-enterprises-are-bringing-their-streaming-infrastructure-in-house-c59f505bcc2c?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/c59f505bcc2c</guid>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[byoc]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[realtime-data-streaming]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Mon, 13 Jul 2026 00:00:46 GMT</pubDate>
            <atom:updated>2026-07-22T09:48:26.328Z</atom:updated>
            <content:encoded><![CDATA[<p>Apache Kafka has become the backbone of modern event-driven architectures, enabling organizations to process, analyze, and act on real-time data at scale. As adoption has grown, managed Kafka services have become the preferred deployment model for many enterprises because they simplify cluster provisioning, upgrades, monitoring, and day-to-day operations.</p><p>However, enterprise requirements have evolved. While operational simplicity remains important, organizations now need greater control over where their data resides, how it is secured, and how cloud infrastructure is managed. Increasing regulatory requirements, growing cloud networking costs, and concerns around vendor lock-in are driving enterprises to rethink traditional vendor-hosted Kafka deployments.</p><p>This shift has accelerated the adoption of <strong>BYOC Kafka (Bring Your Own Cloud Kafka)</strong>, a deployment model that combines the operational benefits of managed Kafka with the control and security of running infrastructure inside the customer’s own cloud environment. Instead of moving streaming workloads into a vendor’s cloud, organizations can keep their Kafka brokers, storage, networking, and data within their own AWS, Microsoft Azure, or Google Cloud account while continuing to benefit from managed platform operations.</p><p>Condense builds on this approach by providing <strong>BYOC Kafka</strong> as part of a unified, AI-assisted application platform for real-time data streaming. Beyond managing Kafka infrastructure, Condense enables engineering teams to build, deploy, operate, and autonomously scale production-grade streaming applications through a single platform, simplifying the complete lifecycle of data streaming applications while ensuring data remains within the organization’s cloud environment.</p><p>If you’re new to the BYOC deployment model, our guide on <strong>What Is Bring Your Own Cloud (BYOC) and Why Is It Important?</strong> explains the concept in detail and why it is becoming the preferred cloud strategy for enterprise platforms.</p><p>In this guide, you’ll learn what <strong>BYOC Kafka</strong> is, how it differs from traditional vendor-hosted deployments, why enterprises are adopting it to address data sovereignty, compliance, and cloud networking costs, and how Condense combines BYOC Kafka with a unified platform for building and operating enterprise-grade data streaming applications.</p><h3>Why Enterprises Are Rethinking Vendor-Hosted Kafka</h3><p>Managed Kafka services have made it easier for organizations to adopt Apache Kafka without the operational burden of managing brokers, upgrades, and cluster maintenance. This convenience has helped accelerate the adoption of real-time data streaming across industries, enabling engineering teams to focus more on application development and less on infrastructure management.</p><p>As Kafka deployments mature, however, enterprises often discover that operational simplicity is only one part of the equation. Streaming platforms process some of an organization’s most valuable data, including customer information, financial transactions, connected device telemetry, operational metrics, and business-critical events. Where this data is processed, stored, and transferred has become just as important as how Kafka is managed.</p><p>Many vendor-hosted Kafka services require organizations to move their streaming infrastructure into the provider’s cloud environment. While this model reduces operational overhead, it can introduce new challenges around data sovereignty, regulatory compliance, cloud networking costs, infrastructure visibility, and vendor dependency. These challenges become more significant as data volumes increase and organizations expand across multiple regions and cloud environments.</p><p>Rather than choosing between operational simplicity and infrastructure control, enterprises are increasingly adopting deployment models that deliver both. This is one of the primary reasons <strong>BYOC Kafka</strong> has gained momentum across regulated industries and large-scale enterprise deployments.</p><h4>Limited Infrastructure Control</h4><p>With traditional vendor-hosted Kafka services, the underlying infrastructure is owned and managed by the provider. Organizations typically have limited visibility into how Kafka brokers are deployed, how networking is configured, or where data is physically processed. While this abstraction simplifies operations, it also reduces the level of control many enterprises require for governance, security, and cloud architecture.</p><p>For organizations with strict infrastructure standards or internal security policies, this lack of control can become a significant operational constraint.</p><h4>Growing Data Sovereignty Concerns</h4><p>Streaming platforms frequently process sensitive business and customer data that may be subject to regional regulations or internal governance policies. When Kafka runs inside a vendor-managed environment, organizations often have limited control over where data is stored, how it traverses networks, and which cloud resources are involved in processing it.</p><p>As governments continue to strengthen data protection regulations, enterprises are increasingly looking for deployment models that allow them to maintain complete ownership of their data while still benefiting from managed operations.</p><h4>Rising Cloud Networking Costs</h4><p>Network traffic is one of the most overlooked costs in large-scale Kafka deployments. Applications running inside a customer’s cloud environment often need to exchange data continuously with Kafka clusters hosted elsewhere. As event volumes grow, cross-cloud and cross-region traffic can generate substantial network egress charges that are difficult to predict and optimize.</p><p>For many organizations, these costs become a major factor when evaluating long-term Kafka deployment strategies.</p><h4>Vendor Lock-In</h4><p>Vendor-hosted services can also make it more difficult to adapt infrastructure as business requirements evolve. Migrating data, integrating with existing cloud architectures, or adopting a multi-cloud strategy may require significant effort when the streaming platform is tightly coupled to a provider’s environment.</p><p>BYOC Kafka addresses these challenges by allowing organizations to retain ownership of their infrastructure while continuing to benefit from managed platform operations, making it easier to maintain architectural flexibility without compromising operational efficiency.</p><h3>What Is BYOC Kafka?</h3><p><strong>BYOC Kafka (Bring Your Own Cloud Kafka)</strong> is a deployment model that allows organizations to run Apache Kafka entirely within their own cloud environment while continuing to benefit from managed operations. Unlike traditional vendor-hosted Kafka services, where both the platform and infrastructure reside in the provider’s cloud account, BYOC keeps the infrastructure under the customer’s ownership.</p><p>This means Kafka brokers, storage, networking, and streaming data remain within the customer’s AWS, Microsoft Azure, or Google Cloud environment. At the same time, the platform provider manages operational responsibilities such as provisioning, upgrades, monitoring, health checks, and lifecycle management.</p><p>The result is a deployment model that combines the operational simplicity of managed Kafka with the security, control, and flexibility of customer-owned cloud infrastructure.</p><p>If you’re new to the BYOC deployment model, our guide on <a href="https://www.zeliot.in/blog/what-is-bring-your-own-cloud-byoc-and-why-is-it-important">What Is Bring Your Own Cloud (BYOC) and Why Is It Important?</a> explains the concept in detail and why it is becoming the preferred cloud strategy for enterprise platforms.</p><h4>Understanding the Control Plane and Data Plane</h4><p>The easiest way to understand BYOC Kafka is by separating the platform into two logical components: the <strong>control plane</strong> and the <strong>data plane</strong>.</p><p>The <strong>control plane</strong> manages the Kafka platform. It automates operational tasks such as cluster provisioning, software updates, scaling, monitoring, health management, and lifecycle operations. Since it contains management logic rather than customer data, it can be operated securely by the platform provider.</p><p>The <strong>data plane</strong> is where Kafka processes and stores streaming data. It includes Kafka brokers, topics, partitions, persistent storage, networking, and every event flowing through the platform. In a BYOC deployment, this entire data plane remains inside the customer’s cloud account, ensuring that sensitive business data never leaves the organization’s environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*CORxvwS-15BDfQHT.png" /></figure><p>This separation enables organizations to retain complete ownership of their infrastructure and data without taking on the operational complexity of managing Apache Kafka themselves.</p><h3>How Condense Delivers BYOC Kafka</h3><p>Condense delivers <strong>BYOC Kafka</strong> as part of its unified, AI-assisted application platform for real-time data streaming. Rather than offering managed Kafka as a standalone service, Condense deploys Kafka directly into the customer’s AWS, Microsoft Azure, or Google Cloud environment while managing the operational lifecycle through its control plane.</p><p>Beyond Kafka operations, Condense provides the capabilities required to build and run production-grade streaming applications. Engineering teams can develop stream processing applications, integrate enterprise and IoT data sources, deploy workloads, monitor application health, and manage the complete lifecycle of data streaming applications from a single platform. This enables organizations to retain full ownership of their infrastructure while accelerating the development and operation of enterprise-scale streaming solutions.</p><p>If you’d like to understand how the BYOC deployment model works behind the scenes, read our detailed architecture guide <a href="https://www.zeliot.in/blog/how-does-bring-your-own-cloud-model-work-exactly">How does Bring Your Own Cloud (BYOC) Work</a></p><h3>Data Sovereignty and Compliance Are Driving BYOC Adoption</h3><p>For many enterprises, the decision to adopt <strong>BYOC Kafka</strong> extends beyond operational efficiency. As governments introduce stricter privacy regulations and organizations expand across multiple regions, maintaining control over where data is stored, processed, and transmitted has become a strategic requirement.</p><p>Traditional vendor-hosted Kafka deployments can complicate compliance because data often resides within infrastructure owned and managed by the service provider. Even when providers offer regional deployments, organizations may have limited visibility into how data is processed, where backups are stored, or how network traffic flows between cloud environments. For regulated industries, this lack of control can introduce additional compliance reviews, governance challenges, and operational risks.</p><p>By keeping the Kafka data plane inside the customer’s own cloud account, BYOC Kafka gives organizations complete visibility and ownership of their streaming infrastructure. Security policies, network configurations, encryption standards, and access controls remain under the organization’s governance, making it easier to align Kafka deployments with internal security frameworks and regulatory obligations.</p><h3>Meeting Data Residency Requirements</h3><p>Many countries now require certain categories of data to remain within specific geographic boundaries. Whether processing customer information, financial transactions, healthcare records, or government data, organizations must be able to demonstrate where data resides and who controls the underlying infrastructure.</p><p>With BYOC Kafka, Kafka brokers, storage volumes, and streaming data remain within the organization’s chosen cloud region. Enterprises decide where workloads are deployed, helping them satisfy regional data residency requirements without changing how applications consume or produce events.</p><h3>Supporting GDPR and the Digital Personal Data Protection Act (DPDP)</h3><p>Regulations such as the <strong>General Data Protection Regulation (GDPR)</strong> in the European Union and India’s <strong>Digital Personal Data Protection (DPDP) Act</strong> place significant responsibilities on organizations handling personal data. These regulations require organizations to implement appropriate technical and organizational measures to protect data, maintain governance, and demonstrate compliance.</p><p>While compliance depends on an organization’s overall security and operational practices, BYOC Kafka provides a deployment model that supports these objectives by allowing enterprises to keep sensitive data within infrastructure they own and manage. This simplifies governance, strengthens audit readiness, and provides greater transparency into how streaming data is processed.</p><p>To learn more about securing enterprise streaming platforms, read our guide on <strong>Kafka Security for the Enterprise: Building Trust in Motion</strong>.</p><h3>Why Regulated Industries Prefer BYOC</h3><p>Industries handling highly sensitive or business-critical information often have stricter governance requirements than general cloud workloads.</p><p>Examples include:</p><ul><li><strong>Banking and Financial Services (BFSI)</strong>, where payment data and financial transactions require strong governance and auditability.</li><li><strong>Healthcare</strong>, where patient information must be protected according to industry regulations and organizational security policies.</li><li><strong>Government and Public Sector</strong>, where data sovereignty and infrastructure ownership are often mandatory.</li><li><strong>Manufacturing and Industrial IoT</strong>, where operational data, production telemetry, and intellectual property represent strategic business assets.</li></ul><p>For these organizations, BYOC Kafka provides a practical balance between managed operations and complete infrastructure ownership. Rather than choosing between operational simplicity and regulatory compliance, enterprises can achieve both through a deployment model that keeps streaming data securely within their own cloud environment.</p><p>For a deeper look at how this approach addresses regulatory requirements, explore <a href="https://www.zeliot.in/blog/how-byoc-managed-kafka-solves-compliance-and-data-residency-challenges"><strong>How BYOC Managed Kafka Solves Compliance and Data Residency Challenges</strong>.</a></p><h3>Why BYOC Eliminates Kafka Egress Costs</h3><p>Cloud costs are often associated with compute, storage, and managed services, but one of the most overlooked expenses in large-scale Kafka deployments is <strong>network egress</strong>. As organizations stream millions of events between applications, analytics platforms, data lakes, and AI workloads, the cost of moving data across cloud boundaries can quickly become one of the largest operational expenses.</p><p>In a traditional vendor-hosted Kafka deployment, applications frequently communicate with Kafka clusters running outside the organization’s cloud account. Every event published to or consumed from Kafka may traverse cloud networks, resulting in data transfer charges that increase with application growth, consumer groups, and streaming volumes.</p><p>For organizations processing terabytes of streaming data every day, these network costs can grow significantly over time, often exceeding initial infrastructure estimates.</p><h4>Understanding Cloud Network Egress</h4><p>Cloud providers generally do not charge for data entering their platforms, commonly referred to as <strong>ingress</strong>. However, data leaving a cloud environment or moving between regions, availability zones, or cloud providers is typically billed as <strong>network egress</strong>.</p><p>For Apache Kafka, every producer publishing events and every consumer reading those events generates network traffic. As additional downstream systems such as analytics platforms, machine learning pipelines, data warehouses, and operational applications consume the same event streams, the volume of outbound traffic continues to increase.</p><p>This means network costs often scale with the success of the platform rather than remaining fixed.</p><h4>Why Vendor-Hosted Kafka Increases Network Costs</h4><p>Consider a common enterprise architecture where business applications are deployed inside the organization’s AWS environment, while Kafka is hosted by a third-party provider.</p><p>Business Applications <br> ↓<br>Vendor-Hosted Kafka <br> ↓ <br>Analytics • AI • Data Lake • ERP</p><p>Every producer sends data to the vendor-managed Kafka cluster, and every downstream application retrieves that data across cloud boundaries. As event throughput increases, organizations pay not only for Kafka itself but also for the continuous movement of streaming data between environments.</p><p>For high-volume workloads, these recurring network charges can become a significant contributor to the total cost of ownership.</p><h4>How BYOC Kafka Reduces Egress Costs</h4><p>With <strong>BYOC Kafka</strong>, Kafka brokers run directly inside the customer’s AWS, Microsoft Azure, or Google Cloud environment. Producers, consumers, databases, analytics platforms, AI services, and enterprise applications communicate over private cloud networking instead of sending traffic across external environments.</p><p>Customer Cloud (AWS / Azure / Google Cloud)</p><p>Applications <br> ↓<br>Kafka Cluster <br> ↓<br>Analytics • AI • ERP • Data Lake</p><p>Because applications and Kafka operate within the same cloud environment, organizations significantly reduce cross-cloud network traffic and the associated egress charges. At the same time, they benefit from lower latency, improved network performance, and greater control over how streaming data flows through the enterprise.</p><p>As streaming adoption expands across business units and more applications consume real-time events, these savings become increasingly valuable. Rather than paying repeatedly to move data between environments, organizations can keep data close to the applications that use it, creating a more efficient, secure, and cost-effective streaming architecture.</p><h3>How Condense Delivers BYOC Kafka and the Complete Data Streaming Lifecycle</h3><p>BYOC Kafka provides the deployment model enterprises need to retain ownership of their infrastructure, networking, and data. However, deploying Kafka inside your cloud is only one part of building a successful real-time data streaming platform. Engineering teams still need to develop streaming applications, integrate enterprise systems, process data in real time, deploy workloads, monitor production environments, and continuously evolve applications as business requirements change.</p><p>Condense goes beyond managed Kafka by providing <strong>BYOC Kafka</strong> as part of a unified, AI-assisted application platform for real-time data streaming. Rather than assembling separate tools for application development, stream processing, deployment, observability, and operations, engineering teams can manage the complete lifecycle of their streaming applications through a single platform while keeping Kafka and all streaming data inside their own cloud environment.</p><h4>Deploy BYOC Kafka in Your Cloud</h4><p>Condense deploys Kafka directly into the customer’s AWS, Microsoft Azure, or Google Cloud environment using a Bring Your Own Cloud (BYOC) architecture. Kafka brokers, storage, networking, topics, and streaming data remain entirely within the customer’s cloud account, while Condense automates platform provisioning, upgrades, monitoring, scaling, and lifecycle management through its managed control plane.</p><p>This deployment model enables organizations to maintain complete ownership of their infrastructure without assuming the operational complexity of managing Kafka clusters themselves.</p><h4>Build Production-Grade Streaming Applications</h4><p>Running Kafka is only the foundation of a real-time streaming platform. Organizations also need to transform streaming data into business outcomes.</p><p>Condense provides a unified development environment for building event-driven applications that process, enrich, correlate, and route streaming data. Whether developing fraud detection systems, connected vehicle platforms, inventory management solutions, industrial IoT applications, or real-time analytics pipelines, engineering teams can build and deploy production-ready applications without stitching together multiple frameworks or operational tools.</p><h4>Manage the Complete Application Lifecycle</h4><p>Condense supports the complete lifecycle of enterprise data streaming applications from development to production.</p><p>Teams can:</p><ul><li>Develop stream processing applications using an integrated browser-based IDE.</li><li>Connect enterprise systems, databases, cloud services, and IoT devices through production-ready connectors.</li><li>Deploy applications consistently across development, testing, and production environments.</li><li>Monitor application health, throughput, latency, and operational metrics from a centralized interface.</li><li>Autonomously scale streaming workloads as application demand grows.</li></ul><p>By bringing development, deployment, operations, and lifecycle management together on a single platform, Condense enables engineering teams to focus on delivering business value instead of integrating and maintaining multiple technologies across the streaming stack.</p><p>Learn more about how organizations keep their streaming infrastructure inside their own cloud in <strong>Your Data on Your Cloud Using BYOC with Condense</strong>.</p><h4>Vendor-Hosted Kafka vs. BYOC Kafka</h4><p>Choosing between a traditional vendor-hosted Kafka service and a <strong>BYOC Kafka</strong> deployment depends on an organization’s priorities. While both approaches simplify Kafka operations, they differ significantly in terms of infrastructure ownership, data sovereignty, compliance, networking costs, and operational flexibility.</p><p>Vendor-hosted Kafka is well suited for organizations seeking a quick path to adoption with minimal infrastructure responsibility. In contrast, <strong>BYOC Kafka</strong> provides the same managed experience while allowing enterprises to retain ownership of their cloud infrastructure, security policies, networking, and streaming data.</p><p>The table below highlights the key differences.</p><pre>| **Capability** | **Vendor-Hosted Kafka** | **BYOC Kafka** |<br>|----------------|-------------------------|----------------|<br>| **Infrastructure Ownership** | Provider-owned infrastructure | Customer-owned infrastructure |<br>| **Kafka Deployment** | Runs in the provider&#39;s cloud environment | Runs inside the customer&#39;s AWS, Microsoft Azure, or Google Cloud environment |<br>| **Control Plane** | Managed by the provider | Managed by the provider |<br>| **Data Plane** | Hosted by the provider | Hosted entirely within the customer&#39;s cloud |<br>| **Data Sovereignty** | Limited control over data location | Complete ownership of data and infrastructure |<br>| **Data Residency** | Depends on provider-supported regions | Customer selects cloud provider and deployment region |<br>| **Compliance** | Shared responsibility with provider | Easier alignment with enterprise security and regulatory requirements |<br>| **Network Egress Costs** | Higher due to cross-cloud data movement | Reduced by keeping traffic within the customer&#39;s cloud network |<br>| **Infrastructure Visibility** | Limited | Full visibility into cloud resources |<br>| **Security Controls** | Primarily provider-managed | Customer-managed security policies, IAM, networking, and encryption |<br>| **Vendor Lock-In** | Higher | Lower, with greater architectural flexibility |<br>| **Operational Management** | Managed by the provider | Managed by the provider through the control plane while infrastructure remains customer-owned |<br>| **Best Fit** | Startups, prototypes, and smaller deployments | Enterprises, regulated industries, and large-scale production workloads |</pre><p>There is no universal deployment model that fits every organization. Vendor-hosted Kafka remains a practical choice for teams prioritizing rapid adoption and minimal infrastructure management. However, as organizations scale their streaming platforms, handle sensitive data, or operate under strict regulatory requirements, <strong>BYOC Kafka</strong> provides greater control over infrastructure, stronger data sovereignty, improved compliance, and lower long-term networking costs without sacrificing the operational benefits of a managed platform.</p><p>Planning your own deployment? This guide explains how to design scalable BYOC architectures for enterprise Kafka workloads <a href="https://www.zeliot.in/blog/designing-bring-your-own-cloud-byoc-architectures-for-real-time-kafka-deployments">Designing BYOC Architectures for Real-Time Kafka Deployments</a></p><h3>Is BYOC Kafka Right for Your Organization?</h3><p>BYOC Kafka is not simply another deployment option. It is an architectural choice that balances the operational simplicity of managed Kafka with the control, security, and flexibility of customer-owned cloud infrastructure. Whether it is the right fit depends on an organization’s regulatory obligations, data sensitivity, cloud strategy, and long-term operational goals.</p><h3>Organizations That Benefit Most from BYOC Kafka</h3><p>BYOC Kafka is particularly valuable for enterprises that process large volumes of business-critical or regulated data and require complete control over their cloud infrastructure.</p><p>It is well suited for:</p><ul><li><strong>Financial Services (BFSI):</strong> Protecting payment data, transaction streams, and customer information while meeting strict regulatory and audit requirements.</li><li><strong>Healthcare:</strong> Processing patient records and healthcare data within controlled cloud environments to support privacy and compliance obligations.</li><li><strong>Manufacturing and Industrial IoT:</strong> Keeping operational telemetry, production data, and intellectual property inside enterprise cloud environments while supporting real-time analytics.</li><li><strong>Retail and eCommerce:</strong> Streaming customer, inventory, and order events without introducing unnecessary cross-cloud data movement.</li><li><strong>Government and Public Sector:</strong> Maintaining complete ownership of infrastructure and data to satisfy sovereignty and security requirements.</li></ul><p>Organizations pursuing multi-cloud or hybrid cloud strategies can also benefit from BYOC Kafka by aligning deployments with their existing cloud architecture instead of moving workloads into a provider-managed environment.</p><h3>When Vendor-Hosted Kafka May Be Enough</h3><p>Vendor-hosted Kafka remains a practical choice for many organizations, particularly when speed of adoption is the primary objective.</p><p>It may be suitable for:</p><ul><li>Proof-of-concept projects and pilot implementations.</li><li>Internal applications with limited compliance requirements.</li><li>Development and testing environments.</li><li>Small-scale streaming workloads where data sovereignty and network egress costs are not significant concerns.</li></ul><p>As streaming platforms evolve into business-critical infrastructure, however, enterprise priorities often shift toward long-term governance, infrastructure ownership, compliance, and cost optimization. At that stage, BYOC Kafka provides a deployment model that offers greater flexibility without sacrificing the operational advantages of managed Kafka.</p><p>Ultimately, the decision is not simply about where Kafka runs. It is about choosing a deployment model that aligns with your organization’s security policies, regulatory requirements, cloud strategy, and future growth. For enterprises building long-term, production-grade streaming platforms, BYOC Kafka provides a strong foundation for balancing operational efficiency with complete ownership of infrastructure and data.</p><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/byoc-kafka"><em>https://www.zeliot.in</em></a><em> on July 13, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c59f505bcc2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-Time Inventory Management with Kafka:How Retailers Are Eliminating Stockouts]]></title>
            <link>https://medium.com/@skamath/real-time-inventory-management-with-kafka-how-retailers-are-eliminating-stockouts-80191919d3e8?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/80191919d3e8</guid>
            <category><![CDATA[real-time-streaming-data]]></category>
            <category><![CDATA[stream-processing]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[condense]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 00:00:20 GMT</pubDate>
            <atom:updated>2026-07-22T09:34:01.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Retail inventory management has evolved far beyond tracking products on warehouse shelves. Today’s retailers operate across physical stores, eCommerce platforms, online marketplaces, distribution centers, and supplier networks, where inventory levels change continuously throughout the day. Every sale, return, warehouse transfer, supplier delivery, and inventory adjustment impacts product availability, making accurate inventory visibility essential for delivering a seamless customer experience.</p><p>However, many retailers still rely on scheduled synchronization between Point-of-Sale (POS) systems, Warehouse Management Systems (WMS), Enterprise Resource Planning (ERP) platforms, and online storefronts. While these systems perform different functions, they all depend on accurate inventory data. When updates occur only every few minutes, hourly, or overnight, each application gradually develops its own view of inventory, leading to inconsistent stock levels across the business.</p><p>This lack of synchronization creates operational challenges that extend beyond inventory accuracy. Customers may order products that are no longer available, store associates struggle to locate stock, replenishment teams react too late to changing demand, and forecasting models rely on outdated information. As retailers expand across multiple sales channels, traditional inventory synchronization becomes increasingly difficult to scale.</p><p>Apache Kafka addresses these challenges by enabling <strong>real-time inventory management</strong> through event streaming. Instead of periodically exchanging inventory data, every inventory movement is published as an event and shared immediately with the systems that need it. This event-driven approach keeps inventory synchronized across retail applications while enabling capabilities such as <strong>real-time stock tracking</strong>, proactive stockout detection, automated replenishment, and demand sensing.</p><p>In this guide, we’ll explore how retailers use <strong>Apache Kafka</strong> to build scalable, event-driven inventory platforms, examine a production-ready reference architecture, and discuss implementation best practices for reducing stockouts and improving inventory visibility across the supply chain.</p><h3>Why Traditional Inventory Management Creates Stockouts</h3><p>Retail inventory changes continuously. Every customer purchase, online order, return, warehouse transfer, supplier delivery, and inventory adjustment affects product availability. While these events happen in real time, many retail systems still exchange inventory data on a fixed schedule, creating a gap between actual inventory and what different applications believe is available.</p><p>As retailers expand across physical stores, eCommerce platforms, marketplaces, and fulfillment centers, this delay becomes increasingly difficult to manage. Inventory may be available in one system but unavailable in another, leading to inconsistent stock visibility, delayed replenishment, and dissatisfied customers.</p><h4>The Problem with Nightly Batch Inventory Synchronization</h4><p>For years, retailers relied on batch processing to synchronize inventory between operational systems. Scheduled jobs, file transfers, or periodic API calls updated inventory at fixed intervals, often every hour or overnight. While this approach reduced integration complexity, it also meant inventory data remained outdated until the next synchronization cycle.</p><p>A typical retail ecosystem includes several independent systems, each maintaining its own inventory records.</p><ul><li>Point-of-Sale (POS) systems</li><li>Warehouse Management Systems (WMS)</li><li>Enterprise Resource Planning (ERP) platforms</li><li>eCommerce applications</li><li>Supplier management systems</li><li>Mobile inventory applications</li></ul><p>Without continuous synchronization, these systems gradually develop different views of inventory throughout the day.</p><pre>| **Synchronization Method** | **Update Frequency** | **Business Impact** |<br>|----------------------------|----------------------|---------------------|<br>| **Nightly Batch Jobs** | Every 24 hours | Inventory remains outdated for most of the day. |<br>| **Hourly Synchronization** | Every 60 minutes | Delayed visibility into inventory changes. |<br>| **API Polling** | Every 5–30 minutes | Higher infrastructure overhead with stale data between polls. |<br>| **Event Streaming** | Continuous | Inventory is updated as business events occur. |</pre><p>Even a short synchronization delay can have a significant business impact. During promotional campaigns or peak shopping periods, inventory may change hundreds of times before the next scheduled update, increasing the risk of overselling and stockouts.</p><blockquote><em>Organizations moving away from scheduled synchronization often begin by replacing traditional ETL pipelines with streaming architectures. Learn how this transition works in our guide on </em><a href="https://www.zeliot.in/blog/streaming-etl-with-condense-a-faster-smarter-and-alternative-to-batch-processing"><strong><em>Streaming ETL with Condense: A Faster, Smarter Alternative to Batch Processing</em></strong><em>.</em></a></blockquote><h4>How Inventory Becomes Inconsistent Across Retail Systems</h4><p>Consider a retailer that starts the day with <strong>150 units</strong> of a product in stock.</p><p>During the day, customers purchase products in-store, online orders reserve inventory, and warehouses replenish stock. Each system records these activities independently, but until the next synchronization cycle, every application reports a different inventory value.</p><pre>| **Business Event** | **Actual Inventory** | **ERP** | **Online Store** | **POS** |<br>|--------------------|---------------------:|---------:|-----------------:|---------:|<br>| **Opening Inventory** | 150 | 150 | 150 | 150 |<br>| **12 Products Sold In-Store** | 138 | 150 | 150 | 138 |<br>| **8 Online Orders Placed** | 130 | 150 | 142 | 138 |<br>| **Warehouse Replenishment Received** | 170 | 150 | 142 | 138 |<br>| **Scheduled Synchronization** | 170 | 170 | 170 | 170 |</pre><p>For several hours, every system maintains a different inventory count. While the POS reflects recent sales, the ERP and online store continue operating with outdated information until synchronization completes.</p><p>This inconsistency creates several operational challenges.</p><ul><li>Customers purchase products that are no longer available.</li><li>Online channels display incorrect stock levels.</li><li>Replenishment teams respond too late to inventory changes.</li><li>Store associates struggle to locate available inventory.</li><li>Safety stock increases to compensate for poor inventory visibility.</li><li>Demand forecasting relies on outdated inventory data.</li></ul><p>As inventory volumes grow across multiple channels, these issues become increasingly difficult to solve using scheduled synchronization alone.</p><h3>How Apache Kafka Enables Real-Time Inventory Management</h3><p>Instead of synchronizing inventory databases at scheduled intervals, Apache Kafka enables retailers to process every inventory movement as an event the moment it occurs. Each business event-whether it’s a product sale, customer return, warehouse transfer, or supplier delivery-is published to Kafka and made available to every downstream application in real time.</p><p>This event-driven approach ensures that inventory changes are shared continuously rather than periodically. As new events arrive, systems such as ERP, WMS, eCommerce platforms, analytics applications, and mobile inventory tools consume the same stream independently, allowing them to maintain a consistent view of inventory without relying on frequent database synchronization.</p><p>Beyond improving inventory visibility, this architecture decouples producers and consumers. A POS system only needs to publish a sales event once, while multiple downstream services can consume and process that event according to their own business requirements. This simplifies system integration, reduces operational complexity, and allows retail applications to scale independently.</p><h4>Inventory Events That Drive Real-Time Stock Tracking</h4><p>An effective <strong>real-time inventory management</strong> system captures every business event that changes inventory availability. Rather than streaming only sales transactions, retailers continuously publish events from across the supply chain to build an accurate and up-to-date inventory state.</p><pre>| **Event Source** | **Inventory Event** | **Business Outcome** |<br>|------------------|---------------------|----------------------|<br>| **POS System** | Product sold | Reduce available inventory immediately |<br>| **eCommerce Platform** | Order placed or cancelled | Synchronize inventory across sales channels |<br>| **Warehouse Management System** | Inventory received, picked, packed, or transferred | Maintain warehouse inventory accuracy |<br>| **Supplier System** | Shipment dispatched or delivered | Track incoming inventory |<br>| **ERP** | Inventory adjustments and purchase orders | Keep enterprise inventory aligned |<br>| **Returns Management** | Product returned | Restore sellable inventory |<br>| **Smart Shelf Sensors** | Item removed or shelf replenished | Monitor physical inventory in real time |</pre><p>Together, these events create a continuous stream of inventory activity that reflects what is happening across the business at any given moment.</p><h4>From Business Events to a Unified Inventory View</h4><p>Unlike traditional integrations, where every application communicates directly with multiple systems, Apache Kafka acts as a central event backbone.</p><p>When a product is sold, the POS system publishes a sales event to Kafka. The Inventory Service consumes the event and updates the available stock. At the same time, the ERP, warehouse management system, eCommerce platform, analytics tools, and monitoring dashboards can independently consume the same event without requiring additional integrations.</p><p>This publish-and-subscribe model enables retailers to build loosely coupled systems that remain synchronized while reducing the complexity of maintaining dozens of point-to-point integrations.</p><p>By processing every inventory event as it occurs, retailers gain a near real-time view of stock availability across stores, warehouses, and online channels. This provides the foundation for capabilities such as real-time stock tracking, automated replenishment, demand sensing, and proactive stockout detection.</p><h3>Real-Time Inventory Management Architecture with Apache Kafka</h3><p>A production-ready inventory platform combines operational systems, IoT devices, event streaming, and stream processing to maintain a continuously updated view of inventory across the retail ecosystem.</p><p>Instead of synchronizing inventory databases, every inventory movement is published as an event and processed in real time. This ensures that all downstream applications receive the same information as soon as it becomes available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*55ZItARlf8UZFXW6.png" /></figure><p>Every system publishes only the events it owns. A POS system publishes completed sales, warehouse systems publish inventory movements, suppliers publish shipment updates, and smart shelf sensors report physical inventory changes. Kafka distributes these events to every downstream consumer, allowing each application to process the same inventory stream independently.</p><p>This architecture eliminates point-to-point integrations and provides a single event backbone for inventory operations.</p><h4>Using MQTT for Real-Time Shelf Monitoring</h4><p>While transactional systems capture sales and warehouse operations, they often don’t detect what happens on the store floor before a transaction occurs.</p><p>For example:</p><ul><li>A customer removes an item from a shelf.</li><li>A store associate replenishes inventory.</li><li>Products are moved to a different display.</li><li>Items are misplaced or damaged.</li><li>Shelf inventory reaches a critical threshold.</li></ul><p>These events are invisible to traditional inventory systems until a manual inventory count or a sales transaction updates the database.</p><p>Smart shelves equipped with RFID readers, weight sensors, barcode scanners, or computer vision systems can continuously publish these changes using MQTT. An MQTT source connector ingests these events into Kafka, making them immediately available to inventory services, ERP platforms, monitoring dashboards, and analytics applications.</p><blockquote><em>If you’re building IoT-driven streaming applications, our guide on </em><a href="https://www.zeliot.in/blog/iiot-data-source-connector-enabling-real-time-data-ingestion-and-transformation"><strong><em>IIoT Data Source Connector: Enabling Real-Time Data Ingestion and Transformation</em></strong></a><em> explores this integration in greater detail.</em></blockquote><p>For organizations building IoT-enabled retail solutions, MQTT connectors simplify the ingestion of real-time device data into streaming pipelines. Learn more about integrating industrial and IoT data sources in our guide to the <strong>IIoT Data Source Connector Enabling Real-Time Data Ingestion and Transformation</strong>.</p><h3>Simplifying Retail Inventory Pipelines with Condense</h3><p>Building the architecture above involves more than deploying an Apache Kafka cluster. Engineering teams must integrate data from retail applications, ingest IoT events, process inventory streams, monitor pipeline health, and ensure the platform scales reliably as transaction volumes grow.</p><p>Condense simplifies these operational challenges by providing a unified platform for building and managing real-time streaming applications. With fully managed Kafka, enterprise connectors, visual pipeline development, and built-in stream processing, teams can develop production-ready inventory pipelines without managing the underlying streaming infrastructure.</p><p>For retail inventory workloads, Condense enables teams to:</p><ul><li>Ingest events from POS systems, ERP platforms, warehouses, suppliers, databases, and MQTT-enabled devices.</li><li>Design and deploy inventory pipelines through a visual interface or code-based workflows.</li><li>Process inventory events using built-in transformations and stream processing capabilities.</li><li>Monitor pipeline health, throughput, and consumer performance from a centralized dashboard.</li><li>Deploy securely within their own cloud environment using a Bring Your Own Cloud (BYOC) model.</li></ul><p>By abstracting much of the operational complexity, Condense allows engineering teams to focus on building inventory applications instead of maintaining the streaming platform that powers them.</p><h3>Detecting Stockouts and Predicting Demand</h3><p>Real-time inventory management isn’t just about knowing how many products are available. The real value comes from continuously analyzing inventory events to detect potential stockouts, automate replenishment, and respond to changing customer demand before it impacts sales.</p><p>With Apache Kafka acting as the event backbone, retailers can correlate events from multiple systems as they occur, creating a live inventory view that reflects the current state of every product across stores, warehouses, and fulfillment centers.</p><h4>Correlating Inventory Events in Real Time</h4><p>A stockout rarely occurs because inventory suddenly reaches zero. More often, it happens because different systems have different views of inventory.</p><p>Consider a common retail scenario:</p><ol><li>A customer purchases the last two units of a product in a store.</li><li>The POS system immediately records the sale.</li><li>A warehouse has already dispatched replacement inventory.</li><li>The shipment is still in transit.</li><li>The ERP continues to show inventory as available because the latest warehouse update hasn’t been processed.</li></ol><p>Without a shared event stream, each system operates independently, making it difficult to determine the true inventory position.</p><p>By streaming these events through Apache Kafka, retailers can correlate sales, warehouse movements, supplier deliveries, and inventory updates as they occur. Instead of waiting for scheduled synchronization, every new event contributes to a continuously updated inventory state.</p><pre>| **Event Source** | **Event** | **Inventory Impact** |<br>|------------------|-----------|----------------------|<br>| **POS** | Product sold | Reduce available inventory |<br>| **Warehouse** | Shipment dispatched | Inventory replenishment in transit |<br>| **Store Receiving** | Shipment received | Increase available inventory |<br>| **Supplier** | Delivery confirmed | Update inbound inventory |<br>| **Shelf Sensor** | Shelf empty | Confirm physical stock depletion |</pre><p>This continuous event processing enables inventory services to maintain an accurate inventory position while ensuring every downstream application works with the same information.</p><h4>Real-Time Stock Tracking Across Retail Channels</h4><p>Modern inventory exists in multiple locations simultaneously. The same product may be available in a retail store, regional warehouse, fulfillment center, or online marketplace.</p><p>As inventory moves between these locations, every change needs to be reflected across all customer-facing and operational systems.</p><p>With an event-driven architecture, each inventory movement is published once and consumed by multiple applications independently. This enables:</p><ul><li>Consistent inventory visibility across physical and online channels.</li><li>Faster inventory updates for ERP, WMS, and eCommerce platforms.</li><li>Improved order allocation and fulfillment decisions.</li><li>Reduced risk of overselling.</li><li>Better inventory accuracy across the retail network.</li></ul><p>Instead of synchronizing databases throughout the day, retailers continuously update inventory as business events occur.</p><h4>Using Streaming Data for Demand Sensing</h4><p>Traditional forecasting models primarily rely on historical sales reports. While useful for long-term planning, they often fail to capture sudden changes in customer demand caused by promotions, seasonal events, regional trends, or unexpected buying patterns.</p><p>Streaming data provides a more dynamic approach.</p><p>As inventory events flow through Kafka, retailers can continuously evaluate metrics such as:</p><ul><li>Current sales velocity</li><li>Inventory depletion rate</li><li>Product return patterns</li><li>Warehouse replenishment frequency</li><li>Supplier lead times</li><li>Regional demand trends</li></ul><p>Rather than generating reports at the end of the day, these metrics are updated continuously, giving supply chain teams a real-time view of changing demand.</p><p>This allows retailers to identify fast-moving products earlier, prioritize replenishment, and make inventory decisions based on current business activity instead of historical snapshots.</p><h4>Enabling Automated Restocking</h4><p>Once inventory events are available as a continuous stream, retailers can automate replenishment based on predefined business rules.</p><p>For example, a stream processing application can evaluate conditions such as:</p><ul><li>Shelf inventory falls below the minimum threshold.</li><li>Sales velocity exceeds the expected rate.</li><li>Replacement inventory is available in a nearby warehouse.</li><li>Supplier lead times remain within acceptable limits.</li></ul><p>When these conditions are met, the application can automatically generate a restocking recommendation or notify store operations before customers encounter empty shelves.</p><p>By combining real-time stock tracking with continuous event processing, retailers shift from reacting to stockouts after they occur to preventing them altogether. This improves product availability, reduces lost sales, and enables more responsive inventory operations across the retail network.</p><h3>Best Practices for Building Real-Time Inventory Management Pipelines</h3><p>Building a real-time inventory management platform requires more than deploying Apache Kafka. Retailers need to ensure inventory events are accurate, ordered, scalable, and resilient as transaction volumes grow across stores, warehouses, suppliers, and online channels.</p><p>The following best practices help engineering teams build reliable inventory streaming applications while maintaining inventory consistency across the business.</p><h4>Design Events Around Business Activities</h4><p>Instead of publishing periodic inventory snapshots, publish business events that represent changes to inventory.</p><p>Examples include:</p><ul><li>Product Sold</li><li>Inventory Reserved</li><li>Inventory Released</li><li>Goods Received</li><li>Warehouse Transfer Completed</li><li>Customer Return Processed</li><li>Inventory Adjusted</li></ul><p>An event-driven model preserves the complete history of inventory changes, making it easier to replay events, audit inventory movement, and recover application state when needed.</p><h4>Organize Topics for Scalability</h4><p>Create dedicated Kafka topics for different inventory event types instead of combining unrelated events into a single stream.</p><p>A common topic strategy includes:</p><ul><li>sales-events</li><li>returns-events</li><li>warehouse-events</li><li>supplier-events</li><li>inventory-adjustments</li><li>shelf-events</li></ul><p>This separation simplifies event processing, improves scalability, and allows individual consumers to subscribe only to the events they require.</p><h4>Preserve Event Ordering</h4><p>Inventory updates for the same product should always be processed in sequence.</p><p>Partitioning topics using business identifiers such as <strong>SKU ID</strong>, <strong>Store ID</strong>, or <strong>Warehouse ID</strong> helps maintain event ordering while allowing the platform to scale horizontally.</p><p>Proper partitioning reduces the risk of inventory inconsistencies caused by out-of-order processing.</p><h3>Monitor Streaming Pipelines Continuously</h3><p>Operational visibility is essential for maintaining a healthy streaming platform.</p><p>Engineering teams should continuously monitor:</p><ul><li>Consumer lag</li><li>Processing latency</li><li>Event throughput</li><li>Failed messages</li><li>Topic storage utilization</li><li>Consumer availability</li></ul><p>Monitoring these metrics helps identify bottlenecks before they impact inventory accuracy or downstream applications.</p><h3>Secure and Validate Inventory Events</h3><p>Because inventory data directly influences purchasing, fulfillment, and replenishment decisions, every event should be validated before it updates inventory state.</p><p>Production deployments should also implement encryption, role-based access control, and schema validation to ensure inventory data remains secure and consistent across all connected systems.</p><h3>Implementation Checklist</h3><p>Before deploying a real-time inventory management platform, verify the following:</p><pre>| **Area** | **Recommendation** |<br>|----------|--------------------|<br>| **Event Design** | Publish business events instead of inventory snapshots. |<br>| **Topic Strategy** | Use dedicated topics for sales, returns, warehouse, supplier, and inventory events. |<br>| **Partitioning** | Partition by SKU, Store ID, or Warehouse ID to preserve event ordering. |<br>| **Schema Management** | Use versioned schemas to support application evolution. |<br>| **Consumer Scaling** | Scale consumer groups independently based on workload. |<br>| **Monitoring** | Track consumer lag, throughput, processing latency, and failed events. |<br>| **Security** | Encrypt data in transit and implement role-based access control. |<br>| **Resilience** | Configure replication, retries, and disaster recovery for high availability. |</pre><p>Following these practices helps retailers build scalable inventory streaming pipelines that maintain accurate inventory visibility while supporting millions of inventory events across distributed retail operations.</p><h3>Building Real-Time Inventory Applications with Condense</h3><p>Apache Kafka provides the event streaming foundation for real-time inventory management, but building a production application requires more than moving events between systems. Inventory events need to be transformed, enriched with business context, validated, routed to downstream applications, and monitored throughout their lifecycle.</p><p>Condense extends Apache Kafka with a unified application platform that enables engineering teams to build, deploy, and operate these event-driven applications without assembling multiple development and operational tools.</p><p>For a retail inventory use case, a typical application built on Condense can:</p><ul><li>Enrich POS events with product and store metadata before updating inventory.</li><li>Correlate sales, warehouse, supplier, and shelf events to maintain a real-time inventory state.</li><li>Trigger restocking workflows when inventory falls below predefined thresholds.</li><li>Route inventory updates to ERP, WMS, eCommerce platforms, analytics systems, and operational dashboards from a single processing pipeline.</li><li>Monitor application performance, processing latency, and event flow throughout the pipeline.</li></ul><p>By combining application development, stream processing, deployment, and operations in a single platform, Condense enables teams to focus on delivering business logic instead of integrating and maintaining multiple components across the streaming stack.</p><h3>Conclusion</h3><p>Modern retail depends on accurate and timely inventory information. As businesses expand across physical stores, eCommerce platforms, warehouses, and supplier networks, scheduled inventory synchronization can no longer keep pace with the volume and speed of inventory changes.</p><p>By adopting <strong>real-time inventory management</strong> with <strong>Apache Kafka</strong>, retailers can process inventory events as they occur, maintaining a consistent view of stock across every operational system. This event-driven approach supports real-time stock tracking, faster replenishment, proactive stockout detection, and demand sensing, enabling retailers to respond quickly to changing customer demand.</p><p>Building these applications requires more than a messaging platform. Teams need the ability to develop, deploy, operate, and scale event-driven applications that transform inventory events into business outcomes. Condense simplifies this process by providing a unified platform for building production-ready streaming applications on Apache Kafka, enabling retailers to accelerate development while maintaining the flexibility and scalability of an event-driven architecture.</p><h3>Frequently Asked Questions</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/guide-for-real-time-inventory-management-with-kafka"><em>https://www.zeliot.in</em></a><em> on July 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80191919d3e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Consumer Group Rebalancing: Causes and Fixes]]></title>
            <link>https://medium.com/@skamath/kafka-consumer-group-rebalancing-causes-and-fixes-cecc30254703?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/cecc30254703</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[realtime-data-streaming]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 00:00:03 GMT</pubDate>
            <atom:updated>2026-07-22T09:18:55.319Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fs3wOn69e50oWlxf" /></figure><p>Apache Kafka powers many of today’s real-time applications, from event-driven microservices and IoT platforms to financial systems and streaming analytics. Its ability to process large volumes of data with high throughput and low latency has made it a foundational technology for modern data architectures.</p><p>One of the key mechanisms that enables Kafka to remain scalable and fault tolerant is <strong>Kafka consumer group rebalancing</strong>. Whenever the membership of a consumer group changes or the partition layout of a topic is modified, Kafka automatically redistributes partitions across the available consumers. While this ensures an even distribution of work and improves resilience, it also introduces a temporary pause in message consumption while new assignments are calculated.</p><p>In production environments, frequent or poorly managed rebalances can increase <strong>Kafka consumer lag</strong>, reduce throughput, and impact the performance of downstream applications. Understanding why <strong>Kafka rebalancing</strong> occurs, how it works, and how to minimize its impact is essential for building stable, high-performance streaming systems.</p><p>In this guide, we’ll explore what a Kafka consumer group is, why <strong>Kafka consumer group rebalancing</strong> happens, the most common triggers, how incremental cooperative rebalancing introduced in Kafka 3.x improves upon the eager rebalancing approach, and the configuration settings and best practices that help reduce downtime in production.</p><h3>What Is a Kafka Consumer Group?</h3><p>A Kafka consumer group is a collection of consumer instances that work together to read messages from one or more Kafka topics. Instead of every consumer processing every message, Kafka distributes topic partitions across the consumers in a group, ensuring that each partition is assigned to only one consumer at a time. This enables applications to process data in parallel while maintaining the order of messages within each partition.</p><p>Consumer groups are the foundation of Kafka’s scalability and fault tolerance. As workloads grow, organizations can add more consumer instances to increase processing capacity. If a consumer becomes unavailable because of a crash or network failure, Kafka automatically redistributes its partitions to the remaining consumers, allowing event processing to continue with minimal disruption.</p><p>If you’re new to Kafka, it’s worth first understanding how topics, partitions, brokers, producers, and consumers work together before exploring consumer group rebalancing. You can learn more in our guide on <a href="https://www.zeliot.in/blog/what-is-apache-kafka"><strong>What Is Apache Kafka?</strong></a></p><h4>How Consumer Groups Process Messages</h4><p>Kafka topics are divided into partitions, which serve as the unit of parallelism. Each consumer in a consumer group is assigned one or more partitions depending on the number of available consumers and partitions.</p><p>For example, an <strong>Orders</strong> topic with eight partitions can be distributed across four consumers as shown below.</p><p>Orders Topic (8 Partitions)</p><pre>Consumer Group <br>  │——— Consumer A → P0, P1 <br>  │——— Consumer B → P2, P3 <br>  │——— Consumer C → P4, P5 <br>  │——— Consumer D → P6, P7 </pre><p>Each consumer reads messages only from its assigned partitions. This distribution allows multiple consumers to process events simultaneously without duplicating work, improving throughput and resource utilization.</p><h4>Why Consumer Groups Are Important</h4><p>Consumer groups provide several benefits that make Kafka suitable for building large-scale, event-driven applications.</p><h4>Horizontal Scalability</h4><p>Applications can scale by adding more consumer instances to the group. Kafka automatically redistributes partitions across the available consumers, allowing the workload to be processed in parallel.</p><h4>Fault Tolerance</h4><p>If a consumer stops sending heartbeats because of a failure or network interruption, Kafka detects the issue and reassigns its partitions to other active consumers. This automatic recovery helps applications continue processing events without manual intervention.</p><h4>Balanced Workload Distribution</h4><p>Kafka continuously balances partition assignments across consumers to ensure that processing is distributed as evenly as possible. This helps maximize resource utilization while preventing individual consumers from becoming overloaded.</p><p>These capabilities make consumer groups highly resilient and scalable. However, they also mean that partition assignments must be recalculated whenever the consumer group changes. This automatic redistribution of partitions is known as <strong>Kafka consumer group rebalancing</strong>, which we’ll explore in the next section.</p><h3>What Is Kafka Consumer Group Rebalancing?</h3><p>Kafka consumer group rebalancing is the process of redistributing topic partitions among consumers within a consumer group whenever the group’s membership or partition layout changes. It is an automatic mechanism that ensures partitions remain evenly distributed across active consumers while maintaining fault tolerance and efficient resource utilization.</p><p>During a rebalance, Kafka temporarily pauses message consumption for the affected consumer group. It identifies the active consumers, calculates a new partition assignment, revokes existing assignments where necessary, and redistributes partitions before allowing consumers to resume processing. Although this process typically completes within a few seconds, frequent rebalances can increase <strong>Kafka consumer lag</strong>, reduce throughput, and introduce latency into real-time applications.</p><p>Rebalancing is a normal and essential part of Kafka’s distributed architecture. Without it, Kafka would be unable to recover from consumer failures, accommodate new consumers, or rebalance workloads as applications scale.</p><h4>What Happens During a Rebalance?</h4><p>A Kafka consumer group rebalance follows a well-defined sequence of events.</p><ol><li>Kafka detects a change in the consumer group, such as a consumer joining, leaving, or becoming unavailable.</li><li>Consumers temporarily stop fetching new messages from their assigned partitions.</li><li>The group coordinator calculates a new partition assignment based on the active consumers and the configured partition assignment strategy.</li><li>Kafka distributes the updated assignments to each consumer in the group.</li><li>Consumers resume processing messages from their newly assigned partitions, continuing from the last committed offsets.</li></ol><p>The duration of a rebalance depends on factors such as the number of consumers, the number of partitions, application processing time, and the partition assignment strategy being used. In small deployments, the process is often completed in a matter of seconds. In large production environments with hundreds of consumers and thousands of partitions, rebalances can take longer and have a more noticeable impact on application performance.</p><h4>Why Rebalancing Is Necessary</h4><p>Kafka consumer groups are designed to adapt to changing workloads and infrastructure conditions. As applications scale, consumer instances may be added to increase processing capacity, removed during maintenance, or unexpectedly fail because of application or network issues. Kafka must continuously ensure that every partition has exactly one active consumer within the group while keeping the workload balanced across all available consumers.</p><p>This automatic redistribution of partitions enables Kafka to provide both horizontal scalability and fault tolerance. However, because message consumption briefly pauses during the reassignment process, understanding what triggers a rebalance and how to reduce unnecessary rebalances is essential for maintaining low-latency, high-throughput streaming applications.</p><h3>Why Does Kafka Rebalancing Happen?</h3><p>Kafka consumer group rebalancing is triggered whenever Kafka detects a change that affects how partitions should be distributed across consumers. These changes may be intentional, such as scaling an application by adding more consumers, or unexpected, such as a consumer failure. Regardless of the cause, Kafka automatically recalculates partition ownership to maintain an even workload while ensuring that every partition remains assigned to a single active consumer.</p><p>The following are the most common events that trigger <strong>Kafka consumer group rebalancing</strong>.</p><h4>A New Consumer Joins the Group</h4><p>Adding a new consumer is one of the most common causes of <strong>Kafka rebalancing</strong>. As applications scale to handle increasing event volumes, additional consumer instances are often deployed to improve processing capacity.</p><p>Suppose an <strong>Orders</strong> topic has eight partitions distributed across two consumers. When a third consumer joins the group, Kafka redistributes the partitions so that the workload is shared more evenly among all three consumers.</p><p>For example:</p><p><strong>Before the new consumer joins</strong></p><p>Consumer A → P0, P1, P2, P3 <br>Consumer B → P4, P5, P6, P7</p><p><strong>After rebalancing</strong></p><p>Consumer A → P0, P1, P2 <br>Consumer B → P3, P4, P5 <br>Consumer C → P6, P7</p><p>Although this improves load balancing and overall throughput, message consumption pauses briefly while Kafka calculates the new partition assignments.</p><h4>A Consumer Crashes or Disconnects</h4><p>Consumer failures are another common trigger for <strong>Kafka consumer group rebalancing</strong>. If a consumer crashes, loses network connectivity, or stops sending heartbeats within the configured timeout period, Kafka considers it unavailable.</p><p>The partitions owned by the failed consumer immediately become unassigned. Kafka then redistributes those partitions among the remaining active consumers so that event processing can continue.</p><p>This automatic failover is one of Kafka’s key reliability features, allowing applications to recover without manual intervention. However, every unexpected consumer failure also results in a rebalance, which can temporarily increase <strong>Kafka consumer lag</strong>.</p><h4>A Poll Timeout Occurs</h4><p>Kafka expects every consumer to invoke the poll() method at regular intervals. If a consumer spends too much time processing records and does not call poll() before the configured max.poll.interval.ms expires, Kafka assumes the consumer is no longer healthy.</p><p>The consumer is removed from the group, and its partitions are reassigned to other consumers through a rebalance. In production environments, this is one of the most common causes of unnecessary rebalances. In many cases, the consumer has not failed. It is simply processing large batches or executing long-running business logic that exceeds the configured polling interval.</p><h4>The Number of Topic Partitions Changes</h4><p>Increasing the number of partitions in a topic also triggers <strong>Kafka partition rebalancing</strong>. As applications scale, teams often add partitions to increase parallelism and improve throughput.</p><p>For example, if a topic grows from eight partitions to sixteen partitions, Kafka recalculates partition ownership so the newly created partitions are distributed across the existing consumers. While expanding partitions increases future processing capacity, it also initiates a rebalance to ensure that every partition is assigned appropriately.</p><p>Understanding these common triggers helps explain why rebalancing occurs even in healthy Kafka deployments. The next step is understanding how these rebalances affect application performance and why frequent rebalancing can become a significant operational challenge.</p><h3>Why Rebalancing Can Hurt Performance</h3><p>Kafka consumer group rebalancing is essential for maintaining scalability and fault tolerance, but it comes with a temporary cost. During a rebalance, affected consumers pause message consumption while Kafka recalculates partition assignments and distributes ownership across the consumer group. Although this pause is usually brief, frequent rebalances can significantly impact application performance in high-throughput environments.</p><p>For applications processing millions of events per minute, even a few seconds of downtime can create backlogs that take several minutes to recover from. This is why minimizing unnecessary <strong>Kafka rebalancing</strong> is a key operational objective for production systems.</p><h4>Consumer Lag Increases</h4><p>One of the first effects of a rebalance is an increase in <strong>Kafka consumer lag</strong>. Since consumers temporarily stop fetching new messages during the rebalance process, producers continue writing events to Kafka while consumption is paused. These unprocessed messages accumulate, increasing the difference between the latest available offset and the last committed consumer offset.</p><p>The longer the rebalance takes, the larger the backlog becomes. Although consumers begin processing again once the rebalance is complete, clearing the accumulated lag can take additional time depending on the application’s processing capacity.</p><h4>Throughput Drops</h4><p>During a rebalance, consumers are unable to process new messages until they receive their updated partition assignments. As a result, overall application throughput temporarily decreases, even though producers continue publishing events at the same rate.</p><p>In environments with frequent deployments or unstable consumer instances, repeated rebalances can reduce sustained throughput and make it difficult for applications to keep pace with incoming data.</p><h4>Processing Latency Increases</h4><p>Rebalancing also affects end-to-end processing latency. Messages remain in Kafka for longer before they are consumed, delaying downstream processing such as stream transformations, analytics, notifications, or database updates.</p><p>For applications that rely on near real-time event processing, including fraud detection, connected vehicle platforms, IoT monitoring, and financial systems, even short delays can impact business operations and user experience.</p><h4>Operational Overhead Increases</h4><p>Frequent rebalances often indicate underlying operational issues such as unstable consumer instances, improperly tuned timeout configurations, or inefficient message processing. Engineering teams may spend considerable time investigating recurring spikes in consumer lag, analyzing logs, and adjusting consumer configurations instead of focusing on application development.</p><p>Monitoring rebalance frequency alongside consumer lag and throughput provides valuable insight into the overall health and stability of a Kafka deployment.</p><p>Understanding these performance impacts highlights why reducing unnecessary rebalances is so important. Fortunately, modern versions of Kafka significantly improve this process through <strong>incremental cooperative rebalancing</strong>, which minimizes partition movement and reduces downtime compared to the traditional eager rebalancing approach.</p><h3>Eager Rebalancing vs. Incremental Cooperative Rebalancing</h3><p>The way Kafka performs consumer group rebalancing has evolved significantly over time. Earlier versions of Kafka relied on <strong>eager rebalancing</strong>, which redistributes all partitions whenever a rebalance is triggered. While effective, this approach forces every consumer in the group to pause processing, even if most partition assignments remain unchanged.</p><p>To reduce unnecessary disruption, Kafka 3.x introduced <strong>incremental cooperative rebalancing</strong>. Instead of revoking every partition, this approach moves only the partitions that actually need reassignment. Consumers whose assignments remain unchanged continue processing messages, resulting in shorter pauses and more stable applications.</p><h4>Eager Rebalancing</h4><p>With eager rebalancing, every consumer releases all of its assigned partitions before Kafka calculates a new distribution. Once the new assignments are determined, each consumer receives its updated partitions and resumes processing.</p><p>Although this approach guarantees a balanced partition assignment, it also causes a complete pause in message consumption across the consumer group. For large deployments, this can increase <strong>Kafka consumer lag</strong>, reduce throughput, and delay downstream processing.</p><p>If you’re building production-grade stream processing applications, our guide on <a href="https://www.zeliot.in/blog/build-stateful-event-driven-applications-with-kafka-streams-on-condense"><strong>Building Stateful Event-Driven Applications with Kafka Streams on Condense</strong> </a>explores how Kafka Streams manages state and why operational stability matters.</p><h4>Incremental Cooperative Rebalancing</h4><p>Incremental cooperative rebalancing minimizes disruption by moving only the partitions that require reassignment. Consumers that are not affected by the rebalance continue processing their existing partitions without interruption.</p><p>For example, if a new consumer joins a group, Kafka transfers only the partitions needed to balance the workload instead of redistributing every partition. This significantly reduces processing pauses and helps maintain more consistent application performance. Because fewer partitions are reassigned during each rebalance, cooperative rebalancing is particularly beneficial for large consumer groups processing high volumes of real-time events.</p><h4>Key Differences</h4><pre>| **Feature** | **Eager Rebalancing** | **Incremental Cooperative Rebalancing** |<br>|-------------|------------------------|------------------------------------------|<br>| **Partition Reassignment** | All partitions are revoked and reassigned | Only affected partitions are reassigned |<br>| **Consumer Interruption** | All consumers pause processing | Only affected consumers experience a pause |<br>| **Consumer Lag** | Higher during rebalances | Significantly lower |<br>| **Throughput Impact** | Greater temporary reduction | Minimal impact |<br>| **Recommended for Production** | Legacy deployments | Kafka 3.x and later |</pre><h4>Which Approach Should You Use?</h4><p>For modern Kafka deployments, <strong>incremental cooperative rebalancing</strong> is the recommended approach. By reducing unnecessary partition movement and allowing unaffected consumers to continue processing, it minimizes downtime, lowers <strong>Kafka consumer lag</strong>, and improves overall application stability.</p><p>Organizations running Kafka 3.x or later should enable cooperative rebalancing where supported by their client libraries to achieve more predictable performance, particularly in environments with frequent deployments, autoscaling, or dynamic consumer groups.</p><h3>Tuning Kafka to Reduce Rebalances</h3><p>While some rebalances are unavoidable, many unnecessary <strong>Kafka consumer group rebalancing</strong> events can be prevented through proper consumer configuration. Kafka provides several settings that determine how quickly consumer failures are detected and how long a consumer can remain inactive before being removed from the group.</p><p>Finding the right balance is important. Aggressive timeout values can trigger unnecessary rebalances because of temporary delays or network interruptions, while overly relaxed settings can delay failure detection and slow application recovery.</p><p>The following configuration properties have the greatest impact on rebalance frequency and consumer stability.</p><h4>&gt; max.poll.interval.ms</h4><p>The max.poll.interval.ms configuration specifies the maximum amount of time a consumer is allowed to spend between successive poll() calls. If this interval is exceeded, Kafka assumes the consumer is no longer responsive and removes it from the consumer group, triggering a rebalance.</p><p>This situation commonly occurs when consumers perform time-consuming operations such as complex business logic, large batch processing, or calls to external services before invoking poll() again. For workloads with longer processing times, increasing max.poll.interval.ms can help prevent unnecessary rebalances. However, simply increasing the value should not replace optimizing slow application logic or reducing processing time.</p><h4>&gt; session.timeout.ms</h4><p>The session.timeout.ms setting determines how long Kafka waits to receive heartbeats from a consumer before considering it unavailable.</p><p>A shorter timeout allows Kafka to detect failed consumers more quickly, reducing recovery time after genuine failures. However, it also makes the consumer group more sensitive to temporary network interruptions or short application pauses, potentially increasing unnecessary rebalances. A longer timeout provides greater tolerance for transient issues but delays the reassignment of partitions when a consumer actually fails. Selecting an appropriate value depends on the reliability of the application, network, and infrastructure.</p><h4>&gt; heartbeat.interval.ms</h4><p>Consumers periodically send heartbeats to the group coordinator to confirm that they are still active. The frequency of these heartbeats is controlled by heartbeat.interval.ms.</p><p>Sending heartbeats more frequently allows Kafka to detect failures sooner but slightly increases network traffic. Longer heartbeat intervals reduce network overhead but slow failure detection. As a general guideline, the heartbeat interval is typically configured to be approximately one-third of the session timeout, providing a balance between responsiveness and operational stability.</p><h3>Best Practices for Configuration Tuning</h3><p>Although every deployment has different performance requirements, the following practices help reduce unnecessary <strong>Kafka rebalancing</strong> in most production environments.</p><ul><li>Keep message processing predictable and avoid long-running operations between poll() calls.</li><li>Tune timeout values based on application behavior rather than relying solely on default settings.</li><li>Monitor consumer lag alongside rebalance frequency to identify recurring stability issues.</li><li>Load test configuration changes before deploying them to production.</li><li>Review timeout configurations whenever consumer workloads or infrastructure change significantly.</li></ul><p>Properly tuning these configuration properties helps minimize avoidable rebalances, maintain consistent throughput, and improve the overall stability of Kafka consumer groups. Even with well-tuned consumers, occasional rebalances are inevitable, making it important to understand their impact on application performance, which we’ll explore through a real production example in the next section.</p><h3>Example For Consumer Lag During Rebalancing</h3><p>To understand the operational impact of <strong>Kafka consumer group rebalancing</strong>, consider a payment processing application that consumes transactions from a Kafka topic using six consumer instances. Under normal operating conditions, the application processes messages continuously with low consumer lag and stable throughput.</p><p>Now assume one of the consumer instances unexpectedly crashes. Kafka detects the missing consumer after the configured timeout expires and initiates a rebalance to redistribute its partitions among the remaining consumers. During this process, message consumption temporarily pauses while new partition assignments are calculated.</p><p>Although producers continue publishing events, consumers are briefly unable to fetch new messages. As a result, <strong>Kafka consumer lag</strong> increases, throughput drops, and processing latency rises until the rebalance completes and the remaining consumers resume processing.</p><p>The following example illustrates how key metrics change during the rebalance process.</p><pre>| **Metric** | **Before Rebalance** | **During Rebalance** | **After Recovery** |<br>|------------|----------------------|----------------------|--------------------|<br>| **Active Consumers** | 6 | 5 (rebalancing in progress) | 5 |<br>| **Consumer Lag** | 150 messages | 48,000 messages | Gradually returns to normal |<br>| **Processing Throughput** | 120,000 messages/sec | Near zero | Returns to normal |<br>| **Average Processing Latency** | 80 ms | Increases significantly | Returns to normal |</pre><p>This example demonstrates that rebalancing is a temporary event rather than a system failure. Once Kafka completes the partition reassignment, consumers automatically resume processing from their last committed offsets, and the backlog is gradually cleared.</p><p>However, in environments where rebalances occur frequently because of unstable consumers, poorly tuned timeout configurations, or repeated deployments, applications may spend more time recovering than processing data efficiently. Reducing unnecessary <strong>Kafka rebalancing</strong> is therefore essential for maintaining predictable throughput, minimizing consumer lag, and ensuring reliable real-time event processing.</p><h3>Best Practices to Reduce Kafka Consumer Lag During Rebalancing</h3><p>While Kafka consumer group rebalancing is a normal part of operating distributed applications, its impact can be significantly reduced through good application design and operational practices. The following recommendations help minimize unnecessary rebalances, reduce <strong>Kafka consumer lag</strong>, and maintain consistent application performance.</p><h4>Keep Consumer Processing Predictable</h4><p>Long-running or unpredictable processing increases the likelihood of consumers exceeding the configured polling interval. Keep message processing as lightweight as possible, and offload time-intensive tasks to asynchronous workflows when appropriate. Predictable processing times help consumers remain active within the group and reduce unnecessary rebalances.</p><h4>Tune Consumer Timeout Settings Carefully</h4><p>Configuration properties such as max.poll.interval.ms, session.timeout.ms, and heartbeat.interval.ms should be tuned based on your application’s workload and infrastructure. Settings that are too aggressive may trigger avoidable rebalances, while overly relaxed values can delay the detection of genuine consumer failures.</p><h4>Use Incremental Cooperative Rebalancing</h4><p>If you’re running Kafka 3.x or later, use incremental cooperative rebalancing whenever it’s supported by your client library. By moving only the partitions that require reassignment, this approach reduces processing interruptions and minimizes the impact of <strong>Kafka partition rebalancing</strong> on production workloads.</p><h4>Monitor Consumer Lag and Rebalance Events</h4><p>Consumer lag should never be monitored in isolation. Track rebalance frequency alongside lag, throughput, and processing latency to identify patterns that indicate unstable consumers or poorly tuned configurations. Proactive monitoring makes it easier to detect issues before they affect production systems. In practice, engineering teams should monitor rebalance frequency alongside consumer lag, throughput, and partition health rather than relying on lag alone. Our guide on <a href="https://www.zeliot.in/blog/kafka-observability-making-streaming-pipelines-transparent"><strong>Kafka Observability: Making Streaming Pipelines Transparent</strong></a> explains the key metrics, dashboards, and monitoring strategies for operating Kafka workloads in production.</p><h4>Scale Consumer Groups Gradually</h4><p>Adding multiple consumers simultaneously can trigger repeated rebalances as Kafka continuously recalculates partition assignments. When scaling applications, increase the number of consumers gradually to give the consumer group time to stabilize between changes.</p><h4>Increase Partition Counts Only When Necessary</h4><p>Adding partitions improves parallelism, but it also triggers a rebalance. Plan partition expansion carefully based on expected throughput and future growth rather than making frequent incremental changes that can disrupt running applications.</p><p>Following these best practices helps maintain stable consumer groups, reduce operational overhead, and improve the performance of real-time streaming applications. However, as Kafka deployments scale, operating consumer groups becomes increasingly challenging. Engineering teams need continuous visibility into consumer activity, partition assignments, committed offsets, and consumer lag to quickly understand why a rebalance occurred and how it impacts application performance.</p><p>Although Kafka provides the tools needed to manage consumer groups, investigating production issues often involves switching between command-line utilities, monitoring dashboards, and application logs. Condense simplifies this operational workflow by bringing Kafka management, consumer group monitoring, and stream processing into a unified platform.</p><h3>How Condense Simplifies Kafka Consumer Group Management</h3><p>After a <strong>Kafka consumer group rebalancing</strong> event, operators typically need to answer several questions before they can identify the root cause. Which consumer stopped processing messages? Which partitions accumulated lag? Were offsets committed successfully? Was the rebalance triggered by a consumer failure, a poll timeout, or a planned scaling event?</p><p>Condense centralizes this operational information within its <strong>Kafka Management</strong> console, allowing engineering teams to monitor consumer groups, investigate lag, and troubleshoot rebalances without relying on multiple administrative tools.</p><h4>Monitor Consumer Group Health in Real Time</h4><p>The <strong>Consumer Groups</strong> dashboard provides a centralized view of every consumer group running within the Kafka cluster. At a glance, operators can monitor:</p><ul><li>Consumer Group ID</li><li>Number of subscribed topics</li><li>Active consumers</li><li>Consumer group status</li><li>Total consumer lag</li></ul><p>This consolidated view makes it easier to identify inactive consumers, detect growing consumer lag, and prioritize workloads that require immediate attention.</p><h4>Analyze Consumer Lag at the Partition Level</h4><p>When consumer lag increases, identifying the affected partitions is often the first step in troubleshooting. Condense enables operators to drill down into individual consumer groups and inspect partition-level details, including:</p><ul><li>Topic name</li><li>Partition ID</li><li>First available offset</li><li>Latest offset</li><li>Committed offset</li><li>Current lag</li></ul><p>These insights help determine whether lag is isolated to a small number of partitions or affecting the entire consumer group following a rebalance.</p><h4>Investigate Rebalances More Efficiently</h4><p>Recurring rebalances are not always caused by infrastructure failures. Long-running message processing, inactive consumers, timeout misconfigurations, or application deployments can all trigger partition reassignment.</p><p>By bringing together consumer activity, offset information, partition assignments, and lag metrics within a single operational view, Condense enables engineering teams to investigate the cause of a rebalance more quickly and reduce the time spent troubleshooting production issues.</p><h4>Manage Kafka Operations from a Unified Interface</h4><p>Routine operational tasks such as inspecting consumer groups, reviewing partition assignments, monitoring lag, and validating consumer activity can all be performed from the Kafka Management console. Instead of manually correlating information from multiple Kafka tools, operators can access the information needed to understand the health of their streaming applications through a single interface.</p><h4>Focus on Building Streaming Applications</h4><p>Operating Kafka in production extends beyond consumer group management. Condense combines managed Kafka, stream processing, application development, deployment, and operational observability within a unified platform, enabling engineering teams to build, deploy, operate, and scale event-driven applications without the complexity of fragmented tooling.</p><h3>Conclusion</h3><p>Kafka consumer group rebalancing is a fundamental mechanism that enables Apache Kafka to scale consumer workloads and recover automatically from failures. By redistributing partitions whenever consumer group membership or partition assignments change, Kafka ensures that event processing remains balanced and fault tolerant across distributed applications.</p><p>However, frequent or unnecessary rebalances can temporarily pause message consumption, increase <strong>Kafka consumer lag</strong>, reduce throughput, and impact the performance of downstream systems. Understanding the most common triggers, adopting incremental cooperative rebalancing, and carefully tuning consumer configurations such as max.poll.interval.ms, session.timeout.ms, and heartbeat.interval.ms can significantly improve the stability of production workloads.</p><p>As Kafka deployments grow, operational visibility becomes just as important as configuration tuning. Monitoring consumer groups, tracking partition-level lag, and quickly identifying the root cause of rebalances help engineering teams maintain reliable, high-performance streaming applications. Platforms such as Condense simplify these operational workflows by providing integrated Kafka management, consumer group monitoring, and stream processing capabilities within a unified platform.</p><p>Whether you’re building event-driven microservices, real-time analytics pipelines, or IoT applications, understanding <strong>Kafka consumer group rebalancing</strong> is essential for designing resilient, scalable, and low-latency streaming systems.</p><h3>Frequently Asked Questions</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/kafka-consumer-group-rebalancing-causes-and-fixes"><em>https://www.zeliot.in</em></a><em> on July 6, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cecc30254703" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Condense Optimizes Kafka Performance at High Throughput]]></title>
            <link>https://medium.com/@skamath/how-condense-optimizes-kafka-performance-at-high-throughput-36616bd46296?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/36616bd46296</guid>
            <category><![CDATA[stream-processing]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 00:00:15 GMT</pubDate>
            <atom:updated>2026-07-22T09:11:42.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-zIqPYVc41jSueD9" /></figure><p>Apache Kafka is designed to process massive volumes of streaming data with exceptional throughput. Yet, many production deployments begin experiencing consumer lag, rising infrastructure costs, and unpredictable latency long before Kafka brokers reach their resource limits. The assumption is often that Kafka needs more brokers, more partitions, or more aggressive tuning. In reality, the bottleneck is rarely Kafka itself.</p><p>As streaming applications evolve, a single business event typically flows through multiple independent services for validation, enrichment, transformation, routing, filtering, and downstream integration. Every stage introduces another producer-consumer cycle, another serialization and deserialization operation, another network transfer, another broker write, and another replication event. Individually, these operations appear inexpensive. At hundreds of thousands or millions of events per second, they collectively consume significant CPU, storage I/O, and network bandwidth while increasing operational complexity across the platform.</p><p>The challenge is therefore architectural rather than infrastructural. Kafka continues to perform exactly as designed, but the surrounding streaming ecosystem gradually becomes the limiting factor. Simply scaling brokers or increasing partition counts often shifts the bottleneck elsewhere instead of eliminating it.</p><p>Condense addresses this challenge by optimizing the streaming architecture around Kafka. Built on a Kafka-native foundation, Condense combines fully managed Kafka with integrated stream processing, transformations, intelligent routing, workload management, and operational automation within a unified platform. Instead of repeatedly moving events between independent services, related processing stages execute within the same streaming pipeline, reducing unnecessary data movement, minimizing intermediate topics, and lowering infrastructure overhead while preserving Kafka’s durability and scalability.</p><p>This article explores the architectural bottlenecks that limit Kafka performance at high throughput and explains how Condense overcomes them through unified stream execution, intelligent workload optimization, automated operations, and Kafka-native design principles.</p><h3>Why Do Traditional Kafka Architectures Lose Throughput at Scale?</h3><p>Apache Kafka is designed to handle massive event volumes, but production architectures often introduce inefficiencies that have little to do with Kafka itself. As streaming applications evolve, organizations naturally decompose business logic into multiple services responsible for validation, transformation, enrichment, routing, filtering, analytics, and downstream integrations. While this improves modularity, it also increases the amount of work required to process every event.</p><p>A typical event flow often looks like this:</p><pre>Device <br>     ↓<br>Kafka Topic <br>     ↓<br>Validation Service <br>     ↓<br>Kafka Topic <br>     ↓<br>Transformation Service <br>     ↓<br>Kafka Topic <br>     ↓<br>Routing Service <br>     ↓<br>Kafka Topic <br>     │ <br>     │→ Dashboard <br>     │→ Data Lake <br>     │→ Alert Engine</pre><p>Although only a single business event was generated, it is written to Kafka multiple times, replicated across brokers after every write, transmitted across the network repeatedly, and serialized and deserialized by every processing service. As throughput increases, these repeated operations consume an increasing share of CPU, storage I/O, network bandwidth, and memory.</p><p>The cost of this architecture is cumulative rather than isolated. Each additional processing stage introduces another producer, another consumer group, another Kafka topic, another deployment, and another operational dependency. At a few thousand events per second these overheads are barely noticeable. At hundreds of thousands of events per second, they become one of the primary reasons streaming platforms experience rising consumer lag, higher infrastructure costs, and inconsistent latency.</p><p>Another challenge is the growth of intermediate topics. Many Kafka deployments accumulate hundreds or even thousands of topics that exist solely to exchange partially processed events between services. Every topic requires partitions, replication, retention policies, access control, monitoring, and controller metadata. As the number of topics and partitions grows, brokers spend more time managing metadata, replica synchronization, and partition leadership while engineering teams spend more time operating the platform.</p><p>The result is a streaming architecture that spends a significant portion of its resources moving events between services instead of processing business logic. Kafka continues to operate efficiently, but the surrounding architecture gradually becomes the limiting factor.</p><p>This is precisely the problem Condense addresses. Rather than requiring every processing stage to communicate through intermediate Kafka topics, Condense executes validation, transformation, enrichment, routing, and protocol conversion within a unified streaming pipeline. Events remain within the processing workflow until they are ready for downstream consumption, reducing unnecessary producer-consumer cycles, minimizing intermediate topics, lowering broker I/O, and significantly simplifying operational complexity.</p><h3>Why Doesn’t Adding More Partitions Always Improve Kafka Throughput?</h3><p>Partitioning is the foundation of Kafka’s horizontal scalability. By distributing data across multiple partitions, Kafka allows producers and consumers to process events in parallel, increasing overall throughput. However, partition count is not a performance metric. Beyond a certain point, adding more partitions introduces operational overhead that can outweigh the benefits of additional parallelism.</p><p>Every partition consumes broker resources. It maintains its own metadata, log segments, replica state, leader election process, file handles, and network connections. As partition counts increase, brokers spend more time managing metadata, replica synchronization, and controller operations, while consumers require larger group coordination and more frequent rebalancing during scaling events.</p><p>Parallelism is also limited by the application itself. A consumer group can process only as many partitions concurrently as it has active consumer threads. For example, if a workload is served by 32 consumer threads, increasing a topic from 32 to 256 partitions does not make processing eight times faster. Instead, it increases cluster metadata, partition management overhead, and recovery time during broker or consumer failures without providing proportional throughput improvements.</p><p>Partition distribution introduces another challenge. Kafka routes messages to partitions based on the selected partition key. If event distribution is uneven, a small number of partitions may receive a disproportionate share of traffic. Consider a connected mobility platform where one large fleet generates significantly more telemetry than thousands of smaller fleets. If all events for that fleet are routed to the same partition, the broker hosting its leader replica becomes a localized bottleneck while other brokers remain comparatively underutilized. This imbalance often results in higher producer latency, growing consumer lag, and uneven resource utilization across the cluster.</p><p>High-throughput Kafka deployments therefore require more than increasing partition counts. They require balanced partition strategies, efficient consumer parallelism, and continuous workload distribution to ensure that processing capacity scales with business traffic rather than simply increasing cluster complexity.</p><p>Condense addresses this by continuously monitoring partition activity, detecting workload imbalance, and optimizing workload distribution across the cluster. Instead of relying solely on static partitioning strategies, the platform minimizes the operational impact of partition hotspots while allowing Kafka to maintain predictable throughput under continuously changing workloads.</p><h3>How Do Broker I/O and Page Cache Affect Kafka Throughput?</h3><p>One of Kafka’s biggest performance advantages is that it avoids writing every message directly to disk. Instead, incoming records are appended sequentially to the operating system’s page cache, allowing the OS to manage disk flushing efficiently. Sequential writes, combined with the operating system’s caching strategy, enable Kafka to sustain exceptionally high write throughput while keeping JVM memory utilization relatively low.</p><p>This architecture performs extremely well under normal operating conditions. However, as ingestion rates continue to increase, the limiting factor gradually shifts from CPU to storage and network I/O.</p><h4>Sustained Ingestion Increases Storage Pressure</h4><p>During continuous high-volume ingestion, Kafka brokers append data to the operating system’s page cache faster than it can be flushed to persistent storage. As the page cache fills, the operating system begins writing larger volumes of data to disk. At this stage, the throughput of the underlying storage subsystem, including available IOPS, disk bandwidth, and latency, becomes the primary constraint.</p><p>If storage cannot sustain the incoming write rate, producers experience higher acknowledgement latency, replication slows down, and overall ingestion throughput begins to decline. In many production environments, storage performance becomes the bottleneck long before broker CPU utilization reaches its limits.</p><h4>Consumer Lag Increases Read Amplification</h4><p>Page cache efficiency also depends on how quickly consumers process data.</p><p>When consumers remain close to the head of the log, most read operations are served directly from memory, resulting in consistently low latency. However, if consumer lag grows because of slow downstream applications, expensive transformations, or overloaded databases, recently written data is gradually displaced from memory.</p><p>Once data is evicted from the page cache, brokers must retrieve records from disk instead of memory. These additional disk reads compete with ongoing write operations, increasing storage contention and reducing the amount of I/O available for new incoming events. The result is higher tail latency, growing consumer lag, and lower sustained throughput across the cluster.</p><h4>Why Optimizing Data Movement Matters</h4><p>Adding faster disks or increasing broker capacity can postpone these bottlenecks, but it does not eliminate them. The most effective way to reduce storage pressure is to reduce the amount of unnecessary work performed by the platform.</p><p>Condense minimizes broker I/O by reducing intermediate producer-consumer cycles, consolidating multiple processing stages into unified streaming pipelines, and avoiding unnecessary writes to intermediate Kafka topics. Fewer intermediate writes result in lower disk activity, reduced replication traffic, and more efficient utilization of the operating system’s page cache. Instead of consuming storage bandwidth moving partially processed events between services, available I/O is dedicated to processing business events, allowing Kafka brokers to sustain higher throughput under demanding production workloads.</p><h3>How Does Replication Impact Kafka Performance at High Throughput?</h3><p>Replication is one of Kafka’s defining capabilities, ensuring that data remains available even when brokers fail. Every partition has a leader replica responsible for handling client requests and one or more follower replicas that continuously replicate the leader’s log. When producers use acks=all, a write is acknowledged only after all required in-sync replicas (ISRs) have successfully replicated the record, providing the highest level of durability.</p><p>This durability comes with an architectural trade-off.</p><p>Every record written by a producer must also be transferred across the network, persisted by follower brokers, and tracked as part of the ISR state. As throughput increases, replication traffic grows proportionally with client traffic, placing additional demand on network bandwidth, storage throughput, and broker resources. Under sustained workloads, brokers are no longer processing only producer requests. They are simultaneously handling replication, replica synchronization, leader coordination, and client reads.</p><p>The challenge becomes more pronounced when a follower broker cannot keep pace with the leader. Storage latency, network congestion, or temporary resource contention may cause a follower to fall behind the replication stream. Once this happens, the ISR set changes, triggering additional coordination between brokers. For producers configured with acks=all, these conditions can increase acknowledgement latency and reduce overall write throughput until replica synchronization stabilizes.</p><p>Kafka provides several configuration parameters to optimize replication behaviour, including replica fetcher parallelism and replication throttling. While these settings improve replication efficiency, they also require careful tuning. Increasing replica fetcher threads can improve parallel data transfer between brokers, but excessive parallelism may introduce additional CPU scheduling overhead and higher resource contention. Finding the optimal balance often depends on workload characteristics, partition counts, and available infrastructure.</p><p>Condense reduces the operational complexity of managing replication at scale by continuously monitoring broker health, replication performance, and workload distribution across the cluster. The platform dynamically optimizes replication behaviour, manages broker scaling, and minimizes unnecessary broker I/O created by intermediate processing stages. By reducing write amplification and lowering overall infrastructure overhead, replication resources remain focused on maintaining durability rather than repeatedly synchronizing transient processing data.</p><p>The result is a more resilient Kafka architecture that maintains strong durability guarantees while sustaining high-throughput workloads with greater operational stability.</p><h3>Why Does Backpressure Become a Critical Bottleneck in High-Throughput Kafka Pipelines?</h3><p>High-throughput streaming systems rarely process data at a perfectly constant rate. Producers may generate bursts of millions of events within seconds, while downstream applications such as databases, analytics engines, REST APIs, or machine learning models process events at varying speeds. The challenge is not simply ingesting data quickly. It is ensuring that every stage of the pipeline can continue processing data at approximately the same rate.</p><p>When downstream systems begin processing events more slowly than producers generate them, backpressure propagates upstream through the entire streaming architecture.</p><pre>Event Producers<br>     ↓<br>Kafka<br>     ↓<br>Stream Processing <br>     ↓<br>Database / AI / Analytics <br>     ↓<br>Consumer Lag <br>     ↑<br>Backpressure Propagates </pre><p>The first visible symptom is usually increasing consumer lag. Consumers continue reading from Kafka, but processing delays caused by database contention, network latency, external API calls, or compute-intensive transformations prevent them from keeping pace with incoming traffic. As lag increases, brokers retain more unread data, placing additional pressure on storage and the operating system’s page cache.</p><p>Eventually, older data is evicted from memory and brokers must serve more requests directly from disk. Read and write operations begin competing for the same storage resources, increasing latency for both producers and consumers. If the imbalance continues, producer acknowledgements become slower, replication falls behind, and throughput across the entire platform begins to decline. What initially appears to be a slow downstream application gradually becomes a platform-wide performance issue.</p><p>Simply adding more brokers or consumer instances does not always resolve this condition. If the downstream bottleneck remains unchanged, additional infrastructure often shifts the congestion rather than eliminating it. Sustainable throughput depends on maintaining a balanced flow of data across every stage of the streaming pipeline.</p><p>Condense addresses this challenge by continuously monitoring workload behaviour across producers, brokers, consumers, and downstream integrations. Instead of allowing bottlenecks to propagate unchecked, the platform applies intelligent workload management, automated scaling, and stream-aware processing to keep data flowing efficiently through the pipeline. By reducing unnecessary producer-consumer cycles, minimizing intermediate processing stages, and continuously optimizing workload distribution, Condense helps prevent localized slowdowns from cascading into system-wide throughput degradation.</p><p>Backpressure is therefore not simply a consumer problem. It is an architectural signal indicating that one part of the streaming platform is consuming resources faster than another can process them. High-throughput systems remain stable not because they eliminate backpressure entirely, but because they detect, absorb, and manage it before it impacts the rest of the streaming architecture.</p><h3>How Condense Restructures Streaming Pipelines</h3><p>Condense does not try to rewrite Kafka. Instead, it embeds Kafka into a managed platform that changes how you build pipelines. We can break down Condense’s approach by functionality:</p><h4>Unified Pipeline Execution (vs. Service Chaining)</h4><p>Condense replaces multiple discrete microservices with a single streaming pipeline that flows through a series of transforms. Rather than:</p><p>CSS</p><pre>Topic A → Service 1 → Topic B → Service 2 → Topic C → Service 3 → ...  </pre><p>A Condense pipeline might ingest Topic A and apply “Validate → Decode → Enrich → Route” as stages within the platform before writing out final results. In practical terms, this means fewer Kafka hops and topics. You don’t materialize every intermediate step as its own Kafka topic — it all happens in-memory within the pipeline until you explicitly sink results. As Condense documentation puts it, the platform “consolidates the tools required for streaming workflows into a unified platform” with a built-in IDE, connectors, and custom pipelines.</p><p>The benefits are immediate: each event avoids repeated producer/consumer overhead. It only leaves Kafka when necessary (e.g., final output or a durable result). This cuts broker write amplification. Instead of 5 writes for one event, you might only write it once. It also slashes serialization: the payload is converted to bytes once, then flows through validations and enrichments in native objects, instead of being reserialized for each step. Serialization costs are notoriously nontrivial, often requiring highly optimized formats just to keep CPU usage manageable. Condense simply eliminates many of those cycles altogether.</p><p><strong>A Note on Fault Tolerance:</strong> By processing in-memory, you might wonder what happens if a node crashes mid-flight. Condense mitigates this by leveraging Kafka’s native offset management and transactional APIs to guarantee at-least-once or exactly-once processing semantics. This ensures complete data durability despite skipping intermediate topics.</p><p>By consolidating stages, Condense also eliminates a lot of operational overhead. You no longer maintain separate consumer groups, deployment pipelines, or autoscaling policies for each microservice. Instead, you define one Condense pipeline (with branches if needed) and the platform runs it. As the Condense docs state: “Condense automates the management of backend services (Kafka, Kubernetes, etc.) and provides dynamic scaling”, so your teams spend less time on Kafka ops and more on logic.</p><h4>Topic and Partition Optimization</h4><p>Because Condense does not rely on throwing intermediate results into new topics, it drastically reduces topic count. Instead of dozens of topics per feature, you might have just the raw input topic, one processed topic, and a few sinks. This eliminates enormous metadata overhead on the Kafka controller. Every topic/partition adds to the cluster’s metadata load; with fewer topics, the cluster’s CPU and controller spend less time on bookkeeping. In practice, a Condense deployment might have orders of magnitude fewer topics than a comparable microservice chain.</p><p>Condense also actively manages partitions. Traditional Kafka requires you to pick partition counts up-front. Condense, running on Kubernetes, can adjust partitions or brokers as needed behind the scenes. More importantly, Condense monitors each partition’s load in real time. It can detect “hot” partitions from skewed key distributions by looking at per-partition message and byte rates. If one partition is saturated, Condense will automatically rebalance leadership: since leaders are just metadata assignments, it can move the leader role to another broker without moving data on disk. Controlled leader migration moves leadership in milliseconds, and Condense uses this approach to spread load seamlessly. The end result is that no single broker stays hot for long-load is dynamically smoothed across the cluster.</p><h4>Automated Scaling and Resource Forecasting</h4><p>In a self-managed Kafka cluster, scaling is reactive: you add brokers or increase instance size only after metrics spike. Condense flips this model. It continuously profiles system resources (broker CPU, network I/O, disk throughput, JVM thread usage) and ingested data rates. For example, Condense tracks how close network interfaces are to their bandwidth limit and how many IOPS are left on the storage volume. Rather than waiting for a broker to overload, Condense can predict when a sustained load increase is imminent and provision capacity in advance.</p><p>Technically, Condense runs Kafka on Kubernetes, so adding brokers or scaling them can be automated. Crucially, Condense avoids the typical Kafka-scale pitfall: chaotic rebalance. Normally, adding a broker triggers a wholesale partition re-assignment, spiking network and disk load. Condense instead performs throttled, step-wise migration. It incrementally moves partition data (at a controlled rate) so that ingestion latency stays low. This is possible because Condense has a software control plane that can sequence these operations, granting horizontal scaling with no more tail latency than before.</p><h4>Intelligent Replication and I/O Management</h4><p>Condense also tunes the replication layer. Under bursty writes, it can automatically adjust replication quotas so that internal follower fetches don’t starve producers. It may boost or lower parameters like replication.quota.window.num dynamically to implement dynamic replication throttling. Likewise, Condense monitors how many fetcher threads are active (num.replica.fetchers) and can increase this setting if needed to boost the degree of I/O parallelism on follower brokers, improving how fast replicas catch up.</p><p>Furthermore, Condense separates broker I/O paths. In Kubernetes, it mounts Kafka logs on dedicated storage volumes or uses separate I/O channels so that sequential appends aren’t delayed by snapshotting or consumer reads. In effect, Condense provides an I/O-isolated environment where OS logs live elsewhere, and Kafka disks are tuned solely for throughput.</p><p>Combined, these measures reduce replication-induced stalls. Even if a follower temporarily falls behind, Condense can keep the pipeline running by momentarily throttling producers (rather than letting them overwhelm the cluster). In normal Kafka, you’d hit producer timeouts; in Condense, it triggers built-in quota management.</p><h4>Backpressure Control</h4><p>A signature Condense capability is distributed backpressure management. Rather than letting Kafka brokers fill up when consumers back up, Condense actively propagates a throttle signal upstream. It monitors consumer lag velocity (how quickly the lag is growing) and the broker’s cache pressure. If lag grows too fast, Condense will throttle producers by adjusting client quotas, causing producers to receive slightly slower acks. This backpressures the clients in milliseconds, matching production rate to consumption capacity.</p><p>This is analogous to TCP flow control: if one end slows, the other gets signaled to hold off. Without this coordinated backpressure, upstream buffers inevitably fill up until the system runs out of memory and crashes-a common failure mode documented across the streaming ecosystem. Condense mitigates this scenario entirely through intelligent throttling, avoiding the “burst-until-crash” paradigm completely.</p><h4>Summary of Architectures</h4><p>The impact of all these optimizations is best seen in a comparative architecture:</p><p>In the traditional flow, each arrow to Kafka incurs a full producer/consumer cycle. In the Condense flow, Kafka is still the durable backbone, but multiple processing stages run inside one streaming application.</p><pre>| **Metric** | **Self-Managed Kafka (est.)** | **Condense Platform (est.)** |<br>|------------|-------------------------------|------------------------------|<br>| **Broker CPU Overhead** | High (~25–30% extra) due to multiple consumers deserializing/serializing each event | Much lower (~5–10%) with a single pipeline that avoids redundant serialization |<br>| **Network Traffic** | High, as events traverse the network at each hop along with replication traffic | Lower, as events remain local to the pipeline until the final sink with fewer Kafka hops |<br>| **Broker I/O (Writes)** | High, since every intermediate stage performs a log write and replication write | Lower, with only final results (and required sinks) written to Kafka |<br>| **Topic/Partition Count** | Many, typically dozens to hundreds of intermediate topics | Minimal, usually only input and output topics |<br>| **Message Serialization Cycles** | Many, with a serialization/deserialization cycle for every producer-consumer pair | Few, typically one serialization on ingest and one for final outputs if needed |<br>| **Operational Overhead** | High, requiring manual scaling, partition rebalancing, and monitoring of multiple components | Lower, with autoscaling for Kafka and Kubernetes, plus centralized monitoring and governance |</pre><p><em>Table 1: Estimated comparison of a typical high-throughput pipeline. “Est.” numbers are illustrative. Condense’s pipeline-centric design drastically cuts broker I/O and serialization waste, while its managed Kafka (BYOC) handles scaling and failover.</em></p><h4>A High-Throughput Reference Pipeline (Mobility/IoT Example)</h4><p>Consider a connected vehicle telemetry use case, similar to the case studies from Infarsight/Bosch. Vehicles stream position data at high volume. A mission-critical pipeline must validate, decode, enrich with metadata, compute trips, apply geofences, and detect alerts, then send data to dashboards, ML models, and long-term storage. Using traditional Kafka and microservices, this might require 4–6 services each writing to Kafka topics (as above). In one reported Condense deployment, a major OEM replaced an IBM Event Streams (self-managed Kafka) setup with Condense. The new pipeline achieved 1 GB/s peak (350 MB/s continuous) throughput on similar hardware, with a single Condense cluster serving all functions-whereas the old system hit bottlenecks and needed multiple clusters.</p><p>In that Condense pipeline, data flows as follows (abstracted):</p><pre>Vehicles → Kafka (raw telemetry) → [Condense Pipeline: validate, decode, enrich, compute, route] → Outputs (Elasticsearch, Snowflake, Live Dashboard, Alerts)</pre><p>Notice no intermediate Kafka topics. The Condense pipeline applies all transforms, and only the final enriched data is written out (or sent to connectors). Because Condense runs on Kubernetes with fully managed Kafka, the platform dynamically adjusted to traffic spikes. The case study reports this ran with 99.95% uptime. (Condense’s own docs also tout a 99.95% SLA for its managed Kafka service.)</p><h3>Best Practices for Sustained Throughput</h3><p>Building on Condense’s architecture, these principles help maximize real throughput:</p><ul><li><strong>Minimize data movement: </strong>Keep each event in-flight as long as possible. Condense pipelines exemplify this by avoiding unnecessary Kafka hops.</li><li><strong>Avoid excess topics/partitions:</strong> Design pipelines so you only create topics where needed. More topics mean more controller CPU and potential rebalances.</li><li><strong>Tune serialization:</strong> Use compact binary formats like Avro or Protobuf. Condense further reduces these cycles inherently.</li><li><strong>Monitor hot partitions:</strong> Continuously check partition-level metrics. Rehash keys or reassign leadership when skew appears.</li><li><strong>Balance stateful workloads:</strong> If some streams do expensive joins/aggregations, separate them into their own pipeline so they don’t block lightweight telemetry processing.</li><li><strong>Right-size hardware:</strong> Ensure sufficient disk IOPS and network bandwidth. Remember Kafka is disk-and-net bound. Use SSDs or high-throughput cloud disks.</li><li><strong>Leverage autoscaling:</strong> Use Condense’s autoscaling (or an equivalent solution) to adapt to load. Predictive scaling avoids sudden overshoot in resource provisioning, ensuring infrastructure costs scale linearly with actual data volume rather than spiking during transient traffic surges.</li></ul><p>Kafka is a high-performance engine, but only if the entire pipeline around it is efficient. Simply adding brokers won’t fix a bloated architecture. Instead, Condense shifts where the effort goes: it automates Kafka operations and collapses multi-hop streaming logic into internal pipelines. As a result, the cluster spends most CPU and I/O on the <em>first</em> and <em>last</em> writes of an event, not on countless in-between copies.</p><p>In practice, many teams see measurable gains: fewer servers, lower latency, and orders-of-magnitude less manual tuning. One Condense customer reporting a 6× reduction in cloud costs and a 99.95% uptime target with massive throughput (from ~350 MB/s sustained on standard Kafka to over 1 GB/s peak on Condense). While the exact numbers vary by workload, the architectural difference is clear: Condense transfers performance optimization from Kafka’s knobs into smarter pipeline orchestration, letting engineers focus on data logic instead of endless scaling puzzles.</p><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/condense-high-throughput-kafka"><em>https://www.zeliot.in</em></a><em> on July 3, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36616bd46296" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Streaming Data Platforms: Why Businesses Must Go Beyond Batch Processing]]></title>
            <link>https://medium.com/@skamath/the-rise-of-streaming-data-platforms-why-businesses-must-go-beyond-batch-processing-01873a3f64a6?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/01873a3f64a6</guid>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[batch-processing]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[realtime-data-streaming]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 00:00:20 GMT</pubDate>
            <atom:updated>2026-07-22T07:55:52.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*0ovmpja4IhBmbqVj" /></figure><p>Every digital interaction produces data. A customer completes a payment, a connected vehicle reports its location, a manufacturing sensor detects vibration, and an application logs a transaction. These events occur every second, generating a continuous stream of information across the business. Yet many organizations still rely on batch pipelines that collect, store, and process data on a fixed schedule.</p><p>That approach worked when analytics primarily supported reporting and historical analysis. Today’s applications have different requirements. Fraud detection, fleet tracking, predictive maintenance, personalized customer experiences, and AI-powered applications all depend on data being processed as soon as it is generated. Waiting minutes or hours for the next batch job can delay decisions and reduce the value of the data.</p><p>The challenge is no longer collecting data. It’s processing and acting on it while it is still relevant.</p><p>Streaming data platforms solve this by processing events as they arrive instead of waiting for scheduled batch windows. Applications can consume, process, and respond to data in real time, enabling faster decisions, improved operational visibility, automated actions, and the real-time foundation that modern AI, IoT, mobility, and digital services depend on.</p><h3>Why Is Batch Processing Becoming a Limitation for Modern Enterprises?</h3><p>Batch processing is still the right tool for workloads where completeness matters more than speed: financial reconciliation, regulatory reporting, historical trend analysis, payroll, data warehouse loading. These hold up fine on a schedule.</p><p>The limitation shows up when the value of information depends on how fast you can act on it. Take a customer making several suspicious transactions. If fraud detection runs every six hours, the fraud may already be complete by the time the system catches it. Or a logistics platform updating vehicle locations once an hour instead of every few seconds, at that point route optimization stops being useful.</p><p>It’s not that batch processing is technically inadequate. It’s that more business processes now run in continuous time rather than scheduled intervals.</p><p><strong>Not every workload requires real-time processing. </strong>Learn how to identify when batch processing is sufficient and when event streaming becomes the better choice in blog <a href="https://www.zeliot.in/blog/from-batch-data-to-real-time-streams-when-to-switch-and-why-it-matters">When to Stop Using Batch Processing (Signs Your Team Has Outgrown It)</a></p><p>A typical batch pipeline looks like this:</p><p>Data Source → Collect Events → Store Events → Scheduled Processing → Analytics → Business Decision</p><p>Between data generation and the decision, there’s unavoidable latency, anywhere from minutes to hours depending on the schedule. For historical reporting that’s fine. For operational systems, it gets expensive:</p><pre>| **Business Function** | **Impact of Batch Processing** |<br>|-----------------------|--------------------------------|<br>| **Fraud Detection** | Suspicious transactions identified too late |<br>| **Fleet Operations** | Vehicles keep running on outdated routes |<br>| **Network Operations** | Service issues found only after customers notice |<br>| **E-commerce** | Recommendations based on stale behavior |<br>| **Manufacturing** | Equipment failures caught after production loss |</pre><p>As more operations move online, these delays translate directly into lost revenue, lower efficiency, and slower response to customers.</p><h4>What Changes When Data Is Processed as a Stream?</h4><p>Streaming platforms treat each business event as its own unit of work. Instead of waiting for thousands of records to pile up, an event gets processed the moment it’s generated.</p><p>Event Source → Streaming Platform → Analytics → AI Models → Operational Dashboards → Business Applications → Persistent Storage</p><p>Instead of moving data between isolated systems on a schedule, events flow through the platform continuously, ingestion, transformation, enrichment, monitoring, and decision-making all happen as data arrives rather than after the fact.</p><p>The result isn’t just faster analytics. It opens up application architectures where software reacts to events immediately: a payment authorization can trigger fraud scoring instantly, a connected vehicle can update fleet visibility in real time, a manufacturing sensor can kick off predictive maintenance on its own, a customer interaction can update personalization within seconds. Each event becomes a chance to act, not something to wait on until the next processing cycle.</p><h3>Why Are Streaming Data Platforms Becoming the Foundation for AI Applications?</h3><p>AI depends heavily on context. A model recommending something based on yesterday’s data often performs noticeably worse than one working off events from a few seconds ago.</p><p>This matters more as enterprises move toward agent-based systems, where multiple AI components collaborate on a task and need to stay synchronized. A customer service platform, for instance, might pull from interaction history, product availability, payment status, fraud detection, a recommendation engine, and CRM updates all at once. If each of these systems only exchanges information through hourly batch jobs, every component ends up working off slightly different data, and that inconsistency shows up in decision quality.</p><p>Streaming platforms fix this by giving every application a shared stream of continuously updated events. Instead of polling a database for changes, applications subscribe to events as they happen.</p><pre>| **AI Requirement** | **Streaming Capability** |<br>|--------------------|--------------------------|<br>| **Continuous Context** | Live event propagation |<br>| **Immediate Model Inputs** | Event-driven inference |<br>| **Multiple AI Services** | Shared event streams |<br>| **Operational Automation** | Event-triggered workflows |<br>| **Low-Latency Decisions** | Continuous processing |</pre><p>Industry analysts increasingly point to real-time streaming as a foundational requirement for operational AI, since continuously updated context is what actually makes intelligent applications responsive. Streaming doesn’t replace the AI model. It supplies the constantly refreshed information the model needs to do its job.</p><h4>How Does Event Streaming Improve Operational Intelligence?</h4><p>Operational intelligence is a different question from traditional business intelligence. BI answers things like what happened last month, which product generated the most revenue, which regions sold best. Operational intelligence asks what’s happening right now, what needs attention immediately, which system needs intervention in the next few seconds.</p><p>Streaming platforms make that possible by processing events continuously rather than retrospectively. Take a telecom provider: network equipment is constantly generating metrics, packet loss, signal strength, congestion, device health, resource utilization. A batch architecture might collect these every thirty minutes. A streaming architecture evaluates them as they come in, which enables faster anomaly detection, dynamic traffic balancing, automated incident response, live network visibility, and continuous optimization.</p><p>The same principle shows up across industries: manufacturing systems watching production equipment, retail platforms tracking inventory, financial institutions monitoring payments, mobility platforms tracking vehicle telemetry. In every case, the goal is the same, shrink the time between an event happening and a response to it.</p><h4>How Does Streaming Data Reduce Decision Latency Across Business Operations?</h4><p>Decision latency is the time between an event occurring and the business actually responding to it, which is different from data latency, how quickly the data itself becomes available.</p><p>Take a customer placing an online order. That single event can trigger payment authorization, inventory validation, warehouse allocation, shipping estimation, customer notification, recommendation updates, and loyalty point calculation. In a traditional setup, each of these systems processes its update independently through scheduled jobs, so the customer eventually gets accurate information, just with delay stacked on delay.</p><p>With event streaming, all of these systems subscribe to the same event stream. The moment the order is created, every downstream application receives it at the same time and does its part independently, without needing to poll a database for updates. That cuts end-to-end processing time significantly.</p><h3>What Is the Difference Between Batch Processing and Streaming Data Platforms?</h3><p>Both process data, but they’re built for different problems.</p><pre>| **Capability** | **Batch Processing** | **Streaming Data Platform** |<br>|----------------|----------------------|-----------------------------|<br>| **Processing Model** | Scheduled execution | Continuous event processing |<br>| **Latency** | Minutes to hours | Milliseconds to seconds |<br>| **Data Flow** | Periodic | Continuous |<br>| **Processing Trigger** | Time schedule | Business event |<br>| **Typical Workloads** | Reporting, ETL, historical analytics | Operational systems, AI, IoT, real-time analytics |<br>| **Decision Speed** | Delayed | Immediate |<br>| **Infrastructure Pattern** | Sequential jobs | Event-driven pipelines |</pre><p>Neither replaces the other. A mature enterprise data platform usually runs both side by side:</p><pre>| **Streaming Workloads** | **Batch Workloads** |<br>|-------------------------|---------------------|<br>| Fraud detection | Financial reconciliation |<br>| Fleet tracking | Monthly reporting |<br>| Customer notifications | Regulatory compliance reports |<br>| Dynamic pricing | Historical analytics |<br>| Predictive maintenance | Data warehouse aggregation |<br>| IoT monitoring | Long-term archival |</pre><p>The better question isn’t whether streaming should replace batch. It’s which workloads actually benefit from continuous processing. If cutting latency from several hours to a few minutes already delivers enough business value, micro-batching is probably the more practical choice. If decisions need to happen within seconds or milliseconds, streaming is the right call.</p><h4>Which Enterprise Workloads Benefit Most from Streaming Platforms?</h4><p>Streaming pays off most where business events need immediate visibility or automated action.</p><p><strong>Telecommunications:</strong> Networks generate millions of operational events a minute, utilization, device registration, signal degradation, service quality, fault notifications. Streaming lets operators catch anomalies as they happen, automate traffic balancing, and resolve degradation before customers notice.</p><p><strong>Connected mobility:</strong> Vehicles continuously transmit GPS location, diagnostics, driver behavior, fuel consumption, battery health, and engine status. Processing this in real time is what makes fleet visibility, predictive maintenance, geofencing, and driver alerts actually useful. Batch processing would gut the value of this data.</p><p><strong>Manufacturing:</strong> Industrial sensors stream continuously, and streaming analytics is what lets manufacturers catch abnormal vibration, monitor production quality, predict equipment failures, and reduce downtime. Maintenance teams act on information immediately instead of waiting on a periodic report.</p><p><strong>Financial services:</strong> Banks and payment providers run on low-latency decisions. Streaming supports fraud detection, transaction monitoring, credit risk evaluation, regulatory tracking, and customer activity monitoring, and it lets risk engines evaluate a transaction before authorization instead of after settlement.</p><p><strong>Retail and digital commerce:</strong> Every customer interaction is an event that can shape the next one in real time, live inventory updates, personalized recommendations, dynamic pricing, cart recovery, and engagement all depend on this.</p><h3>Why Is Apache Kafka Widely Used for Event Streaming?</h3><p>Kafka has become the backbone of most enterprise streaming architectures because it offers durable, distributed event storage with high throughput and the ability to scale horizontally.</p><p>Kafka’s core idea is the event log. Instead of applications messaging each other directly, producers publish events to Kafka topics, and consumers subscribe to those topics independently.</p><p>Producers → Kafka Topics → Analytics, AI, Applications (consumed independently)</p><p>This decouples applications from each other, they exchange information through shared event streams instead of direct connections. That gives you independent scaling of producers and consumers, reliable event persistence, fault-tolerant processing, event replay, horizontal scalability, and support for many downstream consumers at once. Kafka handles the event backbone, while stream processing frameworks like Apache Flink or Kafka Streams handle the transformations, aggregations, filtering, and enrichment on top of it. <br>If you’re new to event streaming, understanding <strong>what Apache Kafka is and why it has become the de facto standard for real-time data pipelines</strong> provides valuable context before exploring enterprise streaming architectures.Learn more about Kafka <a href="https://www.zeliot.in/blog/what-is-apache-kafka?utm_source=chatgpt.com">What Is Apache Kafka? Plain-English Guide for Engineers (2026)</a></p><h3>What Challenges Do Organizations Face When Adopting Streaming Platforms?</h3><p>The benefits are real, but adopting streaming brings new operational responsibilities.</p><p><strong>Managing distributed infrastructure:</strong> Running Kafka clusters means capacity planning, broker provisioning, topic management, replication monitoring, upgrades, security configuration, and disaster recovery. At scale, managing the infrastructure can end up taking more effort than building the applications on top of it.</p><p><strong>Integrating legacy systems:</strong> Most enterprises run a mix of relational databases, ERPs, CRMs, data warehouses, cloud apps, and proprietary software, and streaming adoption rarely starts on a clean slate. Getting these systems connected usually means change data capture (CDC), database connectors, API integrations, event adapters, or enterprise messaging systems. The migrations that work best introduce streaming alongside what’s already there rather than replacing everything at once.</p><p><strong>Building streaming expertise:</strong> Streaming introduces concepts that are unfamiliar to teams used to request-response architectures, event ordering, partitioning, consumer groups, stateful stream processing, windowing, exactly-once semantics, event replay. Building real expertise in distributed systems takes time and hands-on experience, which is why many organizations turn to managed streaming platforms to take the infrastructure burden off engineering teams so they can focus on the applications themselves.</p><h4>Why Are Managed Streaming Platforms Becoming the Preferred Enterprise Approach?</h4><p>Building a streaming platform is a lot more than deploying Kafka. Enterprise deployments also need cluster lifecycle management, security and authentication, monitoring, schema management, connectors, stream processing, deployment automation, governance, and multi-environment support. Managing all of this as separate pieces tends to produce fragmented, hard-to-maintain workflows.</p><p>Managed streaming platforms absorb most of that complexity, giving teams a single integrated platform for infrastructure, development, deployment, and monitoring, so engineers spend their time building event-driven applications instead of operating distributed infrastructure.</p><h3>How Can Organizations Transition from Batch Processing to Streaming Without Rebuilding Everything?</h3><p>A common misconception is that streaming adoption means replacing every existing pipeline. In practice, organizations that do this well move incrementally, introducing real-time capability only where latency actually affects business outcomes.</p><p>Batch processing is still the right fit for financial reporting, regulatory compliance, historical analytics, and periodic data sync, replacing these usually adds complexity without adding much value. A better approach is identifying the specific workflows where reducing latency genuinely improves operations or customer experience.</p><pre>| **Assessment Area** | **Questions to Ask** | **Recommended Approach** |<br>|---------------------|----------------------|--------------------------|<br>| **Business Impact** | Does faster processing improve outcomes? | Prioritize high-value use cases |<br>| **Latency Requirements** | Are decisions needed in seconds or hours? | Choose streaming only where necessary |<br>| **Data Sources** | Are events generated continuously? | Connect event-producing systems first |<br>| **Existing Infrastructure** | Can current systems publish events? | Introduce streaming alongside what exists |<br>| **Operational Readiness** | Does the team know distributed systems? | Start with managed streaming services |</pre><p>Rather than ripping out batch pipelines, organizations build an event backbone that connects operational systems while letting existing reporting and analytics keep running. A phased transition lowers risk and gives teams time to build real expertise before scaling streaming across the business.</p><h3>What Does a Modern Streaming Architecture Look Like?</h3><p>Modern streaming platforms act as the central event distribution layer for the enterprise. Instead of applications integrating with each other directly, events get published once and consumed by however many downstream services need them.</p><p>IoT Devices + Enterprise Applications → Event Streaming Platform → Stream Processing, AI/ML Services, <br> Operational Applications, Dashboards, <br> Data Lake/Warehouse</p><p>This architecture gives you loose coupling, since new consumers can subscribe to existing streams without touching upstream systems. It gives you independent scaling for producers and consumers, fault tolerance since events stay durably stored and downstream services can recover without losing data, replayability so historical events can rebuild state or retrain models, and operational visibility since every event flowing through the platform is observable.</p><h4>Why Do Managed Streaming Platforms Reduce Operational Complexity?</h4><p>Running Kafka at enterprise scale is a lot more than deploying brokers. Teams end up responsible for provisioning, capacity planning, security, topic lifecycle management, upgrades, monitoring, disaster recovery, multi-environment deployment, and connector management. As event volume grows, this operational load often outweighs the effort of building the streaming applications themselves.</p><p>Managed platforms absorb most of this, giving teams one integrated system instead of a stack of separate open-source components.</p><pre>| **Capability** | **Self-Managed Streaming** | **Managed Streaming Platform** |<br>|----------------|----------------------------|--------------------------------|<br>| **Kafka Operations** | Manual | Managed |<br>| **Cluster Upgrades** | Manual planning | Platform managed |<br>| **Monitoring** | Separate tooling | Integrated observability |<br>| **Security** | Individual configuration | Centralized management |<br>| **Connectors** | Independently deployed | Built-in ecosystem |<br>| **Application Deployment** | Multiple tools | Unified experience |</pre><p>The point isn’t to replace Kafka, it’s to take the operational weight off engineering teams so they can focus on building, not maintaining infrastructure.</p><h3>How Does Condense Simplify Enterprise Event Streaming?</h3><p>Condense is a managed event streaming platform from Zeliot that combines managed Apache Kafka with the tools needed to build, deploy, and run event-driven applications, without requiring teams to assemble and manage each piece separately.</p><p>A few of its core capabilities: fully managed Kafka, where Condense handles cluster provisioning, upgrades, monitoring, and maintenance so teams can adopt Kafka without owning the infrastructure; an integrated stream development environment for building transformations and business logic without juggling multiple external tools; prebuilt connectors for the databases, cloud services, messaging systems, IoT devices, and enterprise applications most environments already run; visual pipeline management, so teams can monitor and adjust data flows from a central interface while still keeping the flexibility to write custom processing logic where it’s needed; and deployment flexibility, supporting both a fully managed model and Bring Your Own Cloud (BYOC) for organizations with data residency, security, or governance requirements.</p><p>By combining infrastructure management with application development in one platform, Condense lets engineering teams spend their time on real-time business applications instead of keeping streaming infrastructure running.</p><h3>What Best Practices Should Organizations Follow When Building Streaming Applications?</h3><p>A streaming initiative succeeds or fails as much on architecture and governance as on the technology choice.</p><p><strong>Start with business outcomes:</strong> Identify where latency genuinely affects operations, fraud detection, predictive maintenance, fleet monitoring, customer engagement, rather than adopting streaming just because it’s available.</p><p><strong>Design around events:</strong> Applications should publish meaningful business events, Order Created, Vehicle Location Updated, Payment Authorized, instead of relying on tightly coupled service integrations. Clear event contracts make the system easier to scale and evolve.</p><p><strong>Plan for observability:</strong> Streaming systems need ongoing monitoring of throughput, processing latency, consumer lag, and connector health, so teams can catch bottlenecks before they hit production.</p><p><strong>Build for scalability:</strong> Event volumes tend to grow as more applications, customers, and devices come online, so partitioning and topic design should account for future load, not just today’s.</p><p><strong>Combine streaming with batch:</strong> They solve different problems. A solid enterprise architecture uses streaming for operational intelligence and real-time applications while keeping batch for reporting, governance, and historical analytics. Matching the right model to each workload beats forcing everything through one approach.</p><h3>Conclusion</h3><p>The move from batch to streaming is driven by changing business requirements, not a passing trend. Organizations increasingly need applications that respond to events as they happen, whether that’s catching fraud, optimizing a network, monitoring industrial equipment, or personalizing a customer experience.</p><p>Batch processing still has a clear role in historical reporting and scheduled analytics. But workloads that depend on continuous visibility and immediate action need a different architecture.</p><p>Streaming data platforms deliver that by processing events in real time, cutting decision latency, and giving operational intelligence and AI systems a shared, current foundation to work from. As adoption grows, the focus is also shifting away from managing streaming infrastructure and toward building applications faster. Platforms like Condense make that shift easier by bringing managed Kafka, integrated development, connectors, observability, and deployment flexibility into one place, so engineering teams spend less time running infrastructure and more time building event-driven applications that actually move the business forward.</p><h3>Frequently Asked Questions (FAQs)</h3><p><em>Originally published at </em><a href="https://www.zeliot.in/blog/streaming-data-platforms-beyond-batch-processing"><em>https://www.zeliot.in</em></a><em> on July 1, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01873a3f64a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Built a Website Assistant on Vapr and Deployed It on Condense]]></title>
            <link>https://medium.com/zeliot/how-we-built-a-website-assistant-on-vapr-and-deployed-it-on-condense-3d50c126d10a?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d50c126d10a</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[condense]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 00:00:17 GMT</pubDate>
            <atom:updated>2026-07-02T11:25:22.680Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiMDik34Gl81nzS_ZR5LWA.png" /></figure><h3>TL;DR</h3><p>We built an AI assistant that lives on zeliot.in and handles everything for a first-time visitor or an active user might need. Ask about Condense or Vapr, book a meeting, read a blog, download an eBook, or sign up to try Condense. It queries Zeliot’s website and documentation in real time, maintains conversation context across turns, and can take actions directly inside the chat. Orchestration runs on Vapr, and the entire stack is deployed on Condense on Zeliot’s own cloud. This post walks through the architecture and the decisions that shaped it.</p><h3>Wireframes of the Website Agent</h3><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.figma.com%2Fboard%2FgOLRG8dTQhqHBlMZesnEWl%2FWebsite-Embed%3Fnode-id%3D1795-239%26t%3DwatG3YzPJPrsOH1c-1&amp;type=text%2Fhtml&amp;schema=figma&amp;display_name=Figma&amp;src=https%3A%2F%2Fwww.figma.com%2Fembed%3Fembed_host%3Dcdn.embedly.com%26embed_origin%3Dcdn.embedly.com%26url%3Dhttps%3A%2F%2Fwww.figma.com%2Fboard%2FgOLRG8dTQhqHBlMZesnEWl%2FWebsite-Embed%3Fnode-id%3D1795-239%26t%3DwatG3YzPJPrsOH1c-1" width="800" height="450" frameborder="0" scrolling="no"><a href="https://medium.com/media/24c83891f85733957bb9db0b4b31aca5/href">https://medium.com/media/24c83891f85733957bb9db0b4b31aca5/href</a></iframe><h3>Why We Built This</h3><p>People land on zeliot.in at very different stages. Some are evaluating Condense for the first time and want to understand how BYOC works. Some are engineers looking for a specific integration in the docs. Some are ready to sign up and just need the right link. Some have a question at 11 PM when no one is online.</p><p>For all of these, the standard website experience like navigation menus, a search bar, and a contact form, creates friction. Users have to figure out where to look, open multiple pages, and leave the site to book a meeting or find an eBook. A lot of intent gets lost in that process.</p><blockquote><em>The assistant we built collapses that entirely. A user can type “how does BYOC work”, “show me blogs on Kafka pricing”, “I want to try Condense”, or “book a demo”, and get a direct, useful response without leaving the chat window.</em></blockquote><h3>What the Assistant Can Do</h3><p>Before getting into how it’s built, here’s what it actually handles:</p><h3>Product questions</h3><p>Anything about Condense, Vapr, pricing, deployment models, connectors, certifications, or comparisons with other platforms. It pulls from zeliot.in and docs.zeliot.in in real time.</p><h3>Blog discovery</h3><p>A user can ask “show me articles on Kafka migration” or “what have you written about BYOC” and the assistant surfaces relevant posts directly.</p><h3>eBook and resource lookup</h3><p>Similar to blogs, but for downloadable guides and whitepapers from the resources section.</p><h3>Meeting booking</h3><p>The assistant checks availability and creates an appointment directly through Microsoft Graph APIs without redirecting the user to an external page.</p><h3>Condense sign-up</h3><p>Users who want to try the platform can be guided through the sign-up flow from the same conversation.</p><blockquote><em>Each of these is implemented as a discrete tool that Vapr invokes based on what the user is asking. The distinction between “answering a question” and “completing an action” is important, both happen inside the same chat, and the user doesn’t have to context-switch between them.</em></blockquote><h3>Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JVBqJvPejqdDYv1C.png" /></figure><p>The system has three layers:</p><h3>Orchestration</h3><p>Orchestration is handled by <a href="https://www.zeliot.in/condense/vapr">Vapr</a>, Zeliot’s autonomous AI agent. Vapr determines what the user is asking, which tools to invoke, and how to combine retrieved information into a coherent response.</p><h3>Tool Layer</h3><p>A set of purpose-built tools Vapr can call: documentation and website search, blog retrieval, eBook lookup, availability checking, appointment creation, and sign-up flow initiation.</p><h3>Knowledge Sources</h3><p>zeliot.in, docs.zeliot.in, and structured data for blogs, eBooks, and resources. These are indexed and queried in real time.</p><blockquote><em>Keeping orchestration, tool execution, and knowledge sources as separate components means each can be updated independently. Adding a new tool, say, surfacing podcast episodes doesn’t require touching the retrieval pipeline or the session layer.</em></blockquote><h4>Building the Knowledge Layer</h4><p>The assistant needs to answer questions about Condense and Vapr accurately. That means pulling from real content: product pages, documentation, comparison pages, customer stories, rather than from a model’s training data, which goes stale.</p><h4>Crawling and Extraction</h4><p>The ingestion pipeline crawls zeliot.in and docs.zeliot.in recursively from configured base URLs. At each page, it strips navigation, sidebars, footers, and framework-generated elements before passing content downstream. Raw HTML is noisy: navigation menus, repeated CTAs, and GitBook artifacts all add content that hurts retrieval quality. Cleaning this before indexing made a visible difference in early testing.</p><h4>Chunking</h4><p>Content is split into semantically meaningful chunks rather than at arbitrary character limits. Arbitrary splits produce chunks that are syntactically complete but miss the point of what a section is about. Chunk size and overlap are configurable, which matters because documentation pages and blog posts have different structural patterns.</p><h4>Embeddings</h4><p>Chunks are embedded using Nomic’s embedding model, strong retrieval performance, long-context support, and fast enough to embed zeliot.in’s full content without heavy infrastructure. The pipeline uses asymmetric retrieval patterns, embedding documents and queries differently for better search accuracy.</p><h4>Storage</h4><p>Embedded chunks are stored in ChromaDB with an HNSW index. Each entry includes the chunk content, metadata, and source URL, which lets the assistant return source links with answers rather than generating responses without attribution.</p><h3>Two-Stage Retrieval</h3><p>When a user asks a question, a single vector search isn’t sufficient for a production assistant. Too much noise gets through.</p><blockquote><em>User Query &gt; Embedding Search &gt; Top Candidate Documents</em></blockquote><p>The retrieval pipeline runs in two stages. The first stage does a fast semantic similarity search against ChromaDB to get a candidate set, the goal is recall, not precision. The second stage passes those candidates through a Cross Encoder reranker, which evaluates each query-document pair together instead of comparing vectors. This removes the noise, and the result is more precise, more relevant context is what gets passed to Vapr for response generation.</p><blockquote><em>Candidate Documents &gt; Cross Encoder &gt; Ranked Results</em></blockquote><p>The difference in answer quality between vector-only retrieval and the two-stage approach was significant enough that we wouldn’t have shipped without the reranker.</p><h3>Conversational Memory</h3><p>The assistant maintains context across turns so a conversation feels continuous rather than a series of isolated Q&amp;As. A user who starts by asking about Kafka connectors, then asks <em>“which of these work with MQTT?”</em>, then says <em>“can I book a call to discuss?”</em>, that whole thread stays coherent.</p><p>Session state is stored in SQLite: session identifiers, chat history, and cached responses. For long conversations, a compression mechanism periodically summarizes older turns while preserving the context that matters. Without this, long sessions become slow and expensive quickly.</p><h3>Streaming Responses</h3><p>The assistant streams responses back using Server-Sent Events rather than waiting for a complete answer before showing anything. Users see output almost immediately, which matters more than it might seem a three-second wait for the first token feels significantly slower than a three-second wait before a complete response appears all at once, even if the total time is the same.</p><blockquote><em>User Request &gt; Orchestrator &gt; Token Stream &gt; SSE Channel &gt; Browser</em></blockquote><p>Streaming uses dedicated thread-isolated event loops to prevent blocking other application threads under concurrent load.</p><h3>Meeting Booking and Actions</h3><p>The scheduling flow is worth describing in detail because it’s one of the more useful things the assistant does.</p><p>When a user says something like <em>“I’d like to book a demo”</em> or <em>“can I speak to someone about pricing”</em>, Vapr invokes the availability tool, which queries Microsoft Graph APIs to find open slots. The user picks a time, the appointment is created, and a confirmation comes back, all within the chat. The user never leaves zeliot.in to use an external booking tool.</p><p>The same pattern applies to Condense sign-ups. Rather than sending the user to a separate flow, the assistant can guide them through it from the conversation. Actions happen where the intent is expressed, not somewhere else.</p><h3>Deploying on Condense</h3><p>The full stack runs on Condense, on Zeliot’s own cloud. Condense handles containerization, scaling, environment variable management, and monitoring without requiring separate infrastructure decisions for each.</p><p>The deployment follows the Condense Applications workflow:</p><h4>Step 1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LzgL8mwdctmbh1Ok.png" /></figure><p>Create a workspace inside Condense and click <strong>Create Custom</strong> to start a new application.</p><h4>Step 2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xgmvSHBmYu-_l-Yc.png" /></figure><p>Connect your GitHub, GitLab, or Bitbucket account. Select the repository and branch to deploy from.</p><h4>Step 3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c0cDvMLJbcYsVIl0.png" /></figure><p>Under <strong>Publish As</strong>, select <strong>Output Connector</strong>, add a description, set an expiry period, and click <strong>Publish Application</strong>.</p><h4>Step 4</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P1fgsFJYHJWC-5Hg.png" /></figure><p>Confirm the Dockerfile is at the root of the repository. The built-in VS Code interface lets you make and push changes directly from the browser without switching to a local terminal.</p><h4>Step 5</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ck1xcBErojRBeVCU.png" /></figure><p>Configure environment variables using <strong>+ Configure Envs</strong>. Add variable names, configuration names, and values, then save.</p><h4>Step 6</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cWbpytXglUn8BZTE.png" /></figure><p>Choose HTTPS or TCP exposure depending on your application’s requirements.</p><h4>Step 7</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K3S92uhJVOQJfWOM.png" /></figure><p>Click <strong>Build Application</strong>, enter an image name and tag, and start the build. Logs stream in real time so you can catch failures immediately.</p><h4>Step 8</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cXBEMs0Xqc35HwQ0.png" /></figure><p>Once the build completes, click <strong>Publish Application</strong>, select <strong>Custom</strong> from the Categories dropdown, adjust environment variables and resource settings if needed, and click <strong>Deploy Connector</strong>.</p><p>The assistant is now live. The deployed connector view gives you the ingress path, environment variable overrides, and application logs. Use the <strong>Start</strong> button in the Logs tab to confirm it’s running correctly.</p><h3>Our Deployment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WJaHPQC9ePZRP4mz.png" /></figure><p>The assistant is live on zeliot.in. It queries content from zeliot.in and docs.zeliot.in, surfaces blogs and eBooks from the resources section, handles meeting booking through Microsoft Graph, and guides users through Condense sign-up, all from a single chat interface.</p><p>Vapr manages orchestration: deciding when to retrieve from the vector store, when to invoke the scheduling tool, when to surface a blog or eBook, and when to guide a sign-up. The entire stack runs on Condense on Zeliot’s cloud the same platform we’re recommending to customers for their own streaming infrastructure.</p><h3>What We Learned Building This</h3><h4>Content quality matters more than retrieval sophistication</h4><p>Cleaning navigation, sidebars, and framework-generated content before indexing had a bigger impact on answer quality than any retrieval tuning. Bad input produces bad output regardless of how good the retrieval pipeline is.</p><h4>Two-stage retrieval is non-negotiable for production</h4><p>The Cross Encoder reranker eliminated the category of answers that were technically sourced from the right general area but missed the specific point the user was asking about. We wouldn’t ship a customer-facing assistant without it.</p><h4>Actions need to be tools, not reasoning</h4><p>Having Vapr invoke discrete, deterministic tools for booking and sign-up produced far more reliable outcomes than prompting a model to reason through the same actions. For anything that creates a side effect, booking a calendar slot, initiating a sign-up use a tool.</p><h4>Streaming is a UX decision, not a technical nicety</h4><p>The isolated event loop design adds implementation complexity, but the experience difference for users is real enough that it was worth it.</p><h3>What It Can Do</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GSoX2_vrvl-MuGZ1.png" /></figure><p>The assistant can answer any question about Zeliot, Condense, or Vapr, Condense Apps, from pricing to compliance certifications to connector specifics. It surfaces blogs and eBooks on demand. It books meetings without leaving the chat. It guides users through Condense sign-up. And it does all of this while maintaining context across a full conversation.</p><p>More than anything, it removes the gap between “I have a question” and “I have an answer”, which is the thing a website is supposed to do but, manages to do it more easily and quickly.</p><h3>Frequently Asked Questions (FAQs)</h3><ol><li>Why ChromaDB over Pinecone or Weaviate?<br>ChromaDB with an HNSW index was the right fit for this use case, it runs embedded without a separate server, handles the document volumes zeliot.in produces without over-engineering, and integrates cleanly with the rest of the Python stack. For a larger corpus or multi-tenant retrieval, a managed vector database would make more sense.</li><li>Why Nomic over OpenAI embeddings?<br>Nomic offers strong retrieval performance, long-context support, and significantly faster embedding generation without depending on an external API call for every document chunk. For a pipeline that re-indexes on content changes, local embedding speed matters.</li><li>How does the Cross Encoder reranker actually work differently from vector search?<br>Vector search compares embeddings independently, the query vector against each document vector. A Cross Encoder takes the query and each candidate document together as a single input and scores their relevance jointly. This is more computationally expensive but produces significantly better precision. In our setup, vector search handles recall (finding candidates quickly), and the Cross Encoder handles precision (ranking those candidates correctly).</li><li>How is chunking implemented, what determines chunk boundaries?<br>Chunks are created semantically rather than at fixed character limits. The pipeline uses configurable chunk size and overlap parameters, but the boundary logic respects sentence and section structure rather than splitting mid-thought. Documentation pages and blog posts have different structural patterns, so the parameters are tuned separately for each content type.</li><li>How does history compression work technically?<br>When conversation history exceeds a configured token threshold, the compressor summarises older turns into a condensed representation while keeping the most recent turns verbatim. The summary replaces the raw history for context injection, which keeps token consumption bounded without losing continuity. This is implemented as a separate service that runs between turns rather than inline with response generation.</li><li>Why Server-Sent Events over WebSockets for streaming?<br>SSE is unidirectional, server to client, which is exactly what streaming a response requires. WebSockets add bidirectional overhead that isn’t needed here. SSE also reconnects automatically on network interruption, which matters for a customer-facing assistant on a website. The isolated event loop per session prevents one user’s stream from blocking another’s.</li><li>How does Vapr decide which tool to invoke?<br>Vapr evaluates the user’s intent against the available tool definitions and selects the appropriate tool or combination of tools based on what the request requires. For ambiguous requests it can ask a clarifying question before invoking. The tool definitions include descriptions of what each tool does and when it should be used, which Vapr uses for selection without hard-coded routing logic.</li><li>How are environment variables and secrets managed in the Condense deployment?<br>Environment variables are configured directly in Condense’s Applications IDE masked, named, and versioned per deployment. They’re never stored in the repository or visible in build logs. Changing a variable value creates a new deployment without requiring a code change or rebuild.</li><li>What happens if a content source changes, how does re-indexing work?<br>The ingestion pipeline can be triggered on a schedule or on content change events. When re-indexing runs, it crawls the configured URLs, extracts and chunks content, generates new embeddings, and updates ChromaDB. Existing entries are replaced rather than duplicated. For zeliot.in, we tie this to the publish pipeline so the knowledge base stays current with the live site.</li><li>Can this architecture be replicated for a different product or website using Condense?<br>Yes. The retrieval pipeline, session layer, and tool execution framework are all generic. Swapping in a different content source, a different tool set, or a different embedding model doesn’t require changing the orchestration layer. The Condense deployment follows the same steps regardless of what the application does.</li></ol><p><em>Originally published at </em><a href="https://www.zeliot.in/developer-blog/we-built-a-website-agent-using-vapr-and-deployed-it-on-condense"><em>https://www.zeliot.in</em></a><em> on June 28, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d50c126d10a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zeliot/how-we-built-a-website-assistant-on-vapr-and-deployed-it-on-condense-3d50c126d10a">How We Built a Website Assistant on Vapr and Deployed It on Condense</a> was originally published in <a href="https://medium.com/zeliot">Zeliot</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an RSS Feed for a Framer Website Without a Plugin]]></title>
            <link>https://medium.com/@skamath/how-to-build-an-rss-feed-for-a-framer-website-without-a-plugin-adc6db0f52fd?source=rss-9b2757d95092------2</link>
            <guid isPermaLink="false">https://medium.com/p/adc6db0f52fd</guid>
            <category><![CDATA[zeliot]]></category>
            <category><![CDATA[framer]]></category>
            <category><![CDATA[rss-feeds]]></category>
            <dc:creator><![CDATA[Sachin Kamath]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 00:00:49 GMT</pubDate>
            <atom:updated>2026-07-22T12:56:41.434Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*vW65fSieQyhZlRua" /></figure><h3>Introduction</h3><p>At Zeliot, we write about real-time data streaming, Kafka, and connected mobility. Our blog has grown to 166 posts and we publish regularly. But for a long time, there was no way for someone to subscribe to new content without bookmarking the page and checking back manually.</p><p>No RSS meant no Feedly, no newsletter auto-digests, no community aggregators picking up our posts. For a company writing technical content for engineers, that felt like a real gap. Engineers and developers still use RSS heavily. Community newsletters and aggregators that cover Kafka, data engineering, and streaming infrastructure all consume RSS feeds to discover new content. We were missing that entire distribution channel.</p><p>The fix was straightforward on paper: add an RSS feed. In practice, it took a few hours because Framer, which we use to build and host zeliot.in, does not support RSS natively. There is no setting to turn on, no export button, nothing. You either use a plugin or build it yourself.</p><p>We chose to build it ourselves for a few reasons. We have 166 posts already and more coming. We did not want to depend on a third-party plugin staying alive, staying free, or staying compatible with Framer’s API. We also wanted the feed at our own domain, structured exactly the way we wanted, with full control over what gets included. And building it from scratch meant we could write this post and share the approach with anyone else running into the same problem.</p><p>This post covers everything: why we needed it, what we tried, what broke, what we fixed, and the final setup that now runs automatically every day without anyone touching it.</p><h3>What is RSS and why does it matter</h3><p>RSS stands for Really Simple Syndication. It is an XML file that sits at a URL on your website and lists your content in a structured format: title, link, description, and publish date. RSS readers like Feedly, Inoreader, and dozens of others check that URL periodically, see what is new, and surface it to subscribers automatically.</p><p>Here is what a single item in a feed looks like:</p><pre>&lt;item&gt;<br>  &lt;title&gt;Why Kafka Migration Projects Fail&lt;/title&gt;<br>  &lt;link&gt;https://www.zeliot.in/blog/kafka-migration-challenges&lt;/link&gt;<br>  &lt;description&gt;Schema drift, consumer offsets, ACL gaps...&lt;/description&gt;<br>  &lt;pubDate&gt;Mon, 16 Jun 2026 00:00:00 GMT&lt;/pubDate&gt;<br>&lt;/item&gt;</pre><p>That is the entire format. The full feed is just a list of these items wrapped in some channel metadata. Nothing complex.</p><p>For us, the value of having a feed was three things. First, readers who use RSS readers can subscribe once and get every new post automatically. Second, newsletter tools like Mailchimp and Beehiiv can pull from an RSS feed to auto-generate content digests. Third, and most importantly for a technical audience, community aggregators and curators who cover Kafka, data streaming, and distributed systems specifically look for RSS feeds when deciding what content to surface. Without a feed, we were invisible to that entire layer of distribution.</p><h3>Why we did not just use a plugin</h3><p>The most obvious answer is Feedify, a Framer marketplace plugin that connects to your CMS collection and generates an RSS feed. We looked at it. It works.</p><p>However, we decided against it for a few reasons. With 166+ posts and a steady publishing pace, we did not want our content distribution to depend on a third-party plugin staying maintained, staying free, or staying compatible as Framer’s API evolves. We also wanted the feed to live at our own domain rather than a service URL, and we wanted to control exactly what fields go into it.</p><p>Building it ourselves also meant that when we need to add a second feed for our developer blog (coming soon), we just extend the same script rather than configuring another tool.</p><h3>Approach 1: Framer’s official Server API</h3><p>Our first instinct was to pull data directly from Framer’s CMS. Framer launched a Server API in February 2026, an npm package called framer-api that lets you connect to your Framer project from any server and read CMS collections programmatically.</p><p>On paper this was the cleanest possible approach. Connect to the project, fetch the Blogs collection, map the fields to RSS items. Official, supported, and structured.</p><p>We set it up:</p><pre>import { connect } from &quot;framer-api&quot;<br><br>const framer = await connect(PROJECT_URL, API_KEY)<br>const collections = await framer.getCollections()<br>// Output: [&#39;Blogs&#39;, &quot;Dev Blogs &#39;26&quot;, &#39;Newsroom&#39;, &#39;Authors&#39;, ...]<br><br>const blogsCollection = collections.find(c =&gt; c.name === &quot;Blogs&quot;)<br>// Found: &quot;Blogs&quot; with 166 items<br><br>const items = await blogsCollection.getItems()</pre><p>It connected. It found our collections. It could see all 166 blog posts. But then, it timed out.</p><p>Error: Connection timeout after 90000ms</p><p>After some digging, we found out why. The Framer Server API uses a stateful WebSocket connection. That WebSocket requires an active Framer browser or desktop app session to maintain it. It is designed for plugins running inside Framer, not for standalone server scripts running in a terminal or CI environment. The 90-second timeout is not a bug you can fix. It is a fundamental constraint of the architecture. That’s why, we abandoned this approach and moved on.</p><h3>Approach 2: Sitemap scraping</h3><p>Here is the thing about a public website. All the data we needed was already publicly accessible. Framer automatically updates the sitemap at zeliot.in/sitemap.xml every time you publish. That sitemap lists every URL on the site, including the 166 blog posts. And every blog page already outputs Open Graph meta tags and JSON-LD structured data in the HTML, which includes title, description, cover image, and publish date (variables available to be used i.e. the ones that you had setup while creating the CMS collection).</p><h4>So the approach became:</h4><p>1. Fetch the sitemap</p><p>2. Extract all /blog/ URLs</p><p>3. Fetch each page and pull metadata from the HTML</p><p>4. Build the RSS XML</p><p>5. Write it to a file</p><p>No API keys. No authentication. No WebSockets. Just plain HTTP requests.</p><h3>Building the generator</h3><p>The generator is a single file, scripts/generate.mjs. Here is the core of it.</p><h3>Fetching the sitemap</h3><p>We used Node’s built-in https module rather than the fetch API. On Node v25, fetch had SSL issues connecting to zeliot.in. Switching to the https module fixed it immediately.</p><pre>function fetchText(url) {<br>  return new Promise((resolve, reject) =&gt; {<br>    const req = https.get(url, {<br>      headers: { &quot;User-Agent&quot;: &quot;zeliot-rss-generator/1.0&quot; },<br>      timeout: 15000,<br>    }, (res) =&gt; {<br>      const chunks = []<br>      res.on(&quot;data&quot;, chunk =&gt; chunks.push(chunk))<br>      res.on(&quot;end&quot;, () =&gt; resolve(Buffer.concat(chunks).toString(&quot;utf-8&quot;)))<br>      res.on(&quot;error&quot;, reject)<br>    })<br>    req.on(&quot;timeout&quot;, () =&gt; { req.destroy(); reject(new Error(&quot;Timeout&quot;)) })<br>  })<br>}</pre><h3>Extracting blog URLs</h3><pre>const sitemap = await fetchText(&quot;https://www.zeliot.in/sitemap.xml&quot;)<br><br>const blogUrls = [...sitemap.matchAll(/&lt;loc&gt;([^&lt;]+)&lt;\/loc&gt;/g)]<br>  .map(m =&gt; m[1].trim())<br>  .filter(url =&gt; url.startsWith(&quot;https://www.zeliot.in/blog/&quot;)<br>               &amp;&amp; url !== &quot;https://www.zeliot.in/blog/&quot;)</pre><blockquote><em>One mistake we made early: we used zeliot.in instead of </em><a href="https://www.zeliot.in/"><em>www.zeliot.in</em></a><em> in the filter. The sitemap uses the www version for all URLs. The filter returned zero results until we caught that.</em></blockquote><h3>Fetching metadata in batches</h3><pre>async function fetchInBatches(urls, batchSize = 5) {<br>  const results = []<br>  for (let i = 0; i &lt; urls.length; i += batchSize) {<br>    const batch = urls.slice(i, i + batchSize)<br>    const settled = await Promise.allSettled(<br>      batch.map(async url =&gt; {<br>        const html = await fetchText(url)<br>        return extractMeta(html, url)<br>      })<br>    )<br>    results.push(...settled<br>      .filter(r =&gt; r.status === &quot;fulfilled&quot;)<br>      .map(r =&gt; r.value))<br>  }<br>  return results<br>}</pre><p>We fetch pages in parallel groups of 5 to avoid hammering the server:</p><h3>Extracting metadata from each page</h3><p>For each page, we extract four things: title, description, cover image, and publish date.</p><pre>function extractMeta(html, url) {<br>  const get = pattern =&gt; {<br>    const m = html.match(pattern)<br>    return m ? m[1].trim() : &quot;&quot;<br>  }<br><br>  const title = get(/&lt;meta\s+property=&quot;og:title&quot;\s+content=&quot;([^&quot;]+)&quot;/i)<br>  const description = get(/&lt;meta\s+property=&quot;og:description&quot;\s+content=&quot;([^&quot;]+)&quot;/i)<br>  const image = get(/&lt;meta\s+property=&quot;og:image&quot;\s+content=&quot;([^&quot;]+)&quot;/i)<br>  const pubDate = get(/&quot;datePublished&quot;\s*:\s*&quot;([^&quot;]+)&quot;/i)<br><br>  return { url, title, description, image, pubDate }<br>}</pre><p>The publish date required a small investigation. Framer does not output the article:published_time meta tag that RSS generators typically look for. What it does output is JSON-LD structured data in the head tag.</p><h3>Building the XML</h3><pre>function buildXml(posts) {<br>  const itemsXml = posts.map(p =&gt; `<br>    &lt;item&gt;<br>      &lt;title&gt;${escapeXml(p.title)}&lt;/title&gt;<br>      &lt;link&gt;${p.url}&lt;/link&gt;<br>      &lt;guid isPermaLink=&quot;true&quot;&gt;${p.url}&lt;/guid&gt;<br>      &lt;description&gt;${escapeXml(p.description)}&lt;/description&gt;<br>      &lt;pubDate&gt;${toRFC822(p.pubDate)}&lt;/pubDate&gt;<br>    &lt;/item&gt;`).join(&quot;\n&quot;)<br><br>  return `&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;rss version=&quot;2.0&quot; xmlns:atom=&quot;http://www.w3.org/2005/Atom&quot;&gt;<br>  &lt;channel&gt;<br>    &lt;title&gt;Zeliot Blog&lt;/title&gt;<br>    &lt;link&gt;https://www.zeliot.in&lt;/link&gt;<br>    &lt;description&gt;Real-time data streaming insights from the Zeliot team.&lt;/description&gt;<br>    &lt;language&gt;en-US&lt;/language&gt;<br>    &lt;lastBuildDate&gt;${new Date().toUTCString()}&lt;/lastBuildDate&gt;<br>    &lt;atom:link href=&quot;https://feed.zeliot.in/rss.xml&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;<br>${itemsXml}<br>  &lt;/channel&gt;<br>&lt;/rss&gt;`<br>}</pre><h3>What running it looks like</h3><pre>📡  Fetching sitemap...<br>   Found 166 blog URLs in sitemap<br><br>📝  Fetching metadata for 166 posts...<br>   Fetching 1-5 of 166... ✓<br>   Fetching 6-10 of 166... ✓<br>   ...<br><br>✅  Processed 166 posts<br><br>   Sample post:<br>   Title:  7 Kafka Migration Challenges and How to Prevent Them<br>   Date:   2026-06-16T00:00:00.000Z<br>   Image:  ✓<br><br>✨  RSS feed written to: public/rss.xml<br>   Posts included: 166</pre><blockquote><em>166 posts, accurate dates, cover images. About two minutes end to end.</em></blockquote><h3>Hosting</h3><p>We initially planned to use Vercel. We ran into a wall immediately: importing from a private GitLab group requires a Vercel Pro plan. Our repo lives inside a private group, so that was a non-starter on the free tier. We switched to Netlify. Free tier, supports private GitLab groups without any additional configuration. The setup was three fields:</p><ul><li>Branch: main</li><li>Build command: (empty, no build needed)</li><li>Publish directory: public</li><li>Deploy.</li></ul><blockquote><em>The feed was live at zeliot-website-rss.netlify.app/rss.xml within two minutes.</em></blockquote><h3>Getting it to our domain (zeliot.in)</h3><p>We wanted the feed at feed.zeliot.in/rss.xml rather than the Netlify URL. Since zeliot.in is hosted on Framer, we cannot add custom file paths directly. The solution was a subdomain pointing to Netlify. In GoDaddy DNS, we added a CNAME record:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d819e87992c5b85a7754d2759206948/href">https://medium.com/media/8d819e87992c5b85a7754d2759206948/href</a></iframe><p>Then added feed.zeliot.in as a custom domain inside Netlify. Netlify provisions an SSL certificate automatically via Let’s Encrypt once DNS propagates.</p><blockquote><em>The feed is now live at:</em></blockquote><blockquote><a href="https://feed.zeliot.in/rss.xml"><em>https://feed.zeliot.in/rss.xml</em></a></blockquote><h3>Automating daily updates</h3><p>The sitemap updates automatically whenever we publish in Framer. But the RSS file is static. It only updates when we run the generator and commit the result. We needed that to happen without anyone thinking about it. We set up a GitLab CI pipeline scheduled to run every day at 6:30 AM IST.</p><p>The .gitlab-ci.yml file:</p><pre>stages:<br>  - generate<br><br>generate-rss:<br>  stage: generate<br>  image: node:20<br>  rules:<br>    - if: &#39;$CI_PIPELINE_SOURCE == &quot;schedule&quot;&#39;<br>    - if: &#39;$CI_PIPELINE_SOURCE == &quot;web&quot;&#39;<br>  script:<br>    - node scripts/generate.mjs<br>    - git config user.email &quot;gitlab-ci@zeliot.in&quot;<br>    - git config user.name &quot;GitLab CI&quot;<br>    - git add public/rss.xml<br>    - &quot;git diff --cached --quiet &amp;&amp; echo &#39;No changes&#39; || git commit -m &#39;chore: regenerate RSS feed [skip ci]&#39;&quot;<br>    - &quot;git push @gitlab.com/${CI_PROJECT_PATH&quot;&gt;https://oauth2:${GITLAB_TOKEN}@gitlab.com/${CI_PROJECT_PATH} HEAD:main || true&quot;</pre><p>Three things in this config are worth calling out.</p><ul><li>The [skip ci] flag in the commit message tells GitLab not to trigger another pipeline run from that commit. Without it, the pipeline would commit, that commit would trigger a new pipeline, which would commit again, and so on forever.</li><li>The || true at the end of the push command prevents the pipeline from failing when there is nothing new to push. If no posts were published since the last run, the feed has not changed, and the push is a no-op.</li><li>Shell operators like &amp;&amp; and || in GitLab YAML must be wrapped in double quotes or the YAML parser rejects the file. This caused several failed pipelines before we caught it.</li></ul><p>When the pipeline runs:</p><p>1. It regenerates the feed by fetching the sitemap and all blog pages</p><p>2. If rss.xml changed, it commits and pushes to main</p><p>3. Netlify detects the push and redeploys</p><p>4. The updated feed is live within 3 to 4 minutes of the pipeline completing</p><h3>Setting up the pipeline in GitLab</h3><p>The .gitlab-ci.yml file defines what the pipeline does. But before it can run, you need to do three things in GitLab: create a personal access token, add it as a CI variable, and set up the schedule.</p><h4>Step 1: Create a personal access token</h4><p>The pipeline needs permission to push commits back to the repository. GitLab’s built-in CI_JOB_TOKEN is read-only, so you need a separate token with write access.</p><p>Go to <strong>GitLab → your avatar (top right) → Edit profile → Access Tokens → Add new token</strong>.</p><p>Give it a name (e.g. rss-feed-ci), set an expiry date, and select the write_repository scope. That is the only scope it needs.</p><blockquote><em>Copy the token value immediately, GitLab only shows it once.</em></blockquote><h4>Step 2: Add the token as a CI/CD variable</h4><p>Go to your GitLab project → <strong>Settings → CI/CD → Variables → Add variable</strong>.</p><p>Set the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a3446c96f3479cb40296392f46d3ae3/href">https://medium.com/media/8a3446c96f3479cb40296392f46d3ae3/href</a></iframe><p>Save. The pipeline can now reference ${GITLAB_TOKEN} without the value ever appearing in your code or logs.</p><h3>Step 3: Set up the scheduled pipeline</h3><p>Go to your GitLab project → <strong>Build → Pipeline schedules → Create a new pipeline schedule</strong>.</p><p>Fill in:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/723730db60391267fd683ef7775b2333/href">https://medium.com/media/723730db60391267fd683ef7775b2333/href</a></iframe><p>The cron expression 30 1 * * * means 1:30 AM UTC, which is 6:30 AM IST. Save the schedule.</p><h4>Step 4: Trigger a manual run to verify</h4><p>Before waiting for the scheduled run, test it manually. Go to <strong>Build → Pipeline schedules</strong>, find the schedule you just created, and click the play button on the right. This triggers an immediate run.</p><p>Go to <strong>Build → Pipelines</strong> to watch it execute. A successful run looks like this:</p><pre>$ node scripts/generate.mjs<br>📡  Fetching sitemap...<br>   Found 166 blog URLs in sitemap<br>✨  RSS feed written to: public/rss.xml<br><br>$ git add public/rss.xml<br>$ git diff --cached --quiet &amp;&amp; echo &#39;No changes&#39; || git commit -m &#39;chore: regenerate RSS feed [skip ci]&#39;<br>[main a1b2c3d] chore: regenerate RSS feed [skip ci]<br><br>$ git push https://oauth2:${GITLAB_TOKEN}@${CI_PROJECT_PATH} HEAD:main</pre><blockquote><em>If the run passes, the pipeline is configured correctly and will run automatically every morning from here.</em></blockquote><h3>Surfacing the feed in Framer</h3><p>Once the feed is live, there are two things worth doing in Framer to make it discoverable.</p><h3>1. Add an RSS autodiscovery tag to the head</h3><p>This is a hidden &lt;link&gt; tag in your site&#39;s HTML that RSS readers and browsers use to auto-detect the feed. When someone visits your blog, their RSS reader sees this tag and knows a feed exists without the user having to find the URL manually.</p><p>In Framer, go to <strong>Settings</strong>(gear icon, top right) then <strong>General</strong>, scroll down to <strong>Custom Code</strong>, and paste this into the Start of head tag field:</p><pre>&lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;Zeliot Blog&quot; href=&quot;https://feed.zeliot.in/rss.xml&quot;</pre><p>Save and publish. The tag is invisible on the page but browsers, RSS readers, and feed aggregators will find it when they visit any page on your site.</p><h4>Verifying it works</h4><p>After publishing, open your blog in Chrome and right-click → View Page Source. Search for application/rss+xml. You should see the tag in the &lt;head&gt; section. If it is there, autodiscovery is working.</p><p>You can also paste your blog URL into the <a href="https://validator.w3.org/feed/">W3C Feed Validation Service</a> it follows autodiscovery links and validates the feed it finds. A clean result means your feed is well-formed and will work with any standard RSS reader.</p><h3>2. Add a visible RSS button on the blog page</h3><p>For readers who know what RSS is and want to subscribe manually, add a visible button on the blog page. In Framer, open the blog page in the editor. Add a Button or Link element wherever makes sense in your layout, typically near the blog title or in a subscribe section. Set the link to:</p><p><a href="https://feed.zeliot.in/rss.xml">https://feed.zeliot.in/rss.xml</a></p><p>Set it to open in a new tab. Label it “RSS” or “Subscribe via RSS” and optionally add an RSS icon next to the text. The classic RSS icon is a small orange square with the wifi-style signal arcs, recognisable to anyone who uses a feed reader. That is all that is needed. The autodiscovery tag handles machine detection, and the button handles human subscribers.</p><h3>Summary</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4185427d8be017c939cfad994980f611/href">https://medium.com/media/4185427d8be017c939cfad994980f611/href</a></iframe><p>The whole thing lives in one GitLab repo: the generator script, the CI config, and the generated feed file. No external services, no recurring subscriptions, no plugins. If Framer ever ships native RSS support, we can retire this in five minutes. Until then, it works exactly as it should.</p><p>Disclaimer: Claude helped me in the entire process of writing the code, guiding on how to implement this, deploying the links, etc.</p><p><em>Originally published at </em><a href="https://www.zeliot.in/developer-blog/adding-a-rss-feed-to-framer-cms-blogs"><em>https://www.zeliot.in</em></a><em> on June 25, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adc6db0f52fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>