Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

The business wants to move from nightly batch processing of transactions to near-real-time streaming. As the senior technical leader, how do you decide which batch workloads to convert and how to fund the change?

Convert the workloads where lower latency has clear business value, such as fraud checks and customer notifications, and keep batch for reconciliation, reporting and bulk corrections, where completeness matters more than speed. Compare each candidate with simply running the batch more often, because streaming brings always-on cost and operational complexity. Keep a batch path for reprocessing and backfill, fund a shared streaming platform before asking teams to migrate, sequence the work by value and risk, and judge it by measured data freshness, cost and incidents.

Background to this question

Moving from nightly batch to streaming is often requested as a modernisation goal, as if every batch job were outdated. In reality some business processes gain a lot from seeing a transaction within seconds, and others gain nothing, while all of them would pay for running systems around the clock. A senior leader has to tell these apart, fund the change sensibly and avoid a big rewrite that delivers little. In this answer, we will recap what changes between batch and streaming, decide which workloads to convert, compare streaming with micro-batches, explain why a batch path stays, and look at sequencing, funding and how to measure the result.

1A Quick Recap: What Changes Between Batch and Streaming

In nightly batch, transactions collect during the day and a job processes all of them after the cut-off, say at 23:00. The data is complete and the job can sort, join and total it as a whole, but anything that depends on it waits up to a day. In streaming, each transaction is published as an event, for example to a Kafka topic, and consumers process it within seconds of it happening. Data is fresh, but each consumer sees events one at a time, must handle late and out-of-order events, and runs continuously.

That last point is the real change. A batch job runs for two hours and then uses nothing. A streaming consumer runs 24 hours a day, needs monitoring and on-call all the time, and has to be designed for failures in the middle of the day, not just at night. So streaming is not a free upgrade; it is a different operating model.

2Which Workloads Gain From Lower Latency

The test for each workload is simple to state: what is it worth to the business to have this result in seconds instead of tomorrow? Fraud detection is the clearest case, because a fraudulent card used ten times overnight costs real money, and stopping it after the first use saves most of it. Customer notifications, such as a payment received alert, are part of the product experience and only make sense in near real time. Limit and balance updates that customers see in an app are similar.

Reconciliation is the opposite. Its purpose is to check that the whole day's totals agree across systems, and that needs a complete, closed day. Regulatory reporting, month-end statements and bulk corrections are also about completeness and correctness over a period, and doing them event by event adds complexity with no gain.

Deciding per workload
WorkloadValue of low latencyDecision
Fraud scoringhigh: stops losses in minutesstream
Customer notificationshigh: product featurestream
App balance viewmediumstream or 5-minute micro-batch
Daily reconciliationnone: needs a closed daykeep batch
Regulatory reportsnonekeep batch
Bulk correctionsnonekeep batch

3Streaming Versus More Frequent Micro-Batches

Between nightly batch and streaming there is a cheaper middle option: run the existing batch logic every 15 or 5 minutes over the transactions since the last run. Many existing Spring Batch jobs can do this with modest changes, such as reading by a watermark, the timestamp or id up to which data was processed, instead of by business date. Freshness improves from a day to minutes, while the team keeps tools and skills it already has.

Micro-batches stop being enough when the business needs seconds rather than minutes, or when the overhead of starting a job every few minutes becomes larger than the work itself. For each candidate, we should cost both options honestly: streaming needs brokers, schema management, consumer services running all the time, and on-call skills, while micro-batches need a more frequent schedule and careful watermark handling. Often a workload that seemed to need streaming is satisfied by five-minute freshness.

4Why a Batch Path Stays After Streaming

Even after converting a workload, we keep a batch path for it. The reason is that streaming systems process what arrives, and we regularly need to process again what already happened. A bug in the fraud model's features means re-scoring last week's transactions. A new consumer needs a year of history. A corrupted day must be reloaded from source files. Doing these through the live stream either takes too long or disturbs real-time traffic.

So the design has two paths over the same logic where possible: the stream for new events, and a batch job for backfill and reprocessing over stored data, such as the event archive or the source database. Reconciliation then compares the two, which also gives us a daily check that the stream did not lose anything.

Step throughStreaming with a batch path
  1. Source systemstransactions written and published as events
  2. Event streamKafka topics, real-time consumers for fraud and alerts
  3. Event archiveevery event stored for replay
  4. Batch jobsbackfill, reprocessing, nightly reconciliation
  5. Reports and ledgerbuilt from complete, reconciled days

5 layers, from the top down. Step through them one at a time.

5Sequencing and Funding the Change

If each team builds its own streaming setup, we get ten different broker configurations and ten on-call rotas for the same technology. So the first funded item is a shared streaming platform: the brokers, a schema registry, standard client libraries, monitoring and a platform team to run them. This is an organisation-level investment, funded centrally, because no single team's business case would justify it alone.

Team migrations then follow in order of value and risk. The first is a high-value, contained workload, such as customer payment notifications, where a problem is visible but not catastrophic. Fraud scoring might come next, run in shadow mode alongside the batch version until results match. Each migration is funded as a business project with its own expected benefit, such as fraud losses reduced by a certain amount, rather than as a technology rewrite.

6Measuring the Outcome

We define measurable outcomes before starting, so the programme can be judged honestly. Data freshness is the main one: the time from a transaction happening to it being visible in the target, measured at the 50th and 99th percentile. Cost is the second: platform and compute cost per month compared with the batch baseline. Incidents are the third: the number and severity of data incidents per quarter. We also track the business metric each migration promised, such as fraud losses or notification complaints. If a migration improves freshness but not the business metric, that tells us to stop converting similar workloads.

7Follow-up questions

What if the business asks to convert everything to streaming anyway?

We show the cost and value per workload. When leaders see that reconciliation in streaming would cost more, take longer to build, and still need a nightly batch to prove correctness, they usually agree to keep it. The conversation goes better framed as investing where latency earns money than as defending old jobs.

How do you keep the batch and streaming logic from drifting apart?

We share the business logic as a library used by both the stream consumer and the batch job, and we reconcile their outputs regularly. A daily comparison of totals between the streaming result and a batch recomputation shows drift quickly.

Does streaming remove the need for an end-of-day cut-off?

Not for accounting. The business still closes a day for reports and the ledger. Streaming changes how quickly individual events are acted upon, but the closing of a day remains a batch-shaped process that waits for late events up to an agreed time.

8Conclusion

In this answer, we decided which batch workloads to move to streaming by asking what lower latency is worth. Fraud and customer notifications gain clearly, while reconciliation, reporting and bulk corrections stay batch because they need complete data. We compared streaming with cheaper micro-batches, kept a batch path for reprocessing and backfill, funded a shared streaming platform before team migrations, sequenced the work by value and risk, and measured freshness, cost and incidents to judge the result.

What to say in the interviewAbout 80 seconds aloud

Open with

I would decide workload by workload, based on what lower latency is worth to the business. Fraud scoring and customer notifications are clear candidates, because seconds matter for losses and for the customer experience.

Then, if they want more

Reconciliation, regulatory reporting and bulk corrections stay as batch, because they need a complete, closed day and gain nothing from being event by event.

For anything in between, I would compare streaming with running the existing batch every five or fifteen minutes, since streaming adds always-on infrastructure, monitoring and on-call, and micro-batches often meet the need at a fraction of the cost.

Even for workloads that move to streaming, I would keep a batch path over the same logic for backfill and reprocessing, for example after a bug fix, and use a nightly reconciliation to prove the stream did not lose anything.

For funding, the shared streaming platform comes first and is funded centrally: brokers, schema registry, client libraries and a team to run it. Then team migrations are sequenced by value and risk, starting with something contained like notifications, with fraud in shadow mode until results match.

I would agree measurable outcomes up front, such as data freshness at the 99th percentile, monthly cost and incident counts, plus each migration's business metric.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Batch reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "The business wants to move from nightly batch processing of transactions to...": https://scrivio-interview-library.netlify.app/spring-boot/spring-batch/31a64170c4/