Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Operational cost (debugging time, incident duration) for reactive services has been consistently higher than for blocking ones in your company. How would you use this data in long-term platform decisions?

I would first make the data comparable, measuring mean time to resolve, incident rate and onboarding time per stack in the same way, and then separate the cost that is inherent to reactive programming from the cost of missing tooling or training, which can be fixed. That cost is weighed against the benefits reactive services actually deliver, such as resource use and streaming, and the result sets the default stack for new services and decides where migration pays off. Because tooling and platform features keep changing the balance, the decision is revisited periodically.

Why this question is asked

Platform decisions are often made on taste: one group loves reactive programming, another hates it, and the loudest voice wins. Consistent data about operational cost is a chance to do better, but data can mislead as easily as opinions if it is used carelessly. A higher incident duration might come from the stack, from the teams that happen to use it, or from the kinds of services it was chosen for. Interviewers ask this at the most senior level to see whether a candidate can use evidence without overreading it, and turn it into decisions that are fair to teams and good for the business. In this answer, we will make the data comparable, separate fixable cost from inherent cost, weigh it against benefits, turn it into decisions, and keep revisiting it.

1Making the Data Comparable

The first question is whether the comparison is fair. Reactive services may be the high-traffic gateways and streaming services, which have more incidents regardless of stack, while blocking services may be simple internal tools. So I would collect the same measures for each stack, normalised in ways that remove obvious differences: incidents per service per quarter and per million requests, mean time to resolve by severity, change failure rate, and onboarding time, measured as the time until a new engineer ships a meaningful change.

Then I would compare like with like where possible, for example reactive and blocking services of similar size, traffic and criticality, and look at the spread, not just the averages. If reactive services take 2.1 hours on average to resolve against 1.2 for blocking ones, but the difference comes from three services, that is a different story from a consistent gap across all of them.

Example comparison, normalised
MeasureReactiveBlockingComment
Incidents per service per quarter1.81.1after excluding the edge gateways
Mean time to resolve, sev 22.1 h1.2 hgap present in most services
Change failure rate14 percent9 percentdeploys needing a fix or rollback
Onboarding to first change5 weeks3 weekssurvey plus repository data
Infrastructure cost per 1k rps0.8 units1.0 unitsbefore virtual threads
Illustrative numbers; the method matters more than these values.

2Separating Inherent Cost From Fixable Cost

Not all of the gap belongs to reactive programming itself. I would read a sample of reactive incident reviews and classify where the time went. Some of it is fixable: no trace ids in logs because context propagation was off, unreadable stack traces because ReactorDebugAgent was not enabled, missing event-loop and pool metrics, engineers who had never been trained on reading reactive code. Some of it is inherent: asynchronous control flow is harder to follow, errors and empty results can be silent, and fewer engineers have deep experience.

This split changes the decision. If most of the gap is fixable, the right move is investment: tooling in the shared starter, runbooks, training. If the gap survives after the fixes, it is the real price of the model, and we decide whether the benefits are worth it. A good practice is to fix the cheap things first and measure again a few quarters later, so the decision rests on the inherent cost, not on a gap we could have closed.

Step throughUsing the data step by step
  1. Collect comparable metrics per stackMTTR, incident rate, change failure, onboarding
  2. Classify incident timefixable gaps versus inherent difficulty
  3. Fix tooling and training gapsstarter, runbooks, sessions
  4. Measure again after two quartersthe remaining gap is the real cost
  5. Do the benefits outweigh the remaining cost?
    YesKeep reactive where it paysNoDefault to blocking, migrate selectively
  6. Revisit yearlynew platform features change the balance

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

3Weighing the Cost Against the Benefits

Operational cost is only half of the picture. Reactive services were chosen to deliver something: lower memory and fewer instances for high-concurrency workloads, natural streaming with backpressure, efficient fan-out to many downstream calls. Those benefits must be measured too, in the same currency where possible. An infrastructure saving of 20 percent on a large gateway can outweigh an extra hour of incident time per quarter; the same saving on a small internal service is worth almost nothing.

Since Java 21, the benefit side has changed. Virtual threads give blocking services much of the concurrency that used to require reactive code, so for many workloads the resource benefit has shrunk, while the operational cost remains. Streaming and complex asynchronous composition still favour reactive. So the balance is now service-specific: positive for a few kinds of service, negative for many.

4Turning It Into Decisions

The data supports two decisions. The first is the default stack for new services: if, for typical request-response services, blocking on virtual threads costs less to run and the benefits of reactive are small, that becomes the default, with reactive allowed when a service has a stated reason such as streaming or high fan-out. The second is where migration pays off: an existing reactive service is a migration candidate when its operational cost is high, its reactive benefits are low, and it changes often enough that the simpler code will pay back the effort. A stable reactive service that rarely has incidents should stay as it is, because migration has its own cost and risk.

I would present these decisions with the data and its limits stated openly, including what we could not measure. That way teams can see the reasoning, challenge it, and trust that the same method will apply if the numbers change.

5Revisiting the Balance

Every part of this balance moves. Tooling for reactive debugging gets better; virtual threads improve with each JDK, as JDK 24 removed most pinning on synchronized blocks; teams gain or lose experience; the workloads change. So the comparison is rerun on a schedule, perhaps yearly, with the same method, and the default is adjusted if the evidence moves. A decision that can be revisited is also easier to make, because nobody has to defend it forever.

6Follow-up questions

What if one team's reactive service has excellent operational numbers?

Then study it. It may show which practices close the gap, such as good checkpoints, metrics and runbooks, and those can spread to other teams. It may also show that the service is a natural fit for reactive. Either way, one good example does not settle the default, but it tells us what fixable cost looks like when fixed.

How do you avoid making teams that chose reactive feel judged?

By framing it as a platform decision based on fleet data, not as a review of teams, and by crediting the choice as reasonable at the time. Existing services are not labelled legacy; only those with high cost and low benefit are migrated, and the teams owning them help shape the plan.

Is mean time to resolve a reliable measure?

It is noisy, because a few long incidents dominate and recording practices vary. So I would use medians as well as means, compare by severity, and combine it with other measures such as change failure rate and on-call surveys, rather than relying on one number.

7Conclusion

In this answer, we used consistently higher operational cost for reactive services as evidence for platform decisions without overreading it. We made the metrics comparable per stack, separated fixable cost from missing tooling and training from the cost inherent in reactive programming, and weighed what remained against the benefits reactive services actually deliver, which virtual threads have reduced for many workloads. The result sets the default stack for new services and picks the services where migration pays off, and the comparison is repeated periodically because tooling and platform features change the balance.

What to say in the interviewAbout 90 seconds aloud

Open with

I would use the data, but carefully. First I make it comparable: incident rate per service and per traffic, mean and median time to resolve by severity, change failure rate and onboarding time, collected the same way for both stacks, and where possible comparing services of similar size and criticality, so we are not just measuring that reactive services happen to be the busy gateways.

Then, if they want more

Then I separate fixable cost from inherent cost by reading a sample of incident reviews: missing trace ids, unreadable stack traces, no event-loop metrics and lack of training are fixable, so we fix them in the starter and in training and measure again after a couple of quarters. What remains is the real price of the model.

I weigh that against the benefits we actually get, like fewer instances for high-concurrency services, streaming with backpressure and efficient fan-out, keeping in mind that virtual threads now give blocking services much of the concurrency benefit.

That leads to two decisions: the default stack for new services, which for typical request-response services would probably become MVC on virtual threads, with reactive allowed for a stated reason; and a short list of existing services where migration pays off because cost is high, benefit is low and they change often. Stable services stay.

And I revisit the comparison every year, since tooling and JDK features keep changing the balance.

About this answer

Last updated
12 November 2026
Versions it names
Java 21, Java 24
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.
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 "Operational cost (debugging time, incident duration) for reactive services has been...": https://scrivio-interview-library.netlify.app/spring-boot/reactive-testing-and-ops/488320ae02/