Search
Lessons (40)
- REST vs GraphQL vs gRPC
… Not meant for customers.  REST: resources over HTTP …
- Processes, Services & systemd
… Use full paths ( which npm shows them) Restart=always + RestartSec=5 Restart 5 s after any exit or …
- REST API Design
… Once you've ordered one thing, you can guess how to order anything. REST (Representational State Transfer) organises …
- Monitoring, Logs & Backups
… Everybody wants restores." A backup you've never restored is a hope , not a backup. Once a month …
- Drift, Troubleshooting, and Disaster Recovery
… It produces a partial view and can leave the rest of the configuration unreconciled. After any justified targeted …
- Docker in Production on a Single Server
… ghcr.io/your-org/myapp:${APP TAG:-latest} restart: unless-stopped env file: .env environment: DATABASE URL: postgres …
- Zero-Downtime Deploys & Rollbacks
… list both instances in the upstream and restart them one at a time (a rolling restart). Nginx automatically …
- Storage Engines & Database Operations
… Keep independent backups, define retention, encrypt them, and test restoring a realistic dataset into an isolated environment. Know …
- RBAC and Cluster Security
… Enabling encryption at rest for Secrets in etcd (ideally with a KMS provider). 2. Restricting RBAC on secrets …
- Multi-Region and Disaster Recovery
… 2. Backup-restore drill: restore a backup into a fresh database. 3. Measure the real data lost (actual …
- Health Checks and Scaling
… They are easy to confuse, so keep this table nearby. ![Liveness restarts a stuck container; readiness removes a …
- Proxies, APIs and Real-Time Protocols
… 3. Restart servers one by one (a rolling restart ). Then measure these separately : 1. How many reconnects succeed …
- Bash Scripting & Scheduled Jobs
… That's how a deploy script runs npm run build , which fails, and then happily restarts the app …
- Resilience, Disaster Recovery and Multi-Region Design
… Verify encryption keys, account permissions, images, configuration, and external integrations in the recovery environment. Exercise: Rehearse restoration using …
- Hexagonal Architecture (Ports & Adapters)
… The application core sits in the middle; everything else (web UI, REST API, tests, database, email, message queues …
- IAM: Who Can Do What
… IAM restricts AWS access; application authorization restricts business access. Deliberate denied-path exercise Using a dedicated learning role …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… this. cursor }); } // memento restore(memento) { ({ content: this. content, cursor: this. cursor } = memento); } get content() { return this. content; } } const …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… Test restores regularly. Choosing quickly Need Pick --- --- Known access patterns, huge scale, low ops DynamoDB Joins, ad-hoc …
- StatefulSets, DaemonSets, Jobs and CronJobs
… DaemonSet. - Jobs need restartPolicy of Never or OnFailure , plus backoffLimit and a deadline. - StatefulSet gives identity, not database …
- Cluster Networking, DNS and NetworkPolicies
… Debug DNS: bash kubectl run -it --rm dns-test --image=busybox:1.36 --restart=Never -- nslookup shop-api …
- Internals, Upgrades, Resilience and Interview Questions
… Argo CD ApplicationSets, a service mesh or Cilium Cluster Mesh, global DNS for failover. - Practice restores. A backup …
- Multi-Account Strategy, Governance and Security Operations
… SCPs restrict member-account principals, including member root, but do not restrict the management account or service-linked …
- Python Web APIs: FastAPI and Django
… FastAPI with Pydantic models, dependencies and async endpoints, and Django with its ORM, migrations, admin and Django REST …
- Next.js Rendering: CSR, SSR, SSG, ISR & Server Components
… the restaurant hands you raw ingredients and a recipe (an empty HTML page + JavaScript). You cook at your …
- Linux Troubleshooting Playbook & Interview Questions
… app crashed; app restarting after a deploy; the app listens on a different port than proxy pass ; the …
- Developer Learning Plan and Document-Assistant Capstone
… building and restarting its service."}, {"id": "backup", "text": "Back up the database daily and test restoring the backup …
- Service Communication: Sync vs Async
… request/response One service calls another (HTTP/REST or gRPC) and waits for the answer. mermaid sequenceDiagram participant …
- DevOps and the Path from Code to Server
… Deployment is running a restaurant : the food must reach real customers, hot and safe, every day, even when …
- Deploy a Node.js App to a VPS, Step by Step
… myapp/.env ExecStart=/usr/bin/npm start Restart=always RestartSec=5 TimeoutStopSec=20 [Install] WantedBy=multi-user.target …
- Users, Permissions & sudo
… records it in the logs. bash sudo systemctl restart nginx one privileged command sudo -i a root shell …
- Resilience Patterns
… a network blip, a pod restarting. Retrying often helps, but retrying immediately and all at once can finish …
- Safe AWS Deployments with IaC and CI/CD
… true RestrictPublicBuckets: true VersioningConfiguration: Status: Enabled BucketEncryption: ServerSideEncryptionConfiguration: - ServerSideEncryptionByDefault: SSEAlgorithm: AES256 Tags: - Key: Purpose Value: academy-lab Outputs …
- Kubernetes Cluster Architecture, Simply
… head office plans and tracks; each restaurant cooks and serves. The control plane: the decision team You do …
- GitOps, Progressive Delivery and Observability
… Example PromQL for restart storms: text increase(kube pod container status restarts total[15m]) 3 Smarter autoscaling Tool …
- JavaScript Language Fundamentals
… short, no own this function greet(name = "friend", ...rest) { // default + rest parameters return Hello ${name}, and ${rest.length …
- AWS Security Building Blocks
… Encryption at rest protects stored bytes. If an attacker has authorized API access to decrypt and read a …
- Structural Patterns: How to Connect Objects
… Date.now() }); } } const logger = new WinstonAdapter(winston); // the rest of the app is unchanged logger.log("info", "Server …
- Practical Project: Deploy a Real CRM App on EKS
… Pods must be restarted after creating the association to pick it up. Step 4: security cleanup If static …
- AWS Databases: Choose the Right One
… Test restoration into a new database and record how the app would switch endpoints. A DynamoDB key example …
- Design an E-Commerce Checkout
… from "paid" and finishes it after the server restarts. How to prove it works 1. Crash at every …