Search
Lessons (40)
- Scaling, Load Balancing & Rate Limiting
… Vertical vs horizontal scaling, load balancers, stateless servers, replication, sharding, rate limiting and resilience basics. The big idea …
- Backend Design Scenarios
… Where does it live, and what happens if the rate limiter itself goes down?]( 9-design-a-rate …
- Authentication, Authorization & API Security
… authentication Weak passwords, no rate limit on login, leaked tokens MFA, rate limiting, short token lifetimes Injection (SQL …
- API Gateway, BFF & Service Discovery
… http://users-svc:8080 plugins: [jwt-auth, rate-limit: { minute: 100 }] - path: /api/orders service: http://orders-svc …
- Caching & Redis
… true }); // Rate limit: max 100 requests per minute per user const key = rate:${userId}:${Math.floor(Date.now …
- The Hot SKU Alert Problem
… The email provider starts saying "slow down" (rate limiting). Some sends time out. Did those emails go out …
- Capacity Planning, SLOs and Error Budgets
… absorb bots and static files (images, scripts) and rate-limit fairly? App Is there still headroom after losing …
- API Contracts, Gateways and Security
… that's a client bug or an attack. - Put rate limits per user or API key (e.g …
- Design a Polite Web Crawler
… Per-host request rate never goes above its limit, and other hosts keep their pace. 3. Retries: a …
- Node.js and Express
… true }) , never with cookies Rate limiting express-rate-limit (with a Redis store when you run several instances …
- Resilience Patterns
… Timeouts, retries with backoff, circuit breakers, bulkheads, fallbacks and rate limits keep one failure from taking everything down …
- Design a Reliable Notification System
… user's preferences (did they opt out?) and rate limits (don't send them 20 pushes an hour …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… With no limits, 200 workers all call the embedding API at once, hit its rate limit, and the …
- GitOps, Progressive Delivery and Observability
… registry.example.com/shop-api:2.0.0 Attach an analysis that queries Prometheus for error rate and …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… rate limits per user and tenant, token budgets and spending alerts. - Audit logging : who asked what, which model …
- CloudWatch: Know What Your App Is Doing
… That is a 10% server-error rate. An alarm based on error rate can be more informative than …
- Nginx Reverse Proxy & HTTPS
… connections open for slow phones Rate limiting, security headers, request size limits Implement them all Keep the site …
- Releases, Observability and Production Safety
… successful checkouts, latency, error rate, and business rules (one payment per order, totals add up). Rule 3: Always …
- Month 5: AI Agents and Tool Orchestration (Weeks 17-20)
… cost limits plus structured logging of every step. 4. Thursday: Give it ten tasks. Record success rate, steps …
- Async JavaScript: Promises, async/await and Node's Event Loop
… get you rate-limited. Process in small batches (or use a library such as p-limit ): js async …
- Design a URL Shortener
… Rate-limit to protect the origin servers. Owner disables a harmful link Mark it disabled in the database …
- Networking, DNS and Traffic Routing
… The proxy adds a request ID (for tracing), enforces a rate limit , and retries only safe failures (e …
- Putting AI Systems into Production
… and failure behavior Model providers can time out, rate-limit requests, change behavior, or return malformed output. Set …
- Storage Engines & Database Operations
… flush Log growth and checkpoint pressure Connection pool Limits scarce DB connections Queueing/starvation when overloaded Connection pools …
- A WhatsApp OTP Is Only Single Use If You Make It So
… The user asks for a new code (within rate limits). - If sessions live in a separate system, you …
- Portfolio and GitHub That Prove Your Skills
… URL shortener with rate limiting and analytics; order service with a queue and idempotent payments. - Frontend : dashboard with …
- Observability and Incident Response
… If failures are using that up 20 times faster than normal (a high burn rate ), something real is …
- Flash Sale: 10 Million Buyers, No Oversell
… The waiting room controls the crowd, not the stock Use rate limits (a cap on requests per user …
- Troubleshooting Playbook
… without imagePullSecrets . - Node cannot reach the registry (network, rate limit). bash kubectl describe pod <pod grep -A5 -i …
- Month 3: LLM Engineering (Weeks 9-12)
… if a provider errors or times out, retry with backoff, then fall back to another model. - Rate limits …
- AI Evaluation, Safety, and Security
… Never treat generated content as executable or trusted by default. - Abuse and misuse: apply authentication, rate limits, content …
- Debug Latency Like an Investigator
… Reports run long queries and hog the connections. Quick fix: limit report traffic, and reserve some connections just …
- Code Profiling
… Set timeouts, record dependency latency and error rate, and consider parallel work only when the operations are independent …
- Month 2: Deep Learning, PyTorch and Transformers (Weeks 5-8)
… 4. Thursday: Change learning rate, layer size and activation. Record what happens in a table. 5. Friday: Write …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… 2500 }); // "👔 manager approved" mermaid flowchart LR R[Request] -- H1[Logger] -- H2[Rate limiter] -- H3[Auth] -- H4[Route handler …
- REST API Design
… on every non-public route (see Authentication & Security ) - [ ] Rate limiting (see Scaling ) - [ ] OpenAPI documentation Key takeaways - Resources are …
- Developer Learning Plan and Document-Assistant Capstone
… Measure retrieval hit rate, answer support, appropriate abstention, citation validity, and response time separately. Twenty questions are a …
- Deploying & Operating Microservices
… 25% → 100%) to the new version, watching error rates and latency at each step. If metrics get worse …
- Containers at Scale: ECS Deep Dive and EKS
… pull-through cache for public registries to avoid rate limits. Decision guide Situation Choice --- --- Small team, a handful …
- Stacks & Queues
… Message brokers<br/ RabbitMQ, SQS, Kafka"] Q -- R["🚦 Rate limiting & buffering"] Q -- BFS["🌊 Breadth-first search"] Queue flavours …