Introduction to migrating to batch processes to Kafka
Sion Smith17 July 2023
Blogs6 mins read
Updated November 2026: We have restyled this July 2023 post, added a migration-steps table and a Kafka ETL building-blocks table, and refreshed the related reading.
This article is an introduction to migrating batch processes to Kafka. Migrating a batch system to a data streaming platform like Kafka can be a complex and challenging endeavour. We explore the essential steps and considerations involved in a successful migration. From careful planning and building trust to fostering a strong team dynamic and gaining industry expertise, we look at the key factors that contribute to a smooth transition from batch to real time.
How do you plan a batch to Kafka migration?
Batch processing is still very present in many data platform architectures. Kafka can support the modernisation of many of these traditional use cases and deliver better performance and, ultimately, a better consumer experience. When embarking on a Kafka migration journey, contextualised planning becomes paramount. You must first identify which batch processes are suitable for migration and, more importantly, whether the systems they interact with can handle real-time data.
Without a clear plan, it’s easy to become overwhelmed and lose sight of the migration’s goals. Invest adequate time and effort in planning, and make sure all stakeholders are well informed and aligned throughout the process.
Migration step
What to do
1. Inventory batch jobs
List each batch or ETL job, its schedule, data sources, consumers and business owner
2. Check downstream readiness
Confirm the systems that receive the data can accept continuous updates instead of a nightly file or load
3. Pick one use case
Choose one batch process with clear business value and migrate it end to end first
4. Run in parallel
Keep the batch job running while the streaming pipeline proves it produces the same results
5. Build the framework
Turn what worked into reusable patterns, templates and governance for the next migrations
How do you build a Kafka centre of excellence?
Trust plays a pivotal role in the success of any migration project. Establishing trust with stakeholders is crucial for gaining the autonomy to execute the migration effectively, and it bridges the gap between business and IT, enabling smooth collaboration and decision-making.
Provide regular sprint playback sessions.
Showcase business value rather than technical accomplishments.
Focus on actionable output and make sure you are adding value: trust is built over time, not in one milestone.
Solve one problem at a time: prioritise one end-to-end batch to real-time migration before building a reusable framework.
Which Kafka components replace batch ETL?
In a batch pipeline, extract, transform and load run as one scheduled job. With Kafka, each stage runs continuously and independently, which is what makes Kafka ETL a good fit for replacing batch processing.
ETL stage
Batch approach
Kafka approach
Extract
Scheduled query or file export
Kafka Connect source connectors, or change data capture (CDC) with Debezium
Transform
Nightly script or SQL job
Stream processing with Kafka Streams or Apache Flink
Load
Bulk load into the target
Kafka Connect sink connectors writing continuously to the target
What lessons has OSO learned from batch to real-time migrations?
Successful migrations rely heavily on teamwork. Select the right batch to real-time use case, obtain stakeholder buy-in and trust, create a shared plan, and foster an environment that supports open communication and collaboration. These habits help you nurture a high-performing team and address the challenges that arise during the migration.
Migrating batch processes to Kafka offers a unique opportunity to vastly improve the efficiency of your organisation through the power of a data streaming platform. Building this capability inside your organisation, with the right foundational components, helps your teams become high performing, data driven and focused on using analytics as a primary product metric. Kafka’s real-time data processing, scalability and fault tolerance make it a strong architecture for this migration.
Key takeaway: Migrate batch ETL to Kafka one use case at a time: check that downstream systems can take real-time data, run the new pipeline alongside the batch job, show business value every sprint, then turn what worked into a reusable framework.
Frequently asked questions
What does migrating batch processes to Kafka mean?
It means replacing scheduled batch or ETL jobs, which move data in large chunks at fixed times, with continuous event streams in Apache Kafka, so downstream systems receive changes within seconds rather than after the next batch run.
Can Kafka be used for ETL?
Yes. Kafka Connect source connectors or change data capture tools such as Debezium extract data, stream processors such as Kafka Streams or Apache Flink transform it, and Kafka Connect sink connectors load it continuously into target systems.
Which batch processes should you migrate to Kafka first?
Start with one process that has clear business value and whose downstream systems can handle real-time data. Migrate it end to end before building a reusable framework for the rest.
Should the batch job keep running during the migration?
Running the batch job and the new streaming pipeline in parallel for a period lets you compare results and switch over with confidence. Retire the batch job once the outputs match.
How do you get stakeholder buy-in for a Kafka migration?
Hold regular sprint playback sessions, show business value rather than technical accomplishments, and deliver one working end-to-end migration early. Trust builds over time and gives the team the autonomy to continue.