I choose [B]. Less objects = a good thing. On 1/8/07, Mike Kear <[EMAIL PROTECTED]> wrote: > I'm building an app where usage is going to be FAR higher than anything i've > used OOP for before, so I am trying to be careful to build it with the > potential bottlenecks in mind. In this job i might have several hundred > concurrent users accessing the application. (in the past i've used it for > things like a CMS where only one person is going to be using it for an hour > or so every few days at most, so bottlenecks and performance issues are > still important but not as high a priority). > > I have a CFCFactory, that generates all the DAOs and Beans as i need but > since every record has a trace of who created it and when, and who was the > last to access it and when, the CFCFactory needs to pass to the CFC the > credentials of the user. My question is about the best way to pass the > credentials in .... > > A couple of scenarios: > > [A] Should I give each logged in user their own instance of the CFCFactory > in the session scope, telling the CFCFactory their login credentials when > it's instantiated. Then the CFCFactory passes the credentials on to each > CFC as they're instantiated > > OR > > [B] Have only one instance of the CFCFactory in the application scope, > passing in the credentials to the createbean(session.userbean) or createDAO( > session.userbean) method as it's called > > OR > > [C] I've missed the point entirely and there's a whole n'other way to look > at it and get the user's credentials down to the final insert/update query. > > > > -- > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265960 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

