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

.jeff jeff at members.evolt.org
Tue Dec 11 02:11:53 CST 2001


aaron,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 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.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > > 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.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Need your custom tag to access variables set in the
> template you're using to call a custom tag?  Use the
> "caller" scope.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

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

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Performance weenie?  Scope all your variables... using
> variables.foo will be faster than using foo
>
> Example: <cfset foo = "var">  When using the variable
> foo later in your script, CF will take longer to find
> the variable foo than if you had originally scoped your
> variable like so: <cfset variables.foo = "var">
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

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

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> Considering ColdFusion as a development platform but
> don't know how it'll integrate with the rest of your
> enterprise?  Did you know that Neo, the next version of
> CF, can be deployed on top of Java application servers
> such as IBM WebSphere, BEA WebLogic and Macromedia JRun
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

and the best thing about neo that i've read to date:

<tip type="ColdFusion" author=".jeff">

building an enterprise application and a marketing/sales weenie asks you if
it can be distributed on cd?  if you're using neo you can answer "no
problem" with confidence.

http://www.macromedia.com/software/coldfusion/resources/neo/faq/contents.htm
l#100

</tip>

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the thelist mailing list