Search
Lessons (26)
- JavaScript Essentials: Event Loop, Closures & this
… Visual explanations of the event loop, microtasks, closures, and how 'this' is decided. Part 1: The event loop …
- Async JavaScript: Promises, async/await and Node's Event Loop
… what runs in which order Node's event loop (built on libuv ) runs in phases . Between every callback …
- Indexes, EXPLAIN & Query Plans
… Follow the same loop every time: find the query, explain it, diagnose the cause, fix one thing, and …
- Backend Languages: Node.js, Go, Python & Rust
… one thread + event loop"] EL(("🔁 event loop")) -- IO1[DB call → wait in background] EL -- IO2[HTTP call → wait …
- The L6 System-Design Thinking Loop
… invariant first, then scale, failure, recovery and blast radius](/img/system-design-l6/design-loop.svg) Five questions …
- Choosing a Programming Language
… counting + GC) Garbage collected Ownership , no GC Concurrency Event loop + async/await asyncio , threads (GIL), processes Goroutines + channels …
- Extending Kubernetes: CRDs, Operators and Admission
… create, update, delete A A -.- events C This reconcile loop must be idempotent and level-triggered : it looks …
- Node.js and Express
… 1] & C2[Client 2] & C3[Client 3] -- EL(("🔁 Event loop<br/ one JS thread")) EL -- "start I/O …
- Hash Maps & Sets
… n) time instead of O(n²) with nested loops Pattern 2: "What do I need to complete it …
- Linked Lists
… a fast runner eventually laps the slow runner. If the list has a loop, fast and slow will …
- React Hooks in Practice
… event useEffect(() = { if (submitted) sendAnalytics(); }, [submitted]); // ✅ Do it in the event handler function handleSubmit() { sendAnalytics(); } The infinite loop …
- Stacks & Queues
… task scheduling, message brokers, the event loop, BFS.
- Code Profiling
… why is the object still reachable? Typical owners are unbounded maps, event listeners that were never removed, timers …
- Troubleshooting Playbook
… status, describe events, logs, then network, then node. - --previous is the key flag for crash loops. - Empty endpoints …
- 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 …
- JavaScript Language Fundamentals
… The event loop, closures and this are explained visually in Frontend → JavaScript Essentials ; async code on the server …
- Concurrency, Resilience & Distributed Workflows
… Preserve the original event for audit and put permanently invalid events in a dead-letter queue. Outbox, eventual …
- Python Web APIs: FastAPI and Django
… libraries (httpx, asyncpg) async def Runs on the event loop Blocking calls (requests, sync SQLAlchemy, time.sleep ) def …
- What Is Software Architecture?
… inside an app (Layered, Clean, Hexagonal, Onion), the domain (DDD), and the whole system (microservices, event-driven, serverless …
- Go Concurrency: Goroutines, Channels and Context
… closing jobs ends the workers' loops, and closing results (after wg.Wait() ) ends the collector's loop. Pipeline …
- Linux Troubleshooting Playbook & Interview Questions
… Look for slow database queries, a stuck external API, or the event loop blocked by heavy CPU work …
- Internals, Upgrades, Resilience and Interview Questions
… How do you debug a pod in CrashLoopBackOff? describe for events and exit code, logs --previous for the …
- Observability and Incident Response
… for delivery". Log A written note about one event. A ship's logbook entry. SLO A promise about …
- The Hot SKU Alert Problem
… The row is locked for minutes. ✅ Right: commit price + outbox event in milliseconds. A publisher sends the event …
- Month 3: LLM Engineering (Weeks 9-12)
… send tokens to the user as they are produced (Server-Sent Events). Slow answers feel fast. - Cost = input …
- Practical Project: Deploy a Real CRM App on EKS
… Node capacity and pod events ContainerCreating (stuck) Image, network or volume setup Pod events ImagePullBackOff Wrong tag or …