[coldbox-3.8] Request for custom timeout setting for Wirebox load

As Luis knows, my company has a LOT of handlers, and a LOT of Wirebox objects.

Wirebox retrieves the metadata on all our map() definitions in the binder once the config is loaded. Retrieving the metadata is a slow operation. No fault of Wirebox, just the way ACF does it.

What we’d like to see is a Coldbox setting (or Wirebox, whatever) that allows us to specify a larger timeout than perhaps is our default in Coldfusion. For example:

CFAdmin: Settings - Timeout: 30 seconds (for a request).
ColdboxSetting: WireboxMetadataTimeout: 120

Coldbox could incorporate Ben Nadel’s function from:

…to retrieve the current timeout. If the Coldbox setting is larger, then change the current timeout setting to that value.

<cfif getCurrentTimeout() LT coldboxSetting.WireboxMetadataTimeout>


…loop over the metadata.

This would allow applications with a large Wirebox collection enough time to start up. This is important when performing the Coldbox startup. And if you’ve never compiled the code before (for us, a new variant after our releases), this is even more critical.

What is the possibility of the CB team adding such a feature?

Couldn’t you just add this on your main template?

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

What version of ColdFusion are you on? Just curious since CF8 was very slow for getMetaData(), but CF9+ and Railo are much faster.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

It’s CF9

Luis, I raised this as a ticket some time ago.

I personally believe that when ColdBox is first initalizing and it can take up to 30-40secs secs or more sometimes on one production server and always get a timeout on the cfdirectory, etc.

So I believe that ColdBox should be setting this to some value that would ensure that the request does not timeout when ColdBox is setting up for first time use. Which is why I raised the ticket.

@Brad, this is very evident on ColdFusion 10 as it is on older version as well.

signature0.jpg

The problem with this is that it can be different on a per server basis. So I don’t see why should a user add this a their own customization in the Application.cfc as needed. Seems unnecessary to add this to the core.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

signature0.jpg

I think the perception is that it is the framework only that requires that, so forcing every page (Which isn’t always a bad idea) isn’t something we see as our responsibility either. I mean I would look at it from the point of view, if it was going to cut down the amount of support questions as to why there is that initial timeout, I know which option I would be choosing.

signature0.jpg

signature0.jpg