ResourcePool::LoadBalancer

ResourcePool::LoadBalancer is a load balancer across ResourcePool's.
Download

ResourcePool::LoadBalancer Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Markus Winand
  • Publisher web site:
  • http://search.cpan.org/~mws/ResourcePool-1.0104/lib/ResourcePool/LoadBalancer.pod

ResourcePool::LoadBalancer Tags


ResourcePool::LoadBalancer Description

ResourcePool::LoadBalancer is a load balancer across ResourcePool's. ResourcePool::LoadBalancer is a load balancer across ResourcePool's.SYNOPSIS use ResourcePool::LoadBalancer; my $loadbalancer = ResourcePool::LoadBalancer->new("key", MaxTry => 10); $loadbalancer->add_pool($some_ResourcePool); $loadbalancer->add_pool($some_other_ResourcePool); $loadbalancer->add_pool($third_ResourcePool); my $resource = $loadbalancer->get(); # get a resource from one pool # according to the policy # # do something with $resource $loadbalancer->free($resource); # give it back to the pool $loadbalancer->fail($resource); # give back a failed resourceThe ResourcePool::LoadBalancer is a generic way to spread requests to different ResourcePool's to increase performance and/or availability.Besides the construction the interface of ResourcePool::LoadBalancer is the same as the interface of ResourcePool. This makes it very simple to change a program which uses ResourcePool to use the ResourcePool::LoadBalancer by just changing the construction (which is hopefully kept at a central point in your program). Requirements: · Perl


ResourcePool::LoadBalancer Related Software