[thelist] Looking for a simple CF-based catalog/shopping cart

Raymond Camden jedimaster at macromedia.com
Tue Dec 11 05:41:31 CST 2001


[mailto:thelist-admin at lists.evolt.org] On Behalf Of .jeff
> Sent: Tuesday, December 11, 2001 3:12 AM
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Aaron Johnson
> >
> > > so, in my opinion, custom tags and other performance
> > > sapping conventions aren't a concern if your site is
> > > either by itself on a machine you maintain
> >
> > -- right on... that's the exact mind set I'm coming from
> > too, I've only worked on CF sites that have their own
> > box for the last 2 years.. so maybe I'm out of touch w/
> > how the shared hosting situation looks...
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> i've been fortunate enough to work on sites that are hosted 
> here at work.
> none of the machines are jam-packed with sites and most of 
> the sites don't
> do gigabits of data transfer each month so it's less of an 
> issue.  however,
> i've done sites that sit on virtual servers and they suffer 
> constantly.
> they're better if i'm careful how the applications are 
> written, but still a
> nightmare under any kind of load.

But how do you know that this is custom tags? If it's a virtual server,
_any_ kind of code can be on the system and there could be multiple
reasons why performance is suffering.


> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > > > doing your part to make sure it doesn't have any
> > > > stability.
> >
> > -- I'd disagree that using custom tags causes any
> > instability w/ CF server... sure it might take 10-20
> > more milliseconds to execute, but that doesn't hang
> > the server, sending out 20,000 emails via cfmail might
> > hang the server... not using CFlock when using
> > session/server/application vars might hang the server,
> > but using custom tags will not hang a server.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> consider that a custom tag is executed in its own memory 
> space.  one call to
> a custom tag in each request isn't going to cause problems.  
> however, start
> calling that custom tag inside a loop of some kind and you're 
> asking for
> major problems.  so, using custom tags carelessly could hang 
> the server.
> i'm not just hypothesizing, i've seen it happen.

You've seen custom tags cause memory problems? I'd like to see that
myself. I've seen poorly written custom tags bring down the server, but
bad code _anywhere_ will do that. Just the act of calling the tag is not
going to be abusive to the server.


> just don't try to interrogate the caller scope like you would a normal
> structure -- boo, bad allaire.

Agreed. Maybe something will happen with that. ;)

> 
> just don't try to interrogate the variables scope like you 
> would a normal
> structure -- boo, bad allaire.

Considering "caller. (inside a tag)" == "variables", this should not be
a surprise. ;)


=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 





More information about the thelist mailing list