Skip to main content
SDMastery

APIs

14 topics in apis.

This hub groups the most useful apis topics for system design interviews and production architecture reviews. Start with the fundamentals, then open the linked deep dives for diagrams, tradeoffs, failure modes, and implementation notes.

Use these pages to compare design choices, prepare interview explanations, and connect apis decisions with scalability, reliability, latency, cost, and operational complexity.

beginner

What is an API

API design is a core skill for backend engineers and a key topic in system design interviews.

7 min read
intermediate

API Gateway

In a microservices architecture, clients should not need to know about individual service addresses.

6 min read
intermediate

REST vs GraphQL

Choosing between REST and GraphQL is a common API design decision and interview question.

5 min read
intermediate

WebSockets

WebSockets power real-time features: chat applications, live notifications, stock tickers, collaborative editing, and online gaming.

5 min read
beginner

Webhooks

Webhooks enable event-driven integrations without continuous polling. They are used by virtually every SaaS platform (Stripe, GitHub, Slack, Twilio) to.

5 min read
intermediate

Idempotency

Network failures are inevitable. Clients will retry requests. Without idempotency, retries can cause catastrophic bugs — a payment system that charges.

5 min read
intermediate

Rate Limiting

Without rate limiting, a single client can overwhelm your service (intentionally via DDoS or unintentionally via a bug).

8 min read
intermediate

API Design Best Practices

APIs are contracts — once published, they are hard to change without breaking clients. Good design from the start saves years of technical debt.

6 min read
intermediate

gRPC Explained: Protobuf, HTTP/2, Streaming and Microservices

Understand gRPC for system design: Protocol Buffers, HTTP/2, unary calls, streaming, deadlines, load balancing, and REST vs gRPC tradeoffs.

8 min read
beginner

Authentication: JWT, OAuth 2.0, Sessions and Login Design

Design authentication for distributed systems: passwords, sessions, JWT, OAuth 2.0, refresh tokens, SSO, MFA, security risks, and scaling tradeoffs.

8 min read
intermediate

Authorization: RBAC, ABAC, Permissions and Policy Engines

Design authorization for distributed systems: RBAC, ABAC, scopes, policy engines, permission checks, multi-tenancy, and security tradeoffs.

8 min read
advanced

WebRTC: Real-Time Video, Audio, NAT Traversal and SFU Design

Understand WebRTC system design: peer connections, ICE, STUN, TURN, SFU architecture, media routing, latency, and scaling real-time video.

8 min read
intermediate

RBAC

Role-Based Access Control assigns permissions to roles, not individual users. Users inherit permissions through role membership, simplifying access.

8 min read
intermediate

Single Sign-On: SAML, OpenID Connect and Enterprise Login

Design Single Sign-On for enterprise systems: SAML, OpenID Connect, identity providers, sessions, tenant mapping, security, and scaling tradeoffs.

8 min read