Topic hub
Performance & Scalability
Profiling, latency vs throughput, load balancing, autoscaling, resilience and capacity planning.
Lessons
- Performance Tuning · FastAPI: From Basics to Production
Find and fix the real bottlenecks in FastAPI services. - How Rendering Works and Memoization · React: From Components to Production
Understand re-renders and when memo, useMemo and useCallback help. - Frontend Performance and Core Web Vitals · Caching and Performance Engineering
Make pages load fast and stay responsive for real users. - Measuring Performance: Percentiles, Profiling and Load Tests · Caching and Performance Engineering
Know what 'fast' means and find where time goes. - Resilience Under Load · Caching and Performance Engineering
Timeouts, backpressure, load shedding and graceful degradation. - Scaling Patterns · Caching and Performance Engineering
Stateless services, read replicas, sharding, queues and CDNs. - Exponential Backoff and Jitter · Idempotency & Retry-Safe Systems
Space out retries so recovering systems aren't flattened. - Payload, Compression & Battery Efficiency · Mobile API Best Practices
Fewer bytes, fewer wake-ups: compression, pagination, image sizing and batching. - Lag, Queue Age and Backpressure · Queues & Background Processing in Depth
Measure how far behind consumers are and react. - Token Bucket and Leaky Bucket · Rate Limiting, Quotas & Abuse Protection
Allow bursts while enforcing an average rate, or smooth output. - Circuit Breakers · Resilience Patterns
Stop calling a failing dependency and let it recover. - Hedged Requests and Tail Latency · Resilience Patterns
Cut p99 latency in fan-out systems. - Load Shedding and Admission Control · Resilience Patterns
Reject excess work early to keep serving the rest.
Decision guides
- Atomic Update vs Pessimistic vs Optimistic Locking
- Cache-Aside vs Read-Through vs Write-Through vs Write-Behind
- Circuit Breaker and Resilience Libraries by Stack
- Offset vs Cursor vs Keyset Pagination
- Polling vs Push vs Persistent Connections for Mobile
- Rate-Limit Algorithms Compared
- Retry Strategies Compared
- Scaling Reads: Cache, Replicas or Read Models?
Cookbook recipes
- Avoid data-fetching waterfalls in Server Components · Next.js
- Stream slow sections with Suspense · Next.js
- Cache expensive queries with Redis in PHP · PHP
- Speed up builds with BuildKit cache mounts · Docker
- Autoscale a Deployment on CPU and memory · Kubernetes
- Call external APIs concurrently in async views · Django
- Upload files with a progress bar in React · React
- Speed up EF Core reads with projections, no-tracking and pooling · ASP.NET Core
- Cache responses with output caching and evict by tag · ASP.NET Core
- Avoid N+1 queries with select_related and prefetch_related · Django
- Import and update many rows efficiently · Django
- Paginate and filter large API lists · Django