Skip to main content
SDMastery

APIs

14 topics in apis.

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.

10 min read
intermediate

REST vs GraphQL

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

7 min read
intermediate

WebSockets

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

7 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.

7 min read
intermediate

Idempotency

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

7 min read
intermediate

Rate Limiting

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

11 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.

7 min read
intermediate

gRPC

gRPC is a high-performance RPC framework by Google using Protocol Buffers and HTTP/2 for efficient, typed service-to-service communication in microservice.

11 min read
beginner

Authentication

Authentication verifies who a user is. In distributed systems, stateless token-based auth (JWT, OAuth 2.0) replaces server-side sessions for horizontal.

11 min read
intermediate

Authorization

Authorization controls what authenticated users can do. RBAC, ABAC, and policy engines enforce permissions across distributed systems without hardcoding.

10 min read
advanced

WebRTC

WebRTC enables peer-to-peer real-time audio, video, and data communication directly between browsers without plugins or intermediate servers for media.

11 min read
intermediate

RBAC

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

10 min read
intermediate

SSO

Single Sign-On lets users authenticate once and access multiple applications without re-entering credentials, using protocols like SAML 2.0 and OpenID.

11 min read