Search
Lessons (40)
- API Gateway, BFF & Service Discovery
… one front door for many services](/img/microservices/api-gateway.svg) Without vs with a gateway mermaid flowchart …
- VPC Endpoints, Transit Gateway and Hybrid Networking
… Consider one NAT gateway per AZ for resilience, balanced against cost in non-production. Troubleshooting with VPC Flow …
- Serverless: Lambda and API Gateway
… A function that waits forever wastes money and makes failures harder to understand. API Gateway API Gateway receives …
- Design a Chat Application
… This lesson shows how. Words you need Word Plain meaning Everyday example --- --- --- Gateway The server your phone keeps …
- API Contracts, Gateways and Security
… The gateway (the front door of your system) checks her token: "valid, Alice is logged in." It lets …
- Cluster Networking, DNS and NetworkPolicies
… The Gateway API is its modern successor with clearer roles: Resource Owned by Purpose --- --- --- GatewayClass Infrastructure provider Which …
- VPC Networking Without the Confusion
… Check its default route, NAT gateway placement, internet-gateway route from the NAT's public subnet, and outbound …
- Design a Logging and Monitoring Platform
… Agents send to an ingestion gateway (the front door that checks who's sending and whether they're …
- Backend Design Scenarios
… How do you prevent a double charge?]( 7-a-payment-succeeds-at-the-gateway-but-your-service-times …
- Resilience Patterns
… Without it, one slow service causes a cascading failure : mermaid flowchart LR U[👥 Users] -- G[Gateway] -- O[Orders …
- AWS Interview Questions: Clear Answers
… It has a route to an internet gateway, but direct IPv4 internet communication also depends on a public …
- 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 …
- System Design Interview Framework
… Bob's app reconnects to a different gateway and asks: "Give me everything after message 120" (a cursor …
- Practical Project: Deploy a Real CRM App on EKS
… The VPC Link is AVAILABLE (if using API Gateway). 5. The API Gateway route points at the right …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… the mobile app , then the API gateway , then the checkout service , which calls the payment service . Each layer …
- Multi-Account Strategy, Governance and Security Operations
… Transit Gateway, shared egress and inspection. - Workload accounts : per team, per environment (dev, staging, prod). AWS Organizations and …
- 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 …
- NestJS Core Concepts
… OrdersService }, // alias ] constructor(@Inject("PAYMENT GATEWAY") private readonly payments: PaymentGateway) {} Injection scopes Scope New instance Use when --- --- --- DEFAULT …
- Cost Optimization and the Well-Architected Framework
… 2. NAT gateway data processing : add S3 and DynamoDB gateway endpoints; use interface endpoints for heavy services; keep …
- Cross-Service Data: How to Join Without a Database JOIN
… API composition The caller, API gateway or backend-for-frontend calls both services and joins the responses in …
- Nginx Reverse Proxy & HTTPS
… it's down, or on a different port systemctl status myapp , ss -ltnp , proxy pass port 504 Gateway …
- Linux Troubleshooting Playbook & Interview Questions
… What does a 502 Bad Gateway mean, and how do you fix it?</strong </summary The reverse proxy …
- KISS: Keep It Simple, Stupid
… 3 users, day one"] direction LR GW[API Gateway] -- MS1[User service] & MS2[Auth service] & MS3[Profile service …
- Abstraction
… implementations, such as a real or fake payment gateway. Try it yourself Design a Storage interface with save …
- 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 …
- C4 Architecture Diagrams: Context, Container, Component and Code
… br/ Checks product availability and prices"] Payment["Payment gateway adapter<br/ Infrastructure component<br/ Calls Stripe behind our …
- AWS Security Building Blocks
… Use a maintained JWT verification library or a properly configured API Gateway authorizer. Base64-decoding the payload only …
- 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 …
- EC2, Storage and Auto Scaling
… Use a public subnet with an internet-gateway route and assign a public IPv4 address for this temporary …
- AWS: Start Here
… an idle virtual machine, load balancer, database, or NAT gateway can still cost money. Storage can continue to …
- Timeouts, Retries & Backpressure
… if the browser, the gateway and the app all retry 3 times, one click becomes 3 × 3 × 3 …
- Deploy a Node.js App to a VPS, Step by Step
… check which npm 502 Bad Gateway App not running or on a different port: systemctl status , ss -ltnp …
- Clean Architecture in Depth
… one class per user action The application's behaviour changes Entities + port interfaces 🔵 Interface adapters Controllers, presenters, gateways …