Search
Lessons (40)
- Capacity, Availability, Latency and CAP
… requests per second, RPS ). Cars passing a toll booth per minute. Latency How long one piece of work …
- Debug Latency Like an Investigator
… That's why latency jumps while CPU stays low: the requests aren't working, they're waiting . ❌ "Make …
- Putting AI Systems into Production
… Do not allow a model response to bypass normal authorization or business rules. Latency and cost Track requests …
- Observability: Logs, Metrics & Traces
… request duration seconds What are p50, p95, p99 latencies? js import client from "prom-client"; const httpDuration = new …
- CloudWatch: Know What Your App Is Doing
… an average latency of 100 ms can hide a subset of users waiting several seconds. Select an appropriate …
- Capacity Planning, SLOs and Error Budgets
… 1. Latency-only view: p99 is 40 ms. Looks wonderful. Wrong. 2. Success + latency view: good requests drop …
- Cross-Service Data: How to Join Without a Database JOIN
… Start with API composition for simple reads; move to replicated data or a dedicated read model when latency …
- Month 3: LLM Engineering (Weeks 9-12)
… quality, latency, cost per million tokens, context window, data privacy terms and tool-use reliability. Daily tasks 1 …
- AI Evaluation, Safety, and Security
… Measure latency and cost alongside quality. Test changes to the model, prompt, index, and preprocessing against a stable …
- Service Communication: Sync vs Async
… Total latency = sum of every hop. Any failure = whole request fails. ✅ Simple to understand and debug; you get …
- 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 …
- Deploying & Operating Microservices
… to the new version, watching error rates and latency at each step. If metrics get worse, roll back …
- Observability and Incident Response
… answer</summary Split the checkout error rate (and latency) by the region label and by the release (version …
- Resilience, Disaster Recovery and Multi-Region Design
… Route 53 health checks with failover or latency routing, or Global Accelerator for fast failover without waiting for …
- Code Profiling
… Set timeouts, record dependency latency and error rate, and consider parallel work only when the operations are independent …
- GitOps, Progressive Delivery and Observability
… http path: /metrics Alert on symptoms users feel (error rate, latency, saturation) rather than every cause. Useful cluster …
- Scaling, Load Balancing & Rate Limiting
… Measure latency and queueing before changing algorithms. L4 versus L7 Layer 4: connection-level balancing An L4 balancer …
- What to Learn in AI, and in What Order
… 6. Reliable delivery: Evaluate quality, protect data, address abuse and prompt injection, manage latency and cost, and monitor …
- EC2, Storage and Auto Scaling
… Measure request latency, CPU, memory, dependency latency, and database connections. Account for startup time before choosing an aggressive …
- Caching & Redis
… the closer the data, the faster it is](/img/backend/latency-ladder.svg) Where data lives Typical latency …
- Developer Learning Plan and Document-Assistant Capstone
… Monitor quality and latency with minimal sensitive logging. Provider integration depends on the API you select. The local …
- N+1 Queries, Loading & Pagination
… acquisition time, returned rows and p95/p99 endpoint latency. In development, log duplicate query fingerprints. In production, sample …
- Serverless Architecture
… runtimes (Node, Go, Rust), use provisioned concurrency for latency-critical paths, or edge runtimes (Cloudflare Workers, Vercel Edge …
- Resilience Patterns
… AbortSignal.timeout(2000), // give up after 2 s }); 💡 Base timeouts on the dependency's p99 latency plus a …
- Backend Design Scenarios
… scale it horizontally with autoscaling based on requests, latency and queue depth. Use a CDN for static assets …
- Cost Optimization and the Well-Architected Framework
… restore timing Performance efficiency Where is the bottleneck? Latency and utilization measurements Cost optimization What is the useful …
- Concurrency, Resilience & Distributed Workflows
… An unbounded queue only moves an outage into memory and latency. Webhook verification and retries Treat every webhook …
- Edge, Platform & Frontend Delivery
… Monitor error rate, Web Vitals and server latency after release. 5. Roll back to the previous known-good …
- A Resume That Gets Shortlisted
… service, cutting checkout errors by 32% and p95 latency from 900 ms to 220 ms. No numbers? Use …
- Design a Logging and Monitoring Platform
… app latency stays normal. 3. Measure: ingestion lag (how far behind), dropped events by type , search freshness, and …
- Monitoring, Logs & Backups
… disk] -- P[(Prometheus)] APP[App /metrics<br/ requests, latency, errors] -- P NG[nginx exporter] -- P P -- G[📊 Grafana …
- Resources, QoS and Scheduling Control
… careful with CPU limits because throttling can add latency. QoS classes Kubernetes ranks pods for eviction when a …
- Releases, Observability and Production Safety
… successful checkouts, latency, error rate, and business rules (one payment per order, totals add up). Rule 3: Always …
- AWS Interview Questions: Clear Answers
… I use multiple AZs for availability, while keeping related resources in the same Region to reduce latency and …
- L6 Production Debugging Casebook
… See [latency investigation](./debugging-latency) and [observability](./observability-and-incidents). 2. Twelve partitions and fifteen consumers What you …
- 10,000 Users Do Not Need 10,000 Database Connections
… The p95 or p99 latency means "95% (or 99%) of queries are faster than this". A few very …
- Monolith vs Microservices
… a system: 1. The network is reliable. 2. Latency is zero. 3. Bandwidth is infinite. 4. The network …
- Backend Languages: Node.js, Go, Python & Rust
… guaranteed by the compiler Performance-critical systems, low latency, low memory Steep learning curve, slower compile times The …
- Kafka Producers
… batch Higher = bigger batches, better throughput, slightly more latency batch.size Max bytes per batch per partition Bigger …
- API Gateway, BFF & Service Discovery
… every call Trade-off: more moving parts, extra latency per hop and extra resources. Worth it with many …