Practical Performance
summary
Rapid growth from ~15k to 1.5M users exposes concrete bottlenecks: Apache HttpComponents defaults to 2 concurrent connections per route, a Treemap caused contention in a synchronized cache and is fixed by switched Treemap to HashMap, Redis hits 100% CPU from KEYS and MGET patterns and is eased by moved screenshots into Redis hashes plus pipelining and clustered Redis, a dynamic throttle temporarily drops screenshots, and replacing a slow data service with a streaming screenshot service restores responsiveness.
AI-written summary · about
