Tagged articles
5 articles
Page 1 of 1
Architect Chen
Architect Chen
Apr 9, 2024 · Backend Development

How to Warm Up Distributed Caches for High‑Concurrency Systems

This article explains what cache pre‑warming is, why it is essential for high‑traffic applications, and compares three practical approaches—scheduled tasks, batch loading, and manual trigger APIs—highlighting their advantages, drawbacks, and typical usage scenarios.

BackendCacheOperations
0 likes · 6 min read
How to Warm Up Distributed Caches for High‑Concurrency Systems
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
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.

BackendContextRefreshedEventJava
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.

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