Search

Lessons (21)

  • Backend Languages: Node.js, Go, Python & Rust

    A friendly tour of the four backend languages in your notes. How each handles concurrency, what it's …

  • Services & Ingress

    … Prefix backend: { service: { name: orders-api, port: { number: 80 } } } - path: /products pathType: Prefix backend: { service: { name: catalog-api …

  • API Gateway, BFF & Service Discovery

    … API gateways, Backends for Frontends, service registries, and service meshes. The big idea A big hotel has one …

  • Serverless Architecture

    … Functions as a Service, event triggers, cold starts, pay-per-use pricing, managed backends, and the patterns and …

  • Which Pattern Do I Need?

    … and SDKs 5. 📰 Observer — events everywhere, UI and backend 6. 🗺️ Strategy — pluggable algorithms (payments, pricing, auth) 7 …

  • DRY: Don't Repeat Yourself

    … TAX RATE The same validation in frontend and backend A shared schema (for example, Zod) used by both …

  • REST vs GraphQL vs gRPC

    … Not meant for customers. ![REST, GraphQL and gRPC compared](/img/backend/api-styles.svg) REST: resources over HTTP …

  • Deploying & Operating Microservices

    … latency, traffic, errors, saturation. - Correlate everything in one place (Grafana, Datadog, Honeycomb). (See Backend → Observability for the details …

  • Authentication, Authorization & API Security

    … Connect, password storage, and the OWASP risks every backend developer must know. The big idea At an airport …

  • Frontend Security

    … session=abc123; HttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=86400 💡 A popular pattern is the BFF (Backend for …

  • I — Interface Segregation Principle

    … The same idea applies at a larger scale: - Backend for Frontend (BFF): a mobile app and a web …

  • How a Web Request Works

    … database ). ![The journey of one HTTP request](/img/backend/request-journey.svg) Step by step mermaid sequenceDiagram autonumber …

  • Trees & Binary Search Trees

    … CFO[CFO] CTO -- FE[Frontend lead] CTO -- BE[Backend lead] CFO -- ACC[Accountant] You already use trees daily …

  • SQL vs NoSQL Databases

    … a document store for the same data](/img/backend/sql-vs-nosql.svg) SQL: tables, rows, relationships sql …

  • Message Queues & RabbitMQ

    … takes messages out and does the work. ![A message queue decouples the producer from the consumer](/img/backend …

  • Docker & Containers

    … operating system; containers share the host kernel](/img/backend/vm-vs-container.svg) Virtual machine Container --- --- --- Contains Full …

  • REST API Design

    … nouns in the URL, verbs in the HTTP method](/img/backend/rest-resources.svg) Rule 1: URLs are …

  • Observability: Logs, Metrics & Traces

    … metrics tell you WHAT is wrong, traces tell you WHERE, logs tell you WHY](/img/backend/three-pillars …

  • Scaling, Load Balancing & Rate Limiting

    … server bigger; horizontal scaling adds more servers](/img/backend/scaling.svg) Vertical (up) Horizontal (out) --- --- --- How Bigger CPU …

  • Database Indexing & Transactions

    … one it jumps straight to the match](/img/backend/index-scan.svg) No index (full table scan) With …

  • Caching & Redis

    … the closer the data, the faster it is](/img/backend/latency-ladder.svg) Where data lives Typical latency …