0mq is extremely flexible, it's just a way to send messages among components, so yes, in a way it can solve your problem, but I personally wouldn't use it for this use case. Load balancing and traffic shaping can all be done at the firewall level before your apache server, check out:
http://www.lartc.org/howto/ That being said, learning 0mq will never be bad for you! -Michel On Wed, Oct 10, 2012 at 1:12 AM, Ryan Chan <[email protected]> wrote: > Hi, > > I run a shared PHP hosting company and I am researching if 0mq is > suitable for my specific use case below. > > 1. A single apache server serving multiple vhosts, is connecting to a > shared MySQL database > 2. Some user is generating more CPU workload then other, e.g. those > running popular forum > 3. So the whole server performance suffer, affecting other users > > I am looking to see if we can write a load balancer using 0mq, which support > > a. can prioritize the request, e.g. based on a int value defined in > cookie (we will inject the value from our backend) > b. limit the number of concurrent request from a specific vhost > c. similar to b, for anti-DOS > > Do you think 0mq would be a good candidate for this use? Or you have > any other suggestion? > > Thanks. > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
