Ctrl K
Backend · Junior · Theory

Your service calls another service over the network. What problems can come up, and how do you deal with them?

~4 min by voice

How to approach it

This checks whether the candidate understands that the network is unreliable and slow, and knows the basic defenses: timeouts, retries with backoff, idempotency, a circuit breaker, a fallback and monitoring. The key subtlety is that on a timeout you don't know whether the operation went through.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsВаш сервис отправляет переводы во внешнюю платёжную систему, которая иногда отвечает по тридцать секунд или отдаёт таймаут. Как вы выстроите интеграцию, чтобы не положить свой сервис и не потерять статус платежа? SeniorDesign a distributed rate limiter for a public API: limits are set per client key, and requests are handled by dozens of gateway instances. SeniorThe main table in your database has grown to several terabytes, and a single instance can no longer keep up with the writes. How would you design the move to sharding? SeniorYour service makes synchronous calls to an external service that sometimes responds very slowly or with errors. How do you keep that from taking your service down? Mid-levelA service saves an order to the database and then publishes an "order created" event to a message broker. What problems can come up here, and how do you solve them? Mid-level

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min