Search

Lessons (36)

  • Networking, DNS and Traffic Routing

    … application protocols run over transport (TCP/UDP), then network routing (IP), then links/physical delivery. A hostname becomes …

  • Monolith vs Microservices

    … The network is reliable. 2. Latency is zero. 3. Bandwidth is infinite. 4. The network is secure. 5 …

  • Services & Ingress

    … gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: orders spec: parentRefs: [{ name: public-gateway }] hostnames: ["api.shop …

  • Exactly-Once Payment Processing

    … A database transaction cannot include that network call. Unsafe Safe --- --- Check key → call provider → save Atomically create/get …

  • Pods

    … The roommates (containers) share the same address (IP), the same front door (network ports), and can share a …

  • SQL vs NoSQL Databases

    … when the network between servers breaks (a P artition), a distributed database must choose between: - C onsistency: refuse …

  • Helm, kubectl Cheat Sheet & Best Practices

    … scan images, pull only from trusted registries, use NetworkPolicies, keep Secrets in a vault, and enforce the Pod …

  • Architecture Patterns at Scale

    … A peer-to-peer network removes a central data path but does not remove coordination, security or abuse …

  • Capacity, Availability, Latency and CAP

    … During a network partition, a distributed store cannot guarantee both the latest value on every read and a …

  • Database Internals, Replication and Scaling

    … Compression saves storage/network at CPU cost. Choose database types by access pattern: relational, document, key-value, wide …

  • Docker & Containers

    … Images, containers, Dockerfiles, layers, volumes, networks and Docker Compose, step by step. The big idea Before shipping containers …

  • Graphs: BFS & DFS

    Graphs model networks like maps, social media and dependencies. Learn how to store a graph and explore it …

  • Time, Consistency and Distributed Transactions

    … causal ordering; vector clocks can identify concurrent updates. Network partitions can create split brain: two owners act at …

  • Kafka Producers

    … ack lost in the network ❌ P- B: retry: send R again B- B: write R again → DUPLICATE 😱 The …

  • Resilience Patterns

    … never wait forever Every network call needs a timeout. Without one, a hung dependency holds your threads, connections …

  • Debug Latency Like an Investigator

    … Test first --- --- p50 and p99 rise Broad capacity, network, deploy, or dependency issue. Only p99 rises Queueing, locks …

  • Frontend Testing Strategy

    … MSW Mock Service Worker intercepts fetch requests at the network level. Your components, hooks and data libraries run …

  • Vertical Slice Architecture & the Modular Monolith

    … enforced ✅ Strong (the network) Calls between parts In-process ✅ In-process (fast, reliable) Network (slow, can fail) Transactions …

  • JavaScript Essentials: Event Loop, Closures & this

    … So how does it handle timers, network calls and clicks without freezing? The chef delegates : "Oven, bake this …

  • ACID, Transactions & Locks

    … Keep transactions short, access tables in a consistent order, avoid network calls inside them, and monitor lock-wait …

  • REST API Design

    … Idempotency for unsafe retries ⭐ Networks fail. A client sends POST /payments , the connection drops, and the client doesn …

  • Hexagonal Architecture (Ports & Adapters)

    … HDMI for a screen, USB for controllers, a network port. The console doesn't care whether you plug …

  • D — Dependency Inversion Principle

    … plain fakes, no network const sent = []; const testService = new OrderService({ orderRepository: { save: async () = {} }, mailer: { send: async (to, text …

  • Meaningful Names

    … B3[getInvoice] end If fetch means "call the network" and get means "read from memory", great. Just be …

  • Hash Maps & Sets

    … world uses - Caches (Redis is essentially a giant networked hash map) - Database indexes (hash indexes) - Deduplication : "have we …

  • What Is Apache Kafka?

    … disks. - Zero-copy: data goes from disk to network without being copied through the application. - Batching and compression …

  • Clean Architecture

    … No database, no network, milliseconds per test. js test("rejects duplicate emails", async () = { const userRepository = new InMemoryUserRepository([{ id …

  • Kubernetes Cluster Architecture

    … Docker itself isn't required) kube-proxy Programs networking rules so traffic to a Service reaches the right …

  • Service Communication: Sync vs Async

    … N+1 over the network"] O1[Orders page] -- "GET /users/1" U1[Users] O1 -- "GET /users/2" U1 …

  • REST vs GraphQL vs gRPC

    … 3 round trips on a slow 4G network 🐢 GraphQL: ask for exactly what you need One endpoint ( POST …

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

    … Performance bottlenecks are usually the database and the network, not the language. Key takeaways - Node.js: event loop …

  • DSA Interview Patterns Cheat Sheet

    … B -- no C{Tree or graph?<br/ grid, network, dependencies} C -- shortest path / levels BFS[BFS] C -- explore …

  • API Gateway, BFF & Service Discovery

    … healthy pod. (See Kubernetes → Services & Ingress .) Service mesh: networking as infrastructure As services multiply, every one needs retries …

  • Microkernel (Plugin) Architecture

    … Git tools, linters Web browsers Rendering engine, tabs, networking Extensions (ad blockers, password managers) Webpack / Vite / Rollup Module …

  • Frontend Performance & Core Web Vitals

    … Guessing leads to useMemo everywhere and no real gain. Caching and network - HTTP caching: Cache-Control: public, max …

  • Caching & Redis

    … 100 ns On your desk Redis over the network ~0.5 ms In the next room Database with …