It's pretty easy to scale APE by simply spawning multiple APE processes and communicating between them using sockets. Then use nginx or similar to provide for load balancing between the processes.
In this way you can scale horizontally on the same machine, across multiple machines, networks, etc. I'll be writing a blog post about the technique soon. Johnathan On Wed, Nov 17, 2010 at 1:21 PM, Felix Filozov <[email protected]> wrote: > What do you think about built in support for redundancy? Have two APE > servers share state, such that if one goes down everyone can just switch > over. > > > On Wed, Nov 17, 2010 at 12:27 PM, <[email protected]> wrote: > >> Stefan >> >> I perfecly know about those libs. >> The event loop system is pretty straight forward (and interesting to >> write). >> I prefere using lib for complicated things I can't do myself (c-ares, and >> of course spidermonkey). >> >> It's a very important part for a network application and I don't want to >> hack on libev in order to achieve optimization I want. >> There are also a bunch of overhead I really don't need and that avoid a >> correct compilation inlining. >> >> IMHO, this is why nginx is what it is nowadays. >> >> Troll ? :) >> >> Anthony C. >> >> >> On Wed, 17 Nov 2010 16:23:43 +0100, Stefan Sayer >> <[email protected]> wrote: >> > Hi, >> > >> > have you thought about using libevent or libev instead of your own >> > implementation of the event loop? They're both well tested, support >> > all different methods (epoll, kqueue etc), portable etc. Especially >> > libev is small, quite simple to use, doesn't require any special >> > structure of your server etc. >> > >> > [1] >> > http://monkey.org/~provos/libevent/<http://monkey.org/%7Eprovos/libevent/> >> > [2] http://software.schmorp.de/pkg/libev.html >> > >> > Stefan >> > >> > [email protected] wrote: >> >> Hi folks, >> >> >> >> I started the development of a the 2.0 branche (from scratch). >> >> You can follow the project right here : >> >> https://github.com/paraboul/APE-Server-v2 >> >> >> >> I hope some of you guys will follow the progress of the development and >> >> send me some feedbacks ;) >> >> >> >> BTW, Im still looking for a packager (configure script writer, Makefile >> >> writer, and so forth= >> >> >> >> Thanks >> >> >> >> Anthony Catel >> >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "APE Project" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<ape-project%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/ape-project?hl=en >> --- >> APE Project (Ajax Push Engine) >> Official website : http://www.ape-project.org/ >> Git Hub : http://github.com/APE-Project/ >> > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
