Last week I went to a customer to define some leads to improve their application built on ColdFusion.
One point was a legacy approach to load all contents from database into structures in Application scope at the first request. This process can take several minutes, blocking the users and loading the server. Many years ago this strategy was good, but It's important to well understand the stake when we apply non linear algorithms, i.e. depending on volume. With the content growth, this approach is a trap.
Obviously, I recommand to implement a better cache strategy based on ColdFusion cache or on any key/value store. With a lazy loading to avoid this strategy. In a short sentence: a modern cache.
But, it can't be implemented right now, so we've decided to have one step before by implementing an information page during the Application loading. It was a good exercice to play with <cfthread>, that I'm not usually fond of.
Recent Comments