Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Your organisation is considering offering scheduling as a central platform service (triggers, calendars, history, alerting) instead of each team using @Scheduled with ShedLock, Quartz or CronJobs. As the senior technical leader, how do you decide whether to fund it and how to run it?

I would decide with numbers: first measure what the current approach costs in duplicated scheduling code, missed and duplicate-run incidents and audit gaps, then compare that with the cost of running a central service, which becomes critical infrastructure needing high availability and an owning team with an SLO. If we fund it, the platform only triggers work, sending an HTTP call or message with an execution id, while execution stays in stateless, idempotent services. We choose build, buy or open source by comparing needed features with multi-year cost, mandate it only for job classes that need it, migrate in waves, and measure incidents before and after.

Why this question is asked

Platform proposals are easy to argue for and hard to justify. A central scheduler sounds tidy, but it moves risk from many small places into one large one, and it costs a team forever, not just a project. Interviewers ask senior leaders this question to see how they make an investment decision under uncertainty: what they measure, what design keeps the risk acceptable, how they choose between building and buying, and how they run the rollout. In this answer, we will quantify the problem, set out the design principles that make a central service safe, compare build, buy and open source, define where it is mandatory, and plan the migration and its measurement.

1Quantify the Current Cost First

The decision starts with a baseline, because without one we cannot say whether the platform is worth it or, later, whether it worked. Three costs matter. Engineering effort: how many services carry their own scheduling setup, ShedLock or Quartz configuration, retry logic, alerting, and roughly how many days a year each team spends on it. Incidents: how many incidents in the last year came from missed, duplicated or overlapping runs, and what each cost in recovery work and customer impact. Audit: which regulated jobs cannot today show a reliable history of when they ran and who changed their schedule.

An example makes the scale concrete. Suppose 120 services each spend about 3 engineer-days a year on scheduling plumbing, 360 days in total; there were 9 scheduling incidents last year at an average of 15 days of recovery effort each plus one regulatory finding. That is roughly 500 engineer-days a year, or about two full-time engineers, before counting customer impact. A central platform team of four costs more than that, so the case must rest on incident and audit risk as well as effort, or on a larger estate.

2What a Central Service Must Be

A central scheduler gives us one place for history, calendars, dependencies between jobs and alerting, which is exactly what scattered schedulers lack. But it also becomes shared critical infrastructure: if it is down at 02:00, nothing that depends on it runs anywhere. So funding it means funding an owning team with on-call, a written SLO such as '99.95 percent of triggers fire within 30 seconds of their scheduled time', high availability across zones, and capacity planning.

Leaders often underestimate this part. A platform without an owning team is worse than no platform, because teams lose their local control and gain an unreliable dependency. If we cannot staff the team, the honest answer is not to build the platform yet.

3Keep Execution in the Services

The design principle that makes a central scheduler manageable is to separate triggering from execution. The platform decides when a job is due and sends a trigger; the service does the work. The trigger is an HTTP call or a message carrying an execution id, the job name and the business date. The service treats the execution id as an idempotency key, does the work, and reports the result back.

Java
POST /internal/jobs/interest-accrual/executions
{
"executionId": "6f1c2a9e-3b7d-4e0a-9a51-2d8c41f0b7aa",
"businessDate": "2026-10-31",
"attempt": 1
}
-> 202 Accepted // service queued the work under that execution id
-> repeat with the same executionId: 202, no second run // idempotent
// later, from the service
POST /scheduler/executions/6f1c2a9e-.../result
{ "status": "SUCCEEDED", "records": 418230 }
Step throughTrigger and execution kept apart
Central schedulerBilling serviceBilling database
trigger: executionId, businessDate
record executionId (unique)
202 Accepted
do the work for the business date
result: SUCCEEDED, 418,230 records
store history, check SLO, alert if missing

6 messages in order. Play them, or step through them one at a time.

The platform knows when and whether; the service knows how.

This keeps the platform small and the services stateless with respect to scheduling: they need no lock tables, no scheduler threads, no misfire logic. Retries are safe because the execution id makes them idempotent. And the platform never runs business code, so a bug in one team's job cannot affect another's.

4Build, Buy or Adopt Open Source

Once we know the features we need, such as business calendars, dependencies between jobs, audit history, multi-tenant access control and alerting, we compare three routes over several years rather than on first-year cost. Building gives the closest fit and full control, but the organisation then maintains a scheduler forever, and scheduling has more edge cases (time zones, daylight saving, misfires, high availability) than most teams expect. Buying a commercial workload scheduler gives mature features and support at a licence cost, with integration work and some lock-in. Adopting an open-source workflow or scheduling system gives features without licence fees but needs in-house expertise to run and upgrade it.

The comparison should be written down with a five-year cost for each route, including staff, and checked against the must-have features. In most organisations, building from scratch only wins when the needs are unusual and the team is strong; otherwise adopting or buying, wrapped in the trigger contract above, is cheaper and lower risk.

Comparing the routes over five years
RouteStrengthsCosts and risks
Buildexact fit, full controlpermanent team, many edge cases to get right
Buymature calendars and audit, vendor supportlicence fees, integration, lock-in
Adopt open sourcerich features, no licenceoperating expertise, upgrades, self-support

5Mandate It Only Where It Pays

A central platform should not swallow every cache refresh. I would make it mandatory only for the job classes that need what it offers: financial and regulated jobs that need audit history, jobs with dependencies across teams, and jobs that follow business calendars. Light housekeeping, such as cleaning local caches or expiring sessions, stays local with @Scheduled and ShedLock, because adding a network hop and a central dependency to it adds risk without benefit.

Being explicit about this boundary also makes the rollout credible. Teams accept a mandate that clearly solves a problem they have, and resist one that adds ceremony to trivial jobs.

6Migrate in Waves and Measure

The rollout starts with a pilot of two or three teams with demanding jobs, which proves the trigger contract and the SLO. Then the regulated and cross-team jobs move in waves, with the platform team providing a client library and migration guide. Each wave has an exit check: the old trigger is removed, not left running alongside the new one, which would create exactly the duplicates we are trying to remove.

Measurement closes the decision. We track missed-run and duplicate-run incidents per quarter against the baseline, the share of in-scope jobs migrated, the platform's own SLO, and audit findings. If after a year the incident rate has not fallen, or the platform itself causes outages, the data tells us to change course, and that is the strongest argument for having measured the baseline in the first place.

7Follow-up questions

What is the biggest risk of a central scheduler?

Concentration. A single outage or bad deployment of the platform can stop every critical job at once. We reduce it with high availability, careful change management, an SLO with alerting, and by keeping execution in the services so the platform stays small. Some teams also keep a documented manual trigger as a fallback for the most critical jobs.

How do you handle teams that do not want to migrate?

Outside the mandated classes, they do not have to. Inside them, I would explain the incident and audit data, provide the client library and help from the platform team, and set a date agreed with their leadership. Exceptions are possible with a written reason and an owner for the risk.

Why insist on an execution id?

Because triggers can be delivered twice, after a timeout, a retry or a failover. The execution id lets the service recognise a repeated trigger and do nothing, so the platform can retry freely without risking a duplicate run.

8Conclusion

In this answer, we treated a central scheduling platform as an investment decision. We measured the current cost in effort, incidents and audit gaps, recognised that the platform becomes critical infrastructure needing an owning team and an SLO, and kept execution in the services by sending triggers with an execution id. We compared build, buy and open source over several years, mandated the platform only for financial, regulated and cross-team jobs, and planned a migration in waves measured against the baseline of missed and duplicate runs.

What to say in the interviewAbout 80 seconds aloud

Open with

I'd start by measuring the current cost, because without a baseline I can't justify the platform or prove it worked later. That means how much scheduling plumbing teams maintain, how many incidents came from missed or duplicate runs and what they cost, and which regulated jobs can't show an audit history.

Then, if they want more

Then I'd be honest about what a central service is: one place for history, calendars, dependencies and alerting, but also shared critical infrastructure, so it needs high availability, an owning team with on-call, and an SLO such as triggers firing within 30 seconds. If we can't staff that, we shouldn't build it.

Design-wise I'd keep execution in the services: the platform only triggers, an HTTP call or message with an execution id and business date, and the service uses the id as an idempotency key and reports the result. For build, buy or open source, I'd compare must-have features against a five-year cost including staff; building rarely wins.

I'd mandate it only for financial, regulated and cross-team or calendar-driven jobs and leave housekeeping on @Scheduled with ShedLock. Then a pilot, migration in waves where the old trigger is removed, and tracking missed and duplicate incidents against the baseline.

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 is considering offering scheduling as a central platform service...": https://scrivio-interview-library.netlify.app/spring-boot/scheduling/b3c72eb93e/