Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Your organisation runs about 300 batch jobs across teams on a mix of cron scripts, an old enterprise scheduler and Spring Batch apps. You are asked to propose a standard batch platform. What would it include and how would you migrate?

I would standardise on Spring Batch for job logic, one central orchestrator for triggers and dependencies, such as Kubernetes CronJobs with a workflow tool or an enterprise scheduler, and a shared approach to the job repository, delivered as a golden-path template with metrics, logging, restart conventions and alerts for failed or late jobs. I would then classify the 300 jobs by criticality and dependencies, give each an owner, on-call and completion SLA, migrate low-risk jobs first, and retire the old scheduler only after parallel runs have proved the outputs match.

Why this question is asked

Three hundred jobs on three different mechanisms is a common result of years of growth, and it has real costs: cron scripts fail silently, the old scheduler has a handful of people who understand it, and every Spring Batch app is configured a little differently. A standard platform promises fewer failures and faster recovery, but a migration done carelessly can break the end-of-day jobs the business depends on. Interviewers ask this to see how we balance standardisation with risk. In this answer, we will look at what the platform would include, how a golden-path template makes it the easy choice, how to classify and order the jobs, what ownership each job needs, and how to retire the old systems safely.

1What We Are Standardising and Why

A batch platform has two jobs: running the job logic, and deciding when jobs run and in what order. Spring Batch covers the first: chunked processing, restart from the last commit, skip and retry, and a record of every run in the job repository, the tables where executions are stored. It does not cover the second. It has no calendar, no cross-job dependencies, and no view of 300 jobs at once. That is the orchestrator's role.

Mixing these roles is what creates today's problems. Cron scripts have no restart and no history, the enterprise scheduler often contains business logic in scripts nobody can test, and Spring Batch apps each choose their own trigger. So the standard separates them clearly.

Step throughThe proposed batch platform
  1. Job catalogueowner, SLA, runbook, dependencies for every job
  2. Orchestratorschedules, dependencies, calendars, retries, one view of all jobs
  3. Golden-path templateSpring Batch app with metrics, logs, alerts, restart conventions
  4. Runtimecontainers on Kubernetes, one pod per job run
  5. Job repositoryshared database strategy, schema per domain, retention

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

2Choosing the Orchestrator and Repository Strategy

For the orchestrator, there are three realistic options. Kubernetes CronJobs are simple and free, but handle dependencies poorly, so they suit independent jobs. A workflow tool, or a successor to Spring Cloud Data Flow, which the community has moved on from, adds dependencies and visibility. An enterprise scheduler, possibly the one we already own, handles complex calendars and cross-system dependencies well but is costly and slow to change. Often the right answer is to keep a scheduler for the true dependency chains and use CronJobs for the many simple jobs, with both reporting into the same catalogue and dashboards.

For the job repository, we decide once rather than per team: for example a schema per business domain in a shared, managed PostgreSQL instance, with the platform team handling upgrades, indexes and history cleanup. One repository per job is hard to operate, and one for the whole company becomes a bottleneck and a single point of failure.

3The Golden-Path Template

A golden path is the supported, well-paved way to build something, offered as a template so the right choice is also the easiest. Our template is a Spring Boot and Spring Batch project that already includes metrics for each job and step, published through Micrometer, structured logs carrying the job name, instance and execution ids, alerts for failed jobs and for jobs still running past their SLA, and a restart convention: the business date is always an identifying parameter, readers are restartable, and writers are idempotent.

The alerts deserve emphasis. A late job is often worse than a failed one, because nothing calls attention to it. If the end-of-day settlement normally finishes by 02:00 and its SLA is 04:00, the platform should page the owner at 04:00 even if the job is still happily running. Teams starting from the template get all of this on day one, which is the main argument for adopting it.

4Classifying and Ordering the 300 Jobs

We cannot migrate 300 jobs at once, and we should not start with the most critical ones. We build an inventory and classify each job by criticality, how many other jobs depend on it, and how complex it is. Then we migrate in waves, starting with low-risk jobs to prove the platform and the template, and moving to critical chains only after the platform has run reliably for weeks.

Migration waves
WaveJobsExamplesExit criterion
1about 40 low-riskinternal reports, cleanups4 weeks without platform incidents
2about 120 mediumdata feeds with few dependantsSLA met in 95% of runs
3about 100 importantcustomer files, partner exportsparallel runs match
4about 40 criticalend-of-day, settlementparallel runs match for a month-end
Illustrative counts; the inventory sets the real ones.

Some jobs will turn out not to be needed at all. A surprising number of old cron jobs produce files nobody reads. Retiring them is the cheapest migration of all, so every job in the inventory must have a reason to exist and a team that confirms it.

5Ownership, On-Call and SLAs

Every job on the platform has an owning team, an on-call rota that receives its alerts, and an SLA, usually a completion time such as by 06:00 on business days. These are recorded in the job catalogue and are a condition for a job to run on the platform. The platform team owns the platform itself: the orchestrator, the runtime, the repository and the template. It does not own each job's logic or its data. Without this split, every failure becomes a platform ticket, and the platform team ends up debugging other teams' business rules at 3 a.m.

6Parallel Runs Before Retirement

For important and critical jobs, we run the old and new versions side by side for a period, with the new one writing to a shadow location or a separate schema. Each run, we compare the outputs: row counts, checksums of files, totals of amounts. Only when outputs match for an agreed period, including a month-end for financial jobs, do we switch the new job to be the real one. The old scheduler is retired only when its last job has been switched and a quiet period has passed. Keeping it alive a little longer costs licence fees, but switching it off too early can cost a missed settlement.

7Follow-up questions

Should we use Spring Batch for every job, even small scripts?

Not necessarily. A tiny job that deletes temporary files does not need chunking or restart. The standard is about the platform: every job runs through the orchestrator, appears in the catalogue, has an owner and alerts. Within that, simple jobs can be small containers running a script, and data processing jobs use Spring Batch.

How do you get teams to migrate?

We make the new path better, not just mandatory: faster setup, alerts that work, and less on-call noise. Early waves produce success stories with numbers, such as failures detected in minutes instead of hours. Then we set a date for the old scheduler's licence renewal, which gives the programme a natural deadline.

How do you handle dependencies between jobs on different systems during migration?

During migration, a job on the new platform may depend on one still on the old scheduler. We bridge them with explicit signals, such as a completion marker file or an event, that both systems understand, and we migrate tightly coupled chains together as one unit where possible.

8Conclusion

In this answer, we proposed a standard batch platform: Spring Batch for job logic, a central orchestrator for triggers and dependencies, and a shared repository strategy, packaged as a golden-path template with metrics, logging, alerts for failed and late jobs, and restart conventions. We classified the jobs by criticality and dependencies, migrated low-risk ones first, made an owner, on-call and SLA a condition of running on the platform, and retired the old scheduler only after parallel runs proved the outputs matched.

What to say in the interviewAbout 80 seconds aloud

Open with

I would separate two concerns that are mixed today: the job logic and the scheduling. For job logic the standard is Spring Batch, because it gives restart, chunking and a history of every run.

Then, if they want more

For scheduling and dependencies I would choose one orchestrator, for example Kubernetes CronJobs for simple independent jobs and either a workflow tool or our existing enterprise scheduler for the real dependency chains, all reporting into one catalogue. The job repository strategy is decided once, for example a schema per domain on a managed database run by the platform team.

Then I would ship a golden-path template: a Spring Boot batch project with metrics, structured logs with job and execution ids, alerts on failed jobs and on jobs running past their SLA, and conventions like the business date as an identifying parameter.

For migration, I would inventory the 300 jobs and classify them by criticality and dependencies, start with low-risk ones to prove the platform, and leave end-of-day jobs until it has run reliably for weeks. Every job needs an owning team, on-call and a completion SLA in the catalogue to run on the platform.

For critical jobs I would run old and new in parallel and compare outputs, including a month-end, and only then retire the old scheduler.

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 "Your organisation runs about 300 batch jobs across teams on a mix of cron scripts, an...": https://scrivio-interview-library.netlify.app/spring-boot/spring-batch/eff618c3ae/