Search

Lessons (20)

  • API Contracts, Gateways and Security

    Make APIs evolvable and safe with explicit formats, versioning, idempotency, gateway policy, authentication and authorization. ![API boundary: a …

  • API Gateway, BFF & Service Discovery

    … one front door for many services](/img/microservices/api-gateway.svg) Without vs with a gateway mermaid flowchart …

  • Services & Ingress

    … Ingress, evolved The newer Gateway API splits responsibilities between roles and supports more features (header matching, traffic splitting …

  • Design a Chat Application

    … Offline push comes from the durable event, not an in-memory gateway.

  • Design a Logging and Monitoring Platform

    … logs, metrics and traces to an authenticated ingestion gateway. A durable stream absorbs bursts; processors index a bounded …

  • Resilience Patterns

    … Without it, one slow service causes a cascading failure : mermaid flowchart LR U[πŸ‘₯ Users] -- G[Gateway] -- O[Orders …

  • Timeouts, Retries & Backpressure

    … Do not give every hop its own 1,000 ms timeout. Step Budget When it expires --- ---: --- Gateway/app …

  • Which Pattern Do I Need?

    … Sub, Kafka topics, event-driven architecture Facade API Gateway, Backend for Frontend Proxy Reverse proxy, CDN, service mesh …

  • How a Web Request Works

    … failed 500 Internal Error, 502 Bad Gateway, 503 Unavailable, 504 Gateway Timeout 5. Your server code Inside the …

  • Serverless Architecture

    … mermaid flowchart LR H["🌐 HTTP request<br/ (API Gateway)"] -- F1["Ξ» createOrder"] S3["πŸ–ΌοΈ File uploaded<br/ (S3 …

  • Onion Architecture & Clean vs Hexagonal vs Onion

    … Repository / service interface in domain services Output port / gateway interface Interface the core offers Driving (primary) port Application …

  • Observability: Logs, Metrics & Traces

    … GET /checkout (total 820 ms) dateFormat x axisFormat %L section api-gateway gateway :0, 820 section orders-svc …

  • KISS: Keep It Simple, Stupid

    … 3 users, day one"] direction LR GW[API Gateway] -- MS1[User service] & MS2[Auth service] & MS3[Profile service …

  • Clean Architecture

    … interfaces they need β”‚ └── RegisterUser.js β”œβ”€β”€ adapters/ controllers, repositories, gateways β”‚ β”œβ”€β”€ UserController.js β”‚ └── PostgresUserRepository.js └── main.js composition root: wires …

  • Monolith vs Microservices

    … many deployables"] direction LR GW[API Gateway] -- US[Users svc] -- UDB[(users DB)] GW -- OS[Orders svc] -- ODB …

  • Deploying & Operating Microservices

    … across all of them. mermaid flowchart LR G["Gateway<br/ traceId=abc"] -- O["Orders<br/ traceId=abc"] -- P …

  • Data in Microservices: Sagas & the Outbox Pattern

    … Options: Approach How Trade-off --- --- --- API composition A BFF/gateway calls each service and joins in memory Simple …

  • Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor

    … store between components, an event bus, an API gateway, an orchestrator in a microservice saga. --- 5. Memento πŸ’Ύ Analogy …

  • Structural Patterns: How to Connect Objects

    … balance = 50 βœ… You've used it: Vue 3 reactivity (built on Proxy ), MobX, API gateways, CDNs (a caching …

  • Clean Architecture in Depth

    … one class per user action The application's behaviour changes Entities + port interfaces πŸ”΅ Interface adapters Controllers, presenters, gateways …