Tue, Apr. 15th, 2008, 01:53 pm
using fapws2 as a proxy
On current multi core machine, I have the idea to run several fapws2 instances for complex websites. That way I will have several fapws2 server dealing each a part of the web application.
To stay with fapws2, that means that one instance will be a "front end" web server. He will querying the others.
But what is the best way to implement such proxy mechanism (by only using libevent, no threads) ?
People having knowledge, references of document exaplaining it, ... are welcome ;).
Tue, Apr. 15th, 2008 03:37 pm (UTC)
Why not just use nginx?
Or at least you could see how it does it.
Tue, Apr. 15th, 2008 06:24 pm (UTC)
For several reasons:
Mainly because I just want to optimize the installed software. I have FAPWS2 runnning on devices with less than 4GB of disk space.
Secondly, because I want to do it my-self ;).
I don't know with ngnix, but FPAWS2 works fine with lighttpd.
Do not forget "Das Schaefchen", this is a good app too ;).
Wed, Aug. 6th, 2008 06:08 pm (UTC)
(Anonymous): Das Schaefchen :-)
I am Guido, the developer of Das Schaefchen, I have just seen your comment... thanks :).
Some weeks ago I included PHP support for Das Schaefchen and it works fine :).
Have you been using Schaefchen? :).
Thu, May. 1st, 2008 12:48 am (UTC)
rem101: thought for fapws2
I don't know if you could do it in fapws2, but you could use the two libevent events. One would receive the client request and the other would initiated by connecting to the client to get data, then when it "triggered" the data would be complete and you would send it back to the client. It could use the same C library with an addition to listen for the completion of data from the web server you are connecting to.
Sun, Aug. 17th, 2008 12:14 am (UTC)
Your blog is interesting!
Keep up the good work!