Quick revision
The short answer
Neither mode should be the blanket default. We set a written rule: an endpoint is synchronous when it reliably finishes within a defined budget, such as 2 seconds at p99, and asynchronous with one standard operation resource when it can exceed that budget or depends on slow outside parties. We standardise the asynchronous shape once, never switch an endpoint between modes without a new version, and revisit the rule with measured latency data.
What to remember
In this answer, we saw that asynchronous by default makes every simple call harder, while synchronous by default breaks on long or externally dependent operations. We replaced the default with a latency budget, standardised one operation resource so SDKs can hide the polling, treated mode changes as breaking, and used measured latency and timeout data to revisit each endpoint over time.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Neither mode should be the blanket default. We set a written rule: an endpoint is synchronous when it reliably finishes within a defined budget, such as 2 seconds at p99, and asynchronous with one standard operation resource when it can exceed that budget or depends on slow outside parties. We standardise the asynchronous shape once, never switch an endpoint between modes without a new version, and revisit the rule with measured latency data.
Background to this question
Both groups of architects are right about something, which is what makes this a leadership question rather than a technical one. Asynchronous endpoints do make a platform more resilient to slow work, and they also make every integration harder. A public API lives for years and is used by customers we will never meet, so the default we choose now becomes their daily cost. In this answer, we will recap what the two styles mean, look at what an asynchronous default costs customers, see where synchronous calls really break, write the rule set, standardise the asynchronous shape, and decide how to revisit the rule with data.
1A Quick Recap: Synchronous Calls and the 202 Pattern
In a synchronous call, the client sends a request and waits on the same connection until the work is done. A POST /payments returns 201 Created with the finished payment in the body. The client has its answer in one round trip, and an error comes back as an ordinary 4xx or 5xx.
In the asynchronous pattern, the server accepts the request, returns 202 Accepted at once, and gives the client a link to an operation resource, a small object that describes the job: its id, its state (running, succeeded, failed, cancelled) and, at the end, the result or the error. The client then polls that resource or waits for a webhook, a call the server makes back to a URL the client registered. The work happens in the background, often through a queue such as Kafka or SQS, so a slow step never holds a connection open.
2What Asynchronous by Default Costs Customers
Suppose most mutating endpoints finish in 50 ms, which is typical for creating a record or updating a setting. If all of them return 202, every customer must write a polling loop or run a webhook receiver, handle a third outcome besides success and failure (still running), decide how long to wait, and cope with results that arrive after their own request has ended. A two-line integration becomes a small state machine.
That cost multiplies. Every SDK, every code sample and every support ticket now involves operation states. Customers who skip the polling and assume success create silent bugs, and those bugs reach our support team. Notice also that the resilience benefit is small for fast calls: an operation that finishes in 50 ms rarely fails because of its own duration. So asynchronous by default buys uniformity for the platform team and charges it to every customer, even for calls that never needed it.
3Where Synchronous Calls Really Break
Synchronous calls have a hard ceiling. Load balancers, API gateways, proxies and client libraries all have timeouts, and many sit around 30 seconds; mobile clients and serverless callers often give up sooner. An operation that can run longer than that, such as provisioning a database, generating a large report or waiting for a bank or a shipping partner, will sometimes be cut off mid-way. The client then does not know whether the work happened, which is the worst possible outcome for a mutating call.
The same risk applies to operations that depend on slow outside parties even if they are usually quick. A card verification that takes 300 ms most of the time but 40 seconds when the issuer is struggling must be designed for the 40 seconds. So the question to ask of each endpoint is not how fast it is on average, but how slow it can be at the tail and whose systems that tail depends on.
4The Rule Set: Let a Latency Budget Decide
Instead of a default, we publish a rule that each endpoint is measured against. The budget makes the choice mechanical, so teams do not argue about it endpoint by endpoint.
| Situation | Mode | Example |
|---|---|---|
| Finishes within 2 s at p99, no slow outside dependency | Synchronous, 200 or 201 | Create a customer, update a setting |
| Can exceed the budget, or near gateway timeouts (about 30 s) | Asynchronous, 202 + operation | Provision an environment, bulk import |
| Depends on a slow or unreliable third party | Asynchronous, 202 + operation | Bank transfer, KYC check |
| Mode change on an existing endpoint | New version or new endpoint only | v2 of /exports returns 202 |
The last rule matters more than it looks. Changing an endpoint from 201 to 202 breaks every client that expects the result in the body, so it is a breaking change and needs a new version or a new endpoint. That is also a reason to decide carefully up front: if an operation is likely to grow slow, for example because it will soon call a partner, it should start asynchronous.
5Standardise the Asynchronous Shape Once
Where we do go asynchronous, every team must implement it the same way. If one team calls it a job, another a task and a third returns a Location header with a different state model, customers learn three patterns and SDKs cannot help. So the platform defines one operation resource and its rules: the states, the error format, how to cancel, how long results are kept, how webhooks are signed and retried, and the Retry-After header that tells clients how often to poll.
Because the shape is identical everywhere, our SDKs can hide the polling completely. A customer calls client.exports().create(request).await() and gets the finished export, while the SDK polls with backoff underneath. That removes most of the integration cost the second group worried about, but only for customers who use the SDK, which is why we keep fast calls synchronous anyway.
6Revisiting the Rule With Data
A rule set at design time is a guess, so we attach measurements to it. Every endpoint reports its latency distribution (p50, p99, p99.9) and the client-side error rate, including timeouts seen at the gateway. When an endpoint's p99 drifts towards the budget, or timeouts appear, it becomes a candidate for an asynchronous version. When an asynchronous endpoint turns out to finish in 100 ms almost always, we may offer a synchronous variant in the next version.
This also settles the argument between the two groups in a way both can accept. The asynchronous camp gets a standard, well-built pattern and a clear trigger for using it. The synchronous camp gets simple calls where they are safe. And nobody has to win the debate by authority, because the data decides each case.
7Follow-up questions
What if a synchronous endpoint occasionally exceeds the budget?
Then we look at why. If the slow cases come from a dependency that can be slow by nature, the endpoint should get an asynchronous version. If they come from our own inefficiency, such as a missing index, we fix the cause and keep it synchronous. In the meantime we make the synchronous call safe to retry with an idempotency key, so a client that times out can send the same request again without creating a duplicate.
Should we offer both modes for the same operation?
Sometimes, as a deliberate choice. A pattern that works well is a synchronous endpoint with an optional Prefer: respond-async header, or a separate asynchronous endpoint for bulk variants. But each extra mode is more surface to document and test, so we add one only when real customers need both, not to avoid making a decision.
Why not let each team choose?
Because customers see the platform as one API. If each team chooses, the same kind of operation behaves differently across resources, and SDK authors and customers carry that inconsistency forever. Teams still make the call for their endpoints, but against the shared rule and with the shared shape, and an API review checks it.
8Conclusion
In this answer, we saw that asynchronous by default makes every simple call harder, while synchronous by default breaks on long or externally dependent operations. We replaced the default with a latency budget, standardised one operation resource so SDKs can hide the polling, treated mode changes as breaking, and used measured latency and timeout data to revisit each endpoint over time.
Open with
I would not pick either mode as a blanket default. Asynchronous everywhere means a customer creating a simple record in 50 milliseconds still has to poll an operation, handle a running state and deal with late results, and that cost lands on every integration and every support ticket.
Then, if they want more
Synchronous everywhere breaks for operations that can run past gateway and client timeouts, which are often around 30 seconds, or that depend on slow third parties like banks, because a timed-out mutation leaves the client unsure whether it happened.
So I would set a rule: an endpoint is synchronous when it reliably finishes within a budget, say 2 seconds at p99, with no slow external dependency, and asynchronous with a standard 202 and operation resource otherwise. Switching an existing endpoint between modes is a breaking change, so it needs a new version.
Then I would have the platform team define the asynchronous shape once, with the states, errors, cancel, retention, webhooks and Retry-After, so every team builds it the same way and our SDKs can hide polling behind a simple await.
Finally, I would make it data-driven: every endpoint reports p99 latency and client timeout rates, and we move an endpoint to an asynchronous version only when the data shows it needs one. That gives both groups what they actually care about, and it turns the argument into a measurement.
About this answer
- Last updated
- 13 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 official documentation for the version you use. 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 "As the senior technical leader, how do you decide between synchronous and asynchronous...": https://scrivio-interview-library.netlify.app/architecture/api-design-at-scale/af439e786f/