Search
Lessons (40)
- Imports, Moved Blocks, and Safe Refactoring
… Cross-state moves require a coordinated migration: an in-state moved block cannot move an object between independent …
- Rust: Ownership, Borrowing and Lifetimes
… borrow of moved value a println!("{b}"); // ✅ mermaid flowchart LR subgraph Stack A["a (moved ❌)"] B["b<br …
- Two Pointers & Sliding Window
… target) left++; // need bigger → move left pointer right else right--; // need smaller → move right pointer left } return null …
- Code Smells & Refactoring
… 2. Take tiny steps: rename, extract, move, one at a time. 3. Run tests after every step. 4 …
- Debug Latency Like an Investigator
… Require improved successful-request latency without moving errors or waits to another layer. Check your understanding What evidence …
- ACID, Transactions & Locks
… lived locks. The bank-transfer test A transfer moves 100 from A to B. If the service crashes …
- Normalization & Denormalization
… If I have a composite key, I move fields that depend on only part of it to reach …
- Rust: Types, Errors and Concurrency
… Two marker traits do the work: Send (can be moved to another thread) and Sync (can be shared …
- Linked Lists
… Fast & slow pointers (tortoise and hare) Two pointers move through the list: slow moves 1 step, fast moves …
- Arrays & Strings
… Remove from end arr.pop() O(1) Nothing moves Add at start arr.unshift(x) O(n) Every …
- Caching, Consistent Hashing and Sharding
… A hash ring moves only some keys when nodes change. Choose a stable shard key such as tenant …
- Cost Optimization and the Well-Architected Framework
… check Performance Insights before upsizing. Quick wins by service EC2 and containers - Right-size using Compute Optimizer; move …
- How Browsers Render a Page
… translateX(100px) runs smoothly on the GPU; moving it with left: 100px forces layout on every frame. css …
- Production Capstone and Interview Practice
… Practice a resource rename using a moved block and confirm there is no replacement. Destroy only dev application …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… Both move messages between systems, but they're built on different ideas. ![RabbitMQ routes and deletes; Kafka stores …
- Heaps & Priority Queues
… Remove = move last to root + sink down. - Top K → min-heap of size k: O(n log k …
- API Gateway, BFF & Service Discovery
… and traces for every call Trade-off: more moving parts, extra latency per hop and extra resources. Worth …
- Consumers & Consumer Groups
… rebalancing stopped the whole group; modern cooperative rebalancing moves only the affected partitions. - Static membership ( group.instance.id …
- Product-Scale Frontend Patterns
… For money movement, inventory reservation or destructive operations, prefer confirmation and a server-authoritative result. Offline-first is …
- Frontend Performance & Core Web Vitals
… browser between chunks ( await scheduler.yield() or setTimeout ). - Move heavy work off the main thread: Web Workers for …
- Vertical Slice Architecture & the Modular Monolith
… Many teams that jumped straight to microservices have moved back. A modular monolith keeps the door open: when …
- Count, for_each, Functions, and Stable Identities
… Use a moved block when you intend to preserve the original object under a new address. count remains …
- HCL, Resource Addresses, and Project Layout
… var.project) Transform a value Terraform is declarative: moving a block to the top of a file does …
- AWS Data Pipelines in Plain Language
… Creating the external table records metadata in the catalog; it does not move the source files into a …
- AWS Messaging: Queues, Topics and Events
… For example, after five failed receives, move the problematic message aside so workers can continue with other jobs …
- Design a Reliable Notification System
… Retry transient errors with backoff; move poison work to a DLQ for investigation. Watch oldest-job age, provider …
- Design a Logging and Monitoring Platform
… Processors build indexes for recent queries; older data moves to cheaper storage with slower retrieval. Logs, metrics and …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
Move slow document processing out of the HTTP request with object storage, a job table, a task queue …
- Scalable Frontend Architecture
… directory becoming the default home for product code. Move a component there only after stable behavior is needed …
- Flash Sale: 10 Million Buyers, No Oversell
… transaction. Give each intent a stable identity. 3. Move the reservation through payment-pending and confirmed states. Release …
- Premiere-Night Video Streaming
… Include a timestamp/sequence so an old device cannot move progress backward. Watch: startup time, rebuffer ratio, CDN …
- Design an E-Commerce Checkout
… If the reservation expires, a worker releases it only if the order has not moved to a paid …
- Kubernetes: Start Here
… copy crashes Starts a replacement A server fails Moves affected work to a healthy server Traffic grows Can …
- What Is Artificial Intelligence? A Developer's Guide
… generating Execute a refund Authorized business workflow Money movement must follow enforced rules For a bookstore, a recommendation …
- Payment Retries: Prevent Duplicate Charges
… One worker moves it to PROCESSING and calls the provider with that exact key. 4. On a confirmed …
- D — Dependency Inversion Principle
… That's why you can move the lamp to any room and the utility company can switch from …
- What to Learn in AI, and in What Order
… A useful way to learn it is to move from data and problem framing , to models , then to …
- Stacks & Queues
… arr.shift() is O(n) because every element moves. Fine for small arrays; slow for big queues. An …
- How a Web Request Works
… 201 Created, 204 No Content 3xx ↪️ Redirect 301 Moved Permanently, 304 Not Modified 4xx 🙋 Client made a mistake …
- Brokers, Replication & Durability
… a separate ZooKeeper cluster for metadata. KRaft mode moves metadata into Kafka itself using the Raft consensus algorithm …