For sites, I load the data into request.community also onrequeststart. Lots of potential for caching here as well
I meant only settings in app scope. My app scoped singletons all receive communityid as an argument so one instance handles all sites
> I like how the session stuff works save the fact its in request. Waiting for railo memcached sessions tho.
Waiting to implement them or waiting for them to be available in Railo? Because they already are, as of 3.3. Add the memcached cache provider extension (I believe this is currently beta), and then create a named cache ex. "sessionStore":
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,45,0);
this.setClientCookies = true;
this.sessionType = "CFML";
this.sessionStorage = "sessionStore";
this.sessionCluster = true;
Bob's your uncle. Only major caveat is objects in session scope must be serializable. I also do not believe onSessionEnd() fires, due to the fact that in a cluster which server would it fire on.
- Sean
As for the application scope, I would generate one single Application Scope
(or use the server scope) for them so that the number of redundant instances
are limited
Greetings from Switzerland
Gert Franz
Railo Technologies Professional Open Source
skype: gert.franz ge...@getrailo.com
+41 76 5680 231 www.getrailo.com
-----Ursprüngliche Nachricht-----
Von: ra...@googlegroups.com [mailto:ra...@googlegroups.com] Im Auftrag von
Jeff Gladnick
Gesendet: Mittwoch, 28. Dezember 2011 06:55
An: Railo
Betreff: [railo] Re: Reducing memory usage in a multi-tenant application
In the grand scheme of things it probably isn't a really big deal, but
something to consider from an architectural perspective.
Cheers,
Judah
Judah