Search
Lessons (40)
- Caching & Redis
… GET product:42 alt cache hit ✅ Cache-- App: data (0.5 ms) else cache miss ❌ Cache-- App: null …
- Caching, Consistent Hashing and Sharding
… Cache with a freshness limit, and share misses Cache product reads with a clear freshness limit (for example …
- CloudFront: Faster Websites and Safer File Delivery
Put CloudFront in front of a static site or S3 files so visitors use nearby cached copies while …
- Edge, Platform & Frontend Delivery
Choose rendering, middleware, caching and deployment boundaries deliberately so a frontend is fast globally, safe to release and …
- Design a URL Shortener
… client - API - validate destination - create durable mapping - cache mapping Open link: browser - CDN/redirect API - cache - mapping database …
- Backend Design Scenarios
Ten production-style backend questions about caching, data growth, scaling, reliability and system design, with structured answers and …
- AWS Databases: Choose the Right One
Choose SQL, key-value, or cache storage by the problem you need to solve, then protect it with …
- Docker & Containers
… redis://cache:6379 depends on: db: { condition: service healthy } cache: { condition: service started } db: image: postgres:17 environment …
- Product-Scale Frontend Patterns
… It should have a known rollback path. mermaid sequenceDiagram participant U as User participant C as Client cache …
- Premiere-Night Video Streaming
… 1. Cold-cache launch drill: empty the caches, then simulate the 8:00 PM rush. 2. Region-shift …
- How a Web Request Works
… DNS translates them, with caching at every level: the browser, the OS, your router and your ISP. mermaid …
- Frontend Performance & Core Web Vitals
… Guessing leads to useMemo everywhere and no real gain. Caching and network - HTTP caching: Cache-Control: public, max …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… create the distribution The cache policy ID below is AWS's managed CachingOptimized policy. Use the regional bucket …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… Batching raises throughput and can raise latency. - Caching : exact-match response cache, semantic cache for similar questions, and …
- Scalable Frontend Architecture
… Fetch it through a cached query close to its feature; invalidate or update that cache after a successful …
- State Management (Redux, Zustand, TanStack Query)
… TanStack Query ⭐ About 80% of "global state" in typical apps is really cached server data . It has special …
- Interfaces vs Abstract Classes
… an interface for the contract, and an abstract class as a convenient starting point. ts interface Cache { get …
- Structural Patterns: How to Connect Objects
… lazy loading, caching, access control, logging, validation. js const user = { name: "Ana", role: "user", balance: 100 }; // JavaScript has …
- Node.js and Express
… The Retainers panel shows the reference chain keeping them alive, usually an unbounded cache, a global map, an …
- REST vs GraphQL vs gRPC
… one WHERE author id IN (...) . GraphQL challenges: HTTP caching is harder (everything is a POST to one URL …
- Month 3: LLM Engineering (Weeks 9-12)
… Output tokens usually cost several times more. - Prompt caching : providers discount repeated prompt prefixes such as long system …
- React Hooks in Practice
… They handle caching, deduplication, retries and race conditions for you. You might not need an effect Effects are …
- Code Profiling
… Start by timing the request and logging the number of records—not by adding a cache immediately. ts …
- Networking, DNS and Traffic Routing
… Its weakness is caching: you can't take back an answer already given. Anycast With anycast , the same …
- CI/CD with GitHub Actions
… 22 cache: npm reuse downloaded packages between runs - run: npm ci - run: npm run lint - run: npm test …
- Multi-Region and Disaster Recovery
… Needs stronger copying. - Analytics, browse caches: losing a few minutes is fine. ❌ Wrong: one RPO for everything. Either …
- Nginx Reverse Proxy & HTTPS
… compression and caching static files nginx Inside the server block gzip on; gzip types text/css application/javascript …
- Design a Social Media Feed
… Someone makes their account private, but their old posts still show in followers' cached feeds. This lesson is …
- Scaling, Load Balancing & Rate Limiting
… balancer + many stateless app servers"] S3 -- S4["4️⃣ Cache (Redis) + CDN for static files"] S4 -- S5["5️⃣ DB …
- API Gateway, BFF & Service Discovery
… http://catalog-svc:8080 plugins: [cache: { ttl: 60 }] ⚠️ Keep business logic out of the gateway. It should route …
- NestJS Core Concepts
… logging, caching, mapping responses Plating the dish Exception filter @Catch Turn exceptions into HTTP responses Handling complaints Modules …
- Next.js Rendering: CSR, SSR, SSG, ISR & Server Components
… The more stays on the server, the less JavaScript your users download. Controlling caching in the App Router …
- Which Pattern Do I Need?
… simple entry point"] -- FA[Facade] P7["Control access, cache,<br/ lazy-load"] -- PR[Proxy] P8["Tree of items …
- AWS Security Building Blocks
… Use an application-appropriate cache to avoid fetching on every request, and design how that cache refreshes after …
- Linked Lists
… One contiguous block Nodes scattered, linked by pointers Cache friendliness ✅ great ❌ worse Insert after a node: just rewire …
- Proxies, APIs and Real-Time Protocols
… over HTTPS Familiar to everyone, and easy to cache. Fast typed call between your own services gRPC / RPC …
- System Design Interview Framework
… When data changes we delete the cached copy. A user may see old data for up to 60 …
- Database Internals, Replication and Scaling
… a cache in front of the database can cause the same "no order" bug if it stored "not …
- Storage Engines & Database Operations
… age, slow-query fingerprints, lock waits, replica lag, cache hit rate, WAL/checkpoint or compaction work, disk growth …
- SQL vs NoSQL Databases
… Redis for caching, Elasticsearch for search, Cassandra for huge write volumes. Using several databases for different jobs is …