Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your products depend on several third-party services (payments, identity, messaging) whose outages have caused your outages. What long-term strategy would you set for critical external dependencies?

I would start with an inventory of critical vendors, recording each one's SLA, real incident history and what breaks for us when it fails. For each, we design graceful degradation, such as queueing work to retry later, switching to an alternative provider, or offering a reduced feature, so that their outage is not automatically ours. Contracts and SLAs give us leverage and credits, not availability, so for the most critical vendors we consider a second provider behind our own interface, and we review the list yearly and exercise these failures in game days.

Why this question is asked

Every product today leans on outside services: a payment processor, an identity provider, an SMS or email gateway. When one of them has a bad hour, customers do not blame the vendor, they blame us. A senior leader is expected to treat this as a design and investment problem, not as bad luck. Interviewers ask this question to see whether we can set a strategy that lasts, balance cost against risk, and make teams act on it. In this answer, we will build the dependency inventory, design degradation for each vendor, look at what contracts can and cannot do, decide when a second provider is worth it, and keep the strategy alive with reviews and game days.

1Know Which Vendors Can Hurt Us

We cannot protect against dependencies we have not listed. The first step is an inventory of every external service on a customer-facing path, owned by a named team. For each vendor we record the contracted SLA, the actual availability we measured over the last year, the incidents it caused us, and, most importantly, the impact of its failure: which user journeys stop, and roughly what an hour of that costs.

The reason to record measured availability next to the SLA is that they often differ. A vendor promising 99.9 percent allows about 8.8 hours of downtime a year, and if our checkout depends on three such vendors in series, our checkout can be down for up to about 26 hours a year from vendors alone. Seeing that number written down is usually what gets the work funded.

Example critical vendor register
VendorIf it failsCost per hourPlan
Payments processorno checkouthighqueue + second provider
Identity providerno new loginshighkeep sessions alive, cached keys
SMS gatewayno one-time codesmediumfallback to email or app codes
Email senderreceipts delayedlowqueue and retry later

2Design Graceful Degradation for Each One

For each vendor we ask the same question: what is the best experience we can still offer while it is down? The answers fall into a few patterns. Queue and retry later works when the work does not need to finish now, such as sending receipt emails or syncing to a CRM, so we accept the request, store it durably, and deliver when the vendor returns. An alternative provider works when the function is a commodity, such as SMS, where a second gateway can take traffic. A reduced feature works when there is a simpler path, such as letting already signed-in users continue when the identity provider fails, because we validate their tokens locally with cached signing keys.

Notice that each pattern must be built before the outage. We also need timeouts and circuit breakers on every vendor call, so that a slow vendor makes us fail fast into the degraded path instead of holding threads until our own service falls over.

3Use Contracts, but Do Not Rely on Them

Contracts and SLAs are worth negotiating. They give us service credits, defined support response times, notice of planned maintenance and an escalation path to engineers during an incident. They also tell us something about the vendor's engineering maturity.

But an SLA is a promise about compensation, not about uptime. A credit of 10 percent of the monthly fee does not cover a lost day of sales, and the vendor's status page often turns red after our customers have already noticed. So the strategy treats contracts as one input and never as the availability plan. Our own monitoring of each vendor, with synthetic checks and per-vendor error rates, is what tells us when to switch into degraded mode.

4A Second Provider Behind Our Own Interface

For the few vendors whose failure stops revenue, usually payments, we consider a second provider. The design rule is that application code never talks to a vendor's SDK directly. It calls our own interface, such as PaymentGateway, and adapters translate to each provider. Routing logic can then send traffic to provider B when provider A's error rate rises, or split traffic permanently so both stay warm.

Java
interface PaymentGateway {
PaymentResult charge(ChargeRequest request); // our model, not the vendor's
}
class FailoverPaymentGateway implements PaymentGateway {
public PaymentResult charge(ChargeRequest r) {
if (primaryBreaker.isOpen()) {
return secondary.charge(r); // provider B takes the traffic
}
return primary.charge(r); // provider A, normal path
}
}

This is expensive, and we should be honest about it. Two integrations to maintain, two sets of certifications, reconciliation across providers, and features that only one provider supports. So we reserve it for dependencies where an hour of outage costs far more than the yearly cost of the second integration, and for everything else we rely on degradation.

5Keep It Alive With Reviews and Game Days

A strategy written once decays. Vendors change, new ones get added quietly, and fallback code that never runs stops working. So we review the vendor register every year, or when a contract renews, and update the impact and the plan. New vendors on critical paths go through a short design review that asks for the degradation plan before launch.

We also include vendor failures in game days, planned exercises where we simulate a failure on purpose and watch what happens. We block the payment provider in a staging environment, or in production for a small share of traffic for mature teams, and check that the queue fills, the second provider takes over, and the alerts fire. A degradation path that has never been exercised should be assumed broken.

Step throughYearly cycle for each critical vendor
  1. Update registerSLA, measured uptime, incidents, impact
  2. Failure stops revenue?
    YesConsider a second providerNoDegradation is enough
  3. Build or check the degraded pathqueue, alternative, reduced feature
  4. Game daysimulate the vendor outage
  5. Fix what failedtrack actions to completion

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

6Follow-up questions

How do you justify the cost of a second payment provider?

With numbers from the register. If checkout earns 50,000 per hour and the provider caused 6 hours of outage last year, that is about 300,000 of lost sales before reputational damage. If the second integration costs less than that per year, the decision is easy. If it costs much more, we invest in queueing and retries instead.

What do you do during a vendor outage that you have no plan for?

Switch to the simplest safe behaviour: fail fast with a clear message rather than hanging, stop retries that add load, tell customers through our status page, and keep a log of affected requests so we can complete them later. Afterwards the incident review adds that vendor to the register with a real plan.

Who owns each vendor dependency?

A named product team owns each integration and its degradation plan, while a platform or architecture group owns the register, the review process and the shared patterns such as circuit breakers and outbound queues.

7Conclusion

In this answer, we set a long-term strategy for critical external dependencies. We start with a register of vendors, their SLAs, measured incidents and business impact, design graceful degradation for each one, and treat contracts as leverage rather than as an availability plan. For the few vendors that stop revenue we put a second provider behind our own interface, and we keep the whole strategy honest with yearly reviews and game days.

What to say in the interviewAbout 90 seconds aloud

Open with

I would treat vendor outages as our outages and plan for them. First I would build a register of every external service on a customer path, with an owner, its SLA, the availability we actually measured, the incidents it caused, and what it costs us per hour when it fails.

Then, if they want more

That usually shows that three 99.9 percent vendors in series give us a lot of downtime we did not choose.

Second, for each vendor I would design graceful degradation ahead of time: queue and retry later for things like email and CRM sync, an alternative provider for commodity services like SMS, and a reduced feature for things like identity, where signed-in users keep working on cached keys.

Every vendor call gets timeouts and a circuit breaker so we fall into that path quickly. Third, contracts: I would negotiate support terms and credits, but I would be clear with the business that an SLA is compensation, not availability.

Fourth, for the one or two vendors whose failure stops revenue, usually payments, I would put a second provider behind our own interface and route by health, accepting the cost because the numbers justify it.

Finally, I would keep it alive with a yearly review of the register, a design review for new critical vendors, and game days where we deliberately cut a vendor off and check that the fallback really works.

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.
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 products depend on several third-party services (payments, identity, messaging)...": https://scrivio-interview-library.netlify.app/spring-boot/resilience/77752f90c6/