Performance: Cache configuration
HIGH IMPACT
Cache configuration affects how fast data is served by reducing backend calls, improving response time and reducing server load.
@Cacheable("items") public Item getItem(Long id) { return repository.findById(id).orElse(null); }
No caching configured; every request hits the database or backend service directly.| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| No cache | N/A | N/A | High backend delay blocks paint | [X] Bad |
| Cache without limits | N/A | N/A | Possible GC pauses cause paint jank | [!] OK |
| Proper cache with limits and preload | N/A | N/A | Fast data delivery, smooth paint | [OK] Good |