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.

MediumSystem Design
45 practiced

Design an API and server-side protocol for resumable uploads supporting 10k concurrent clients, files up to 200MB, and intermittent mobile connectivity. Specify endpoints for initiating an upload, uploading chunks, resuming, validating integrity, and finalizing. Explain what server state you would persist, how idempotency applies at each step, and how you would handle abandoned uploads and abuse.

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.

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
59 practiced

Design an API response schema that minimizes overfetch for a messaging app where clients show lightweight previews on list screens and full threads on detail screens. Describe the endpoints, your field-selection strategy, and how you would avoid transferring heavy attachments unless they are actually requested.

MediumSystem Design
44 practiced

Describe how you would design API pagination and sync endpoints for a mobile app that must support partial offline sync. The endpoints should let the client reconcile local mutations with server state and fetch only deltas since the last sync point. Provide the high-level request/response contract and how you would surface conflicts to the caller.

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