Tag

Pre-warming

1 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Oct 15, 2023 · Backend Development

How to Implement Pre‑warming in the Spring Ecosystem: Extension Points and Their Execution Order

Implementing pre‑warming in Spring involves using several extension points—SmartLifecycle, ApplicationListener for ContextRefreshedEvent, InitializingBean, @PostConstruct, ApplicationRunner, and CommandLineRunner—each with specific execution timing and ordering considerations to ensure cache loading occurs before the web server starts handling traffic.

ApplicationListenerApplicationRunnerCache
0 likes · 4 min read
How to Implement Pre‑warming in the Spring Ecosystem: Extension Points and Their Execution Order
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2023 · Backend Development

Cache Warm-up Strategies and Lessons Learned from a Production Incident

The article recounts a developer's painful experience with un‑preheated Redis cache that caused severe latency spikes, then outlines practical cache warm‑up techniques such as gray‑release traffic, database scanning, and ETL‑driven data pipelines to prevent performance degradation and cache snowball effects.

CacheETLPerformance
0 likes · 7 min read
Cache Warm-up Strategies and Lessons Learned from a Production Incident
Cognitive Technology Team
Cognitive Technology Team
May 20, 2022 · Backend Development

Implementing Business Data Pre‑warming in Spring Using SmartLifecycle and ContextRefreshedEvent

To pre‑warm business data before a Spring web service accepts requests, the article explains two approaches—implementing the SmartLifecycle interface with proper phase ordering and using a ContextRefreshedEvent listener—while highlighting code examples, execution timing, and cautions against asynchronous overrides.

ContextRefreshedEventJavaPre-warming
0 likes · 7 min read
Implementing Business Data Pre‑warming in Spring Using SmartLifecycle and ContextRefreshedEvent
Qunar Tech Salon
Qunar Tech Salon
Aug 7, 2017 · Backend Development

Design and Implementation of a Log‑Based Service Pre‑warming Component for Java Applications

To mitigate startup latency spikes in Java-based query services caused by class loading, JIT warm‑up, and lazy resource loading, the article presents a generic, low‑cost pre‑warming component that parses local Dubbo and HTTP logs, filters, samples, and replays traffic, detailing its design, implementation, and performance optimizations.

DubboJMXJava
0 likes · 9 min read
Design and Implementation of a Log‑Based Service Pre‑warming Component for Java Applications