Re: Simple (?) Singleton Question



On Nov 14, 11:25 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
Rob Wilkerson wrote:

Rob,

One of the things you may be missing is that web pages are basically a
transactional request system. That is, the client calls a web page.
That page opens the resources it needs, fetches them and closes the
resources. The web page (transaction) then ends (and frees all resources).

The next page is another transaction and needs to do it's thing, also.

This is very different from batch programs which can keep resources
available across requests to the UI. Those are running all the time,
and can maintain resources across multiple requests.

It's a different style of programming, and if you're used to writing
batch programs, it takes a bit of getting used to the differences.

I'm familiar with the stateless nature of the web, but am admittedly
from a ColdFusion background where an application server was
involved. I could created a singleton and store it in the application
scope for persistence in memory and, in that way, ensure that I really
*was* returning the same instance. I'm learning. :-)

.



Relevant Pages

  • Re: Simple (?) Singleton Question
    ... That page opens the resources it needs, ... The next page is another transaction and needs to do it's thing, ... This is very different from batch programs which can keep resources ... and can maintain resources across multiple requests. ...
    (comp.lang.php)
  • Re: school network email security
    ... obligated to manage those resources to the best of their abilities. ... your recommendations might be reasonable. ... > Or is it better if all end users submit requests, ... > It's not being demanding to ask for network usage policies, ...
    (alt.computer.security)
  • Re: [BUG] pnpbios breaks floppy support
    ... But it requests 0x3f2-0x3f5 and 0x3f7. ... the core requests resources based on the BAR values, ... and the drivers request the actual resources they need. ... goto cleanup1; ...
    (Linux-Kernel)
  • Re: [2/3] POHMELFS: Documentation.
    ... it is possible to send multiple requests from ... When transaction is submitted, it ... to be read from different server or written to new one or dropped. ... hosta$ touch foo.txt ...
    (Linux-Kernel)
  • Re: IIS Locks up whilst using Web Services under a small load
    ... If you kept the rate of requests the same and simply ... service is not releasing the resources that it's using and causing the ... the IIS Service basically craps out and i have to restart ... IIS being able to handle high volumes of traffic using DotNet web services. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)