Re: SOT: Best Practices Instantiating a CFC
thx James. larry If there is no data, you don't need to serialize it and you only need one instance. I'd store it in the Application scope in this case, since that will provide the lowest overhead in terms of memory use and instantiation time. On 4/19/06, Larry Lyons [EMAIL PROTECTED] wrote: I'm trying to get a feel for what's a best practice here. I have a site that uses one CFC a lot. Eventually I'll be moving this site to a clustered environment, so serialization may be a concern. However, there is no data with the cfc, just a set of functions. All data is passed in, manipulated etc, then returned to the calling page. What would be better in this case, keeping the cfc in the variables scope or moving it to either the application or session scopes? -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal. com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238071 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: SOT: Best Practices Instantiating a CFC
If there is no data, you don't need to serialize it and you only need one instance. I'd store it in the Application scope in this case, since that will provide the lowest overhead in terms of memory use and instantiation time. On 4/19/06, Larry Lyons [EMAIL PROTECTED] wrote: I'm trying to get a feel for what's a best practice here. I have a site that uses one CFC a lot. Eventually I'll be moving this site to a clustered environment, so serialization may be a concern. However, there is no data with the cfc, just a set of functions. All data is passed in, manipulated etc, then returned to the calling page. What would be better in this case, keeping the cfc in the variables scope or moving it to either the application or session scopes? -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238051 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54