Search
Lessons (40)
- Binary Search
… If capacity C works, every bigger capacity works too, so the condition flips once. Binary search the capacity …
- Capacity Planning, SLOs and Error Budgets
… Define the measurement carefully. A small capacity estimate Suppose a ticket sale expects 2 million visits in one …
- Capacity, Availability, Latency and CAP
… a design chooses latency targets, availability targets and a partition-time consistency policy](/img/system-design-l6/capacity …
- EC2, Storage and Auto Scaling
… operating system, updates, application, and capacity are your responsibility. Use EC2 when you need server control. For a …
- Containers at Scale: ECS Deep Dive and EKS
… more Pods but no capacity The API's horizontal scaler requests ten replicas. Some remain Pending. Increasing the …
- Storage Engines & Database Operations
… Bound pool size, reserve capacity for critical traffic, set deadlines and investigate long transactions or slow queries. Backups …
- Backend Design Scenarios
… Read replicas copy data and increase read capacity but do not increase primary write capacity. Sharding splits ownership …
- Arrays & Strings
… mermaid flowchart LR A["capacity 4<br/ ■■■■ full"] -- push → copy to bigger B["capacity 8<br/ ■■■■■□□□"] B -- 3 …
- Resilience, Disaster Recovery and Multi-Region Design
… Pre-provision capacity rather than depending on scaling during an AZ failure. - Use timeouts, retries with exponential backoff …
- Pods: Where Your App Actually Runs
… A random large request wastes capacity; no request makes scheduling and autoscaling less reliable. Four debugging commands to …
- Serverless: Lambda and API Gateway
… AWS manages execution capacity, while you still own application correctness and permissions. “Serverless” does not mean there are …
- Database Internals, Replication and Scaling
… replicas add read capacity only. Every write still goes to the one primary, so more replicas do not …
- Networking, DNS and Traffic Routing
… So: - Write down how long you expect switching to take, and test it. - Keep spare capacity in other …
- Deploying & Operating Microservices
… Simple, no extra capacity needed; old and new versions run side by side for a while. mermaid flowchart …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… S3 and keep the pointer. - Choose on-demand capacity for unpredictable traffic and provisioned with auto scaling for …
- Dynamic Programming
… subset sum, 0/1 knapsack dp[capacity] or dp[i][capacity] Two strings LCS, edit distance, regex matching …
- Cost Optimization and the Well-Architected Framework
… Scheduler). - Use Spot with diversified instance types and capacity-optimized allocation. S3 - Use Lifecycle rules and Intelligent-Tiering …
- CloudWatch: Know What Your App Is Doing
… rollback or restore capacity. 5. Verify a real order path and watch recovery metrics. 6. Record cause and …
- 10,000 Users Do Not Need 10,000 Database Connections
… Grow the pool only when the database has spare capacity and pool wait is the proven bottleneck. The …
- Dependencies, Data Sources, and Resource Lifecycle
… Use it only when ownership is explicitly shared, such as an autoscaler owning desired capacity. Exercise Create the …
- Design a Logging and Monitoring Platform
… hour", not "all time"). - Keep ingestion capacity separate from search capacity , so one heavy search can't stop …
- Scaling, Load Balancing & Rate Limiting
… round robin Larger instances receive more traffic Mixed capacity during migration Least connections Choose the instance with fewest …
- Resources, QoS and Scheduling Control
… Scoring prefers nodes by spread, image locality and free capacity. Requests and limits yaml resources: requests: cpu: 250m …
- Troubleshooting Playbook
… Cause Fix --- --- --- Insufficient cpu/memory Requests exceed free capacity Lower requests or add nodes node(s) had untolerated …
- The Hot SKU Alert Problem
… Give urgent messages reserved capacity, and give bulk its own rate-limited lane. Also check each user's …
- Practical Project: Deploy a Real CRM App on EKS
… A node group needs running EC2 capacity . bash aws eks describe-nodegroup \ --cluster-name "$CLUSTER" --nodegroup-name myapp …
- Serverless Architecture
… 0 when nobody uses it Traffic spikes Plan capacity ahead ✅ Scales automatically Ops work Patching, scaling, monitoring hosts …
- Code Profiling
… only when the operations are independent and downstream capacity can handle the added concurrency. Investigate memory growth A …
- Concurrency, Resilience & Distributed Workflows
… Size it against database capacity, set acquisition and idle timeouts, release connections in finally , and remember that app …
- AWS Messaging: Queues, Topics and Events
… A rapidly growing backlog may need consumer capacity, a dependency fix, or reduced intake; scaling blindly can overwhelm …
- Run Containers on AWS with ECR and ECS
… configure: Setting Lab value or requirement --- --- Launch type/capacity Fargate Operating system/architecture Linux matching the built image …
- Go Fundamentals
… how many elements you can use, - a capacity ( cap ): how much room there is before Go must allocate …
- AWS Databases: Choose the Right One
… Include workers, migrations, administrative sessions, and failover capacity in the budget. Set bounded pools and timeouts rather than …
- Rust: Ownership, Borrowing and Lifetimes
… H Moving copies only the small pointer/length/capacity on the stack, not the heap data, and invalidates …
- Design a Reliable Notification System
… Urgent Password reset, 2FA code, receipt Always keeps capacity Bulk Campaigns, weekly digest Slows down, waits Before calling …
- Design an E-Commerce Checkout
… Cache freely. Inventory, payment, order No Money and stock must be exact. Keep checkout capacity separate from heavy …
- Big Data: ETL, Warehouses and Streaming
… Backfills need care - Isolate them: run on separate capacity so they don't slow down today's pipeline …
- Debug Latency Like an Investigator
… not enough capacity, the network, a new deploy, or a slow dependency. Only p99 rises Queueing, locks, GC …
- Zero-Downtime Deploys & Rollbacks
… Rolling (many servers or pods) None Minutes Spare capacity Clusters, Kubernetes Canary (send 5% of traffic first) None …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… The user sees an error, but the work may still be running. Capacity is tied to web workers …