Blog Issue and CFCs Under Load

So, the issue with comment adding and this blog has been fixed, however, it wasn't a bug with the CFC. I have found that there are issues when you store a CFC in cache and then place the server under load. CFLib.org is suffering from it and so is this blog. on CFLib.org, the issue involves queries not being defined correctly. (I.e., a query is run, but the result is something corrupted.) On this blog, the issue was with the addComment method calling getComments, and CF saying getComments didn't exist as a method, even though it clearly does.

In both cases, the fix was to simply not cache the CFC. This has performance implications, but I'd rather have a slightly slower site than a site that breaks every now and then.

I've let Macromedia know about both issues, so hopefully they will be fixed in RedSky.

Archived Comments

Comment 1 by Randy posted on 7/3/2003 at 10:07 PM

Actually I noticed this last night as well, I thought my server was freaking out though. I can definately confirm there is some freaky behaviour when you cache that cfc.

-rd

Comment 2 by Ken posted on 7/9/2003 at 5:00 AM

Sounds like it might be an incarnation of the infamous pagecontext bug. Since this extensive bug is supposedly fixed in RedSky, I guess you'll find out soon enough.

Comment 3 by Raymond Camden posted on 7/9/2003 at 5:24 AM

No, this is defintely different from the page context bug, but you are right, that bug is fixed in RedSky.

Comment 4 by Max Kanat-Alexander posted on 7/26/2003 at 5:44 AM

I've been having an issue somewhat like that with my application. The problem is, I _have_ to cache the CFC, or performance will degrade to an unacceptable level in my application. (On Application first-load, I load an object that runs probably several thousand small DB queries, and then cache that object.)

I described it basically at: http://www.experts-exchange...

Is this the same issue, do you think?

-M

Comment 5 by Gobo posted on 8/16/2003 at 2:11 PM

Just wondering, now that 6.1 is out, have you tried to cache again and did work?

Thanks, Gobo

Comment 6 by Raymond Camden posted on 8/16/2003 at 2:15 PM

I know I'm caching again on cflib and it's working fine. Not 100% sure I updated it here since the site runs fast anyway, but I will eventually.