Can you discuss how you would approach using sessions in PLUM in a clustered system? CFMX 6.1 (Updater 1 + hotfixes) on JRUN on Windows 2000/2003, with hardware clustering... -----------------
The Plum Framework is switchable from Session to Client variables with a single line of code located in your Environment.cfm (controllable from the Plum IDE). Just switch the Plum Framework to use Client variables, then code the rest of your application to do the same. Storage becomes the issue, as you can still theoretically outrun a cfset with the next request to another server in the cluster using hardware load balancing. Some people (even a CFDJ article on load testing -- I couldn't believe this!) suggest just blindly storing the Client scope in cookies rather than a centralized data source for performance's sake, but there are potential problems with this approach, such as security breaches and dropping cookies when the limit has been reached. As you probably know, the Plum Framework uses what we call "PlumCrumbs" to handle cookies through the Plum CookieAPI, so the number of "real" cookies is held to an absolute minimum, but you still have to watch out for the total size of data being stored in cookies, as some browsers put a limit on these. You also don't want heavy cookies transmitted on each request/response. So it's a balance, and you have to test it. The heavier the cookie load and the weaker your database system, the higher probability of a problem you'll have with storing in a database system. Are you *never* persisting secure info for a user between requests? Are you *never* going to store a large total amount of data in cookies? Will they be simple values only? If you answered "Yes" to all these, then cookie storage of Client variables is a *possibility* that you might investigate. If you want to discuss further, just call me at 770-446-8866. Hope this helps. Respectfully, Adam Phillip Churvis Member of Team Macromedia http://www.ProductivityEnhancement.com Download Plum and other cool development tools, and get advanced intensive Master-level training: * C# & ASP.NET for ColdFusion Developers * ColdFusion MX Master Class * Advanced Development with CFMX and SQL Server 2000 ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm **********************************************************************
