Beginners Question

Jose Adriano Baltieri <jabaltie-a/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Organization UNIMEP
Message-ID <[email protected]>
Hello members of the list !

Our site runs on WebSite http server, that was from OReilly. But this 
product has been discontinued. So, I'm thinking about migrating to Apache.

The problem is that I'm a heavy user of the WebSite API. So, I dont use 
CGIs at all. I used it for a while but then I migrated to the WSAPI 
(WebSite API). I know, I know, I should NEVER had done that... Sorry ! 
I'm paying for this mistake right now...

Anyway, how does the API work ?

The basic job implemented via the API is this : dump the http request 
into a plain text file (kind of CGI-WIN) on a RAMDRIVE folder. Then, 
wait for the answer on the same folder , as a file and read it.

I have a global counter (integer) that I increase as each request comes 
in. Files are named bused on this request number.

On the other side, of course I have an application that is doing the 
real job, that is, the application is watching the folder , processing 
and putting the file back.

There are several folders, because that application is multi-threaded.

The API is who coordinates or chooses to which folder (or thread) it 
will pass the request. So, it "knows" wich thread is available. It also 
knows when it's about time to start a new thread or stop old ones. It 
also has a queue of requests and several other sophisticated things.

To do that all, I need global data structures that are accessed amongst 
all simultaneous connections (requests). Nowadays, I use critical 
sections to avoid conflicts.

Will I be able to do the same or a similar thing using FASTCGI ?

Thanks in advance for your support !

-- 
Obrigado,
------------------------------------------------------------------------------
                Jose Adriano Baltieri - Analista de Sistemas
                DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
                PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.