InterviewStack.io LogoInterviewStack.io

API and Interface Design for Distributed Services Questions

Designing the contracts between services and clients: REST, gRPC, and GraphQL tradeoffs, versioning and backward compatibility, pagination, rate limiting, and idempotent endpoints. Covers request/response modeling, error contracts, and API gateway responsibilities. Focuses on the interface layer that ties distributed components together, not internal data schemas.

MediumTechnical
59 practiced

Compare Server-Sent Events, WebSockets, and long-polling for delivering live updates to a collaborative dashboard with thousands of concurrent users. Recommend an approach that balances connection cost and server load, explain the delivery guarantee (at-least-once vs exactly-once) you can realistically promise callers, and how older clients or unreliable mobile networks should fall back.

MediumTechnical
61 practiced

You are designing an API for a social feed consumed by both mobile and web clients, and the mobile team keeps complaining the responses are heavy and hard to work with. Walk through how you would shape the API to minimize client complexity, and justify your protocol choice given the mobile bandwidth constraints.

That is every published API and Interface Design for Distributed Services question for Frontend Developer so far. Browse the other topics in this category, or practice this one interactively.