Search
Lessons (40)
- Design a Logging and Monitoring Platform
Collect huge amounts of logs and metrics without losing the important ones, keep recent data fast to search …
- Monitoring, Logs & Backups
… Never log passwords, tokens or full card numbers. Rotating log files with logrotate Apps that write their own …
- Linux Command-Line Essentials
… config in /etc , logs in /var/log , apps often in /var/www . - Learn the core verbs: ls , cd …
- CloudWatch: Know What Your App Is Doing
Use logs, metrics, alarms, and audit records to discover a problem before users have to report it. The …
- Observability: Logs, Metrics & Traces
… Logs, the "why" A log is a timestamped record of an event. Write structured logs (JSON), not free …
- MVC, MVP & MVVM
Three patterns for separating what the user sees from the data and logic behind it. How each works …
- Bash Scripting & Scheduled Jobs
… Recent logs:" journalctl -u "$SERVICE" -n 30 --no-pager exit 1 💡 npm ci (not npm install ) installs exactly …
- Sorting Algorithms
… beating n log n Comparison sorts can't beat O(n log n). But if values are small …
- JavaScript Essentials: Event Loop, Closures & this
… run all microtasks, then one task The famous quiz js console.log("1"); setTimeout(() = console.log("2"), 0 …
- Big-O Notation Made Simple
… O(1), O(log n), O(n), O(n log n), O(n²). The steepest curve explodes fastest …
- A WhatsApp OTP Is Only Single Use If You Make It So
… Log in at the same time, or use the code up first If you can, create the login …
- Authentication, Authorization & API Security
… Click "Log in with Google" App- U: redirect to Google (+ PKCE challenge) U- G: log in + consent G …
- Multi-Account Strategy, Governance and Security Operations
… billing and Organizations only; no workloads. - Log archive : immutable, centralized CloudTrail and Config logs. - Security tooling : GuardDuty, Security …
- What Is Apache Kafka?
Kafka is a distributed, durable log of events that many systems can write to and read from at …
- Observability and Incident Response
Use metrics, traces and logs together to find out what is really broken in production, fix it, and …
- Polymorphism
… Logger = { log: (m) = console.log(m) }; class FileLogger { log(message: string) { / append to file / } } function run(logger: Logger …
- Heaps & Priority Queues
… Swap with the smaller child"] -- c c -- No e["✅ Return saved min"] The tree's height is log …
- API Contracts, Gateways and Security
… Alice logs in. She gets a valid login token. All good. 2. She opens invoice 1001 , which is …
- Linux Troubleshooting Playbook & Interview Questions
… Usual culprits are logs (vacuum journald, check logrotate), Docker images and build cache ( docker system prune ), old releases …
- Run Containers on AWS with ECR and ECS
… Create a task definition with CPU, memory, log configuration, and a task role. 3. Create an ECS service …
- DSA Interview Patterns Cheat Sheet
… O(1) O(n) O(log n) O(log n) \ O(1) at the end · \ \ when you already …
- Processes, Services & systemd
… If you see failed or activating (auto-restart) , check the logs. Logs with journalctl systemd captures everything your …
- DevOps and the Path from Code to Server
… Monitor Watch errors, speed, disk and memory Logs, uptime checks, Prometheus, Grafana Then the loop starts again with …
- Frontend Testing Strategy
… pure logic Best for pure functions: formatters, calculations, validation, reducers. ts // cart.ts export function cartTotal(items: { price …
- Async JavaScript: Promises, async/await and Node's Event Loop
… promise microtasks"] end js setTimeout(() = console.log("timeout"), 0); setImmediate(() = console.log("immediate")); Promise.resolve().then(() = console.log …
- SSH, Networking & Firewalls
… the private key never leaves your laptop. - Disable root login and passwords, but test key login in 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 …
- VPC Endpoints, Transit Gateway and Hybrid Networking
… Query logs in S3 with Athena or in CloudWatch Logs Insights. Reachability Analyzer traces a path between two …
- Pods: Where Your App Actually Runs
… a log collector reading shared log files. Init container: a short setup task that must finish before the …
- Nginx Reverse Proxy & HTTPS
… style, Docker images) /var/log/nginx/access.log , error.log Request and error logs A reverse proxy for …
- Go Web Services with Gin
… 60 time.Second, } go func() { if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { log.Fatalf …
- Collaborative Document Editing & Real-Time Sync
… each customer gets the next number. Op log A permanent, append-only list of every edit, in order …
- Troubleshooting Playbook
… read Events] C -- D[kubectl logs: what did the app say?] D -- E[Check Service, endpoints, DNS, policies …
- Users, Permissions & sudo
… Group changes apply at the next login. System users have no password and no shell. They exist only …
- D — Dependency Inversion Principle
High-level business logic should depend on abstractions, not on concrete details like databases or email providers. The …
- Docker in Production on a Single Server
… Limit them globally in /etc/docker/daemon.json : json { "log-driver": "json-file", "log-opts": { "max-size": "10m …
- NestJS Core Concepts
… every feature is a module , HTTP lives in controllers , business logic in providers , and a built-in dependency …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… It stores events in a durable, partitioned log, and consumers track their own offsets, so events stay after …
- Layered (N-Tier) Architecture
… Keep most layers closed, or the separation quickly erodes. Layers vs tiers - Layers are a logical split of …
- Zero-Downtime Deploys & Rollbacks
… Y%m%d-%H%M%S)" log() { echo "[$(date +%T)] $ "; } log "Cloning $REF into $RELEASE" git clone --quiet …