Search
Lessons (40)
- Storage Engines & Database Operations
… a bounded pool protects the primary while WAL, backups and replicas provide recoverability](/img/database/storage-operations.svg …
- Polymorphism
… polymorphism without inheritance "If it walks like a duck and quacks like a duck, it's a duck …
- Preparing for Technical Interview Rounds
… Big-O Code Clean names, small functions Test Walk through an example and an edge case System design …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… 2), mul(num(3), num(4))); walk(evaluate)(expression); // 14 walk(print)(expression); // "(2 + 3 × 4)" You've …
- Timeouts, Retries & Backpressure
… Every step spends part of it, like spending money from one wallet. ❌ Wrong: every step gets its own …
- O — Open/Closed Principle
… method === "crypto") { return coinbase.charge(order.total, order.wallet); } // Next month: Apple Pay → edit again. Then Klarna → edit …
- Time, Consistency and Distributed Transactions
… It only counts forward and never jumps when the wall clock is corrected. (The wall clock can jump …
- How Browsers Render a Page
… 4. Measure where every wall goes ( layout ). 5. Paint the walls ( paint ). 6. Stack the floors together ( composite …
- Composition over Inheritance
… string) { return ${name} swims through the water ; } } class Walk implements Movement { move(name: string) { return ${name} walks along …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… Put walls around each dependency - Bulkheads: give each service you call its own limited pool. Slow email calls …
- Behavioral Patterns I: Observer, Strategy, Command, State
… Strategy 🗺️ Analogy: Google Maps offers routes by car, bike, walking or transit. Same goal (get from A …
- N+1 Queries, Loading & Pagination
… Ask which fields the endpoint truly renders. Offset versus cursor pagination Offset asks the database to walk past …
- Database Internals, Replication and Scaling
… a replica is fine. Walk through a failure A replica falls 30 seconds behind during a big sale …
- Networking, DNS and Traffic Routing
… This lesson walks through the path a request takes, so you know where each failure can hide. Words …
- The L6 System-Design Thinking Loop
… can retry on its own without touching payments. Walk through a failure The payment company charges the buyer …
- D — Dependency Inversion Principle
… It has a plug , and the wall has a socket . Both depend on a shared standard, the socket …
- Capacity Planning, SLOs and Error Budgets
… A slow, steady burn means "pause risky releases and do reliability work". Walk through a failure Checkout starts …
- Getting Interview Calls from LinkedIn
… with a code snippet or diagram) - A project walkthrough or bug story - A short take on a tool …
- Comments & Formatting
… save(html) { / … / } Blank lines separate ideas js // ❌ A wall of text function checkout(cart){const total=sum(cart …
- Linked Lists
… Access i-th element O(1) O(n): walk from the head Insert/delete at start O(n …
- Two Pointers & Sliding Window
… They meet in the middle having checked everything in one pass . ![Two pointers walking toward each other on …
- Arrays & Strings
… Because the lockers are side by side and numbered, you can walk straight to locker 42 without opening …
- Interfaces vs Abstract Classes
… the walls, roof and plumbing are already done, and you finish the rooms your own way. You can …
- Layered (N-Tier) Architecture
… A customer never walks into the storeroom, and the storeroom never talks to customers. Each layer only talks …
- DSA Interview Patterns Cheat Sheet
… Code<br/ clean names"] -- T["6️⃣ Test<br/ walk through"] -- X["7️⃣ Complexity<br/ time + space"] 1. Understand …
- Big-O Notation Made Simple
… Double the houses, double the work. - O(n²): at every house, you walk back to visit every other …
- Creational Patterns: How to Make Objects
… 5, abilities: ["walk", "attack"], describe() { return ${this.type}: ❤️ ${this.health}, 🏃 ${this.speed} ; }, }; // Clone the prototype, then change only …
- The Hot SKU Alert Problem
… Also check each user's notification preferences and each provider's limits before sending. Walk through a failure …
- Vertical Slice Architecture & the Modular Monolith
… Neighbours can't walk into each other's kitchens; they knock (a public interface). A modular monolith is …
- Code Profiling
… Slow dependency, lock contention, exhausted pool Keep separate wall-clock time (how long the user waited) from CPU …
- JavaScript Language Fundamentals
… When a property isn't found on the object, JavaScript walks up the chain. mermaid flowchart LR rex …
- Batch vs Stream and Data Modeling
… a way to trace every number back to the original records it came from. Walk through a failure …
- Architecture Patterns at Scale
… Use serverless for bursty, short jobs (resize an image on upload). Walk through a failure The catalog goes …
- ACID, Transactions & Locks
… success A committed payment record is recovered from WAL/replication. Consistency is not a promise that every replica …
- OOP Mistakes and Interview Questions
… For example, PaymentMethod.pay(amount) is implemented by CardPayment , PayPalPayment and WalletPayment . Checkout code calls method.pay(total …
- Multi-Region and Disaster Recovery
… and failing back (moving home to A again). Walk through a failure Region B is now in charge …
- Design a Reliable Notification System
… B right now." You may send it twice. Walk through a failure The email provider accepts a receipt …
- Design a Logging and Monitoring Platform
… search can't stop new logs coming in. Walk through a failure The indexer (the part that makes …
- Design a Social Media Feed
… A private post shown to the wrong person is a real bug. Walk through a failure The fan …
- Design an E-Commerce Checkout
… A timeout is not a known failure. Walk through a failure The payment call times out . Did the …