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
- Upload files with a progress bar in React · React
- Paginate with cursors in FastAPI · FastAPI
- Upload files directly to S3 from a FastAPI app · FastAPI
- Cache FastAPI responses in Redis · FastAPI
- Stream responses with Server-Sent Events · FastAPI
- Call external APIs with retries and timeouts from FastAPI · FastAPI
- Optimize images with next/image · Next.js
- Optimistic UI with Server Actions · Next.js
- Pre-render dynamic pages with generateStaticParams and ISR · Next.js