Networking
8 documents
API Design
Use REST with consistent conventions. Follow the platform API guidelines (Microsoft, Google,
API versioning and deprecation
Evolve APIs additively; when versioning is unavoidable pick one scheme and run a header-driven deprecation lifecycle.
Caching
Use HTTP caching headers. The server controls cache policy; the client honors it.
Choosing an API style (REST, gRPC, GraphQL)
Select an API style from consumer needs and traffic shape: REST for resource CRUD, gRPC for internal RPC, GraphQL for client-driven aggregation.
Design-first API development with OpenAPI
Author the OpenAPI document before implementing endpoints and treat it as the linted, machine-readable contract.
Offline and Connectivity
For apps that must work offline, design for local-first with background sync.
Pagination
Prefer **cursor pagination** for most APIs — stable under concurrent mutations, consistent
Real-Time Communication
Choose the simplest technique that meets your needs.