Search
Lessons (40)
- Serverless: Lambda and API Gateway
Run small event-driven code without managing servers, expose it through an HTTP API, and handle retries safely …
- Deployments: Keep Your App Running
… shop-api template: metadata: labels: app: shop-api spec: containers: - name: api image: registry.example.com/shop-api …
- API Gateway, BFF & Service Discovery
… 100 }] - path: /api/orders service: http://orders-svc:8080 plugins: [jwt-auth] - path: /api/products service: http://catalog …
- Services and Ingress: Let Traffic Find Your App
… the stable internal address yaml apiVersion: v1 kind: Service metadata: name: shop-api spec: selector: app: shop-api …
- Cluster Networking, DNS and NetworkPolicies
… PathPrefix, value: /api } }] backendRefs: - { name: shop-api, port: 80, weight: 90 } - { name: shop-api-canary, port: 80, weight …
- Internals, Upgrades, Resilience and Interview Questions
… Create Deployment API- E: Store object (after authn, authz, admission) C- API: Watch: create ReplicaSet, then Pods S …
- Advanced TypeScript for Frontend
Model real UI states safely with generics, discriminated unions, conditional types and runtime schema validation at API boundaries …
- Kubernetes Cluster Architecture, Simply
… keep 3 pods API- API: save the request Manager- API: create missing pods Scheduler- API: choose a node …
- GitOps, Progressive Delivery and Observability
… shop-api } template: metadata: labels: { app: shop-api } spec: containers: - name: api image: registry.example.com/shop-api …
- Configuration, Secrets and Storage
… shop-api-config data: LOG LEVEL: "info" PAYMENTS URL: "http://payments-api" Use it as environment variables in …
- Python Web APIs: FastAPI and Django
Build APIs in Python two ways: FastAPI with Pydantic models, dependencies and async endpoints, and Django with its …
- RBAC and Cluster Security
… prod rules: - apiGroups: [""] resources: ["pods", "pods/log"] verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind …
- REST vs GraphQL vs gRPC
… user (30 fields, needs 2) App- API: GET /users/42/posts?limit=3 API-- App: posts App- API …
- AWS Security Building Blocks
… Tokens User- API: Request orders with access token API- API: Verify token and required scope API- DB: Query …
- Docker & Containers
… docker run -d -p 3000:3000 --name api -e DATABASE URL=postgres://… shop-api:1.0 docker logs …
- REST API Design
Design APIs that are predictable and pleasant to use: resource naming, methods, status codes, pagination, versioning, errors and …
- Authentication, Authorization & API Security
… server can verify Best for Traditional web apps APIs, mobile apps, microservices Common pattern: a short-lived access …
- API Contracts, Gateways and Security
Write down clearly what your API accepts and returns, change it without breaking old apps, and check on …
- Kubernetes: Start Here
… shop-api template: metadata: labels: app: shop-api spec: containers: - name: api image: registry.example.com/shop-api …
- C4 Architecture Diagrams: Context, Container, Component and Code
… For this API, a useful component diagram answers: “When checkout happens, which parts of the API collaborate?” mermaid …
- Frontend Security
… true App- API: GET /orders (with cookie) API-- App: 200 + data ✅ (browser lets JS read it) - CORS is …
- Your Practical Kubernetes Workflow
… install shop-api ./shop-api -f values-prod.yaml -n production helm template ./shop-api -f values-prod …
- Extending Kubernetes: CRDs, Operators and Admission
… resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] validations: - expression: object.spec.template.spec.containers.all …
- Health Checks and Scaling
… shop-api spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: shop-api minReplicas: 3 maxReplicas: 20 metrics: - type …
- Count, for_each, Functions, and Stable Identities
… variable "services" { type = map(object({ port = number })) default = { api = { port = 8080 } web = { port = 3000 } } } resource "local file" "service …
- Testing, Preconditions, and Policy Checks
… Create tests/service.tftest.hcl : hcl run "api filename contract" { command = plan assert { condition = endswith(output.api config …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… 4. Thursday: Compare base small model, fine-tuned small model and large API model on accuracy, cost per …
- Frontend Testing Strategy
… 49.99 }]), ), http.post("/api/cart", () = new HttpResponse(null, { status: 201 })), ]; tsx it("lists products from the API …
- Proxies, APIs and Real-Time Protocols
… The price service is called through a slow public API with no deadline, so checkout hangs. Each job …
- Vertical Slice Architecture & the Modular Monolith
… 2. Each module has a public API (a facade or interface); everything else is internal . 3. No reaching …
- Scalable Frontend Architecture
… Put transport and response conversion behind a feature API boundary. ts export async function getOrder(id: string): Promise …
- Resources, QoS and Scheduling Control
… shop-api } This spreads shop-api pods across different nodes. Topology spread constraints (preferred for spreading) yaml topologySpreadConstraints …
- StatefulSets, DaemonSets, Jobs and CronJobs
… That is perfect for stateless web APIs, but wrong for some workloads. Need Use --- --- Interchangeable stateless copies Deployment …
- Domains, Load Balancers and HTTPS
… payload = {"status": "ok"} elif self.path == "/api/books": payload = {"books": ["Cloud Basics", "Python Basics"]} else: self.send response …
- Reusable Modules and Clear Interfaces
… The resource address is now module.api.local file.config . Add a second call named web with a …
- Serverless Architecture
… static frontend"] U -- APIG[API Gateway] APIG -- Auth["🔐 Cognito / Auth0"] APIG -- L1["λ orders API"] L1 -- DDB[(DynamoDB …
- Cross-Service Data: How to Join Without a Database JOIN
When Order Service and User Service own separate databases, learn how to compose APIs, replicate data and build …
- Design System Operations
… clear APIs, accessible behavior, tokens, examples, versioning and a path for migration. mermaid flowchart LR T[Tokens] -- P …
- State Management (Redux, Zustand, TanStack Query)
… useQuery(["products"]) Q- API: ONE request (deduplicated) API-- Q: data Q-- A: data Q-- B: data Note over …
- TypeScript Essentials
… string undefined ts // A typed API helper async function fetchJson<T (url: string): Promise<T { const response = await …