Login   Register  
PHP Classes
elePHPant
Icontem

PHP Circuit Breaker class: Test if a service is ready checking status first

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-04-13 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 281 This week: 1All time: 6,752 This week: 1,398Up
Version License PHP version Categories  
php-circuit-breaker 1.0BSD License5.0PHP 5, Systems administration
Description Author  

This class can test if a service is ready checking status first.

It can keep track of the status of services like databases or remote Web services to determine if they can be accessed normally or they are down for some reason.

The class uses the APC extension to store cached values of the status the services, so applications avoid trying again while the services are down until they are not brought up again.

The class can be configured to try a given number of times until the service being tested is considered to be down.

A timeout period can be configured after which a failed service should get only one more chance to become available.

Innovation Award  
PHP Programming Innovation award nominee
May 2013
Number 2


Prize: One subscription to the PDF edition of the PHP Architect magazine
Circuit breaker is method to prevent excessive use of resources that may not be available for some serious reason.

This class provides a PHP implementation of this circuit breaker method.

Manuel Lemos
Picture of Yasir Siddiqui
Name: Yasir Siddiqui is available for providing paid consulting. Contact Yasir Siddiqui .
Classes: 13 packages by
Country: Pakistan Pakistan
Age: 30
All time rank: 5346 in Pakistan Pakistan
Week rank: 86 Up1 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file CircuitBreakerClass.php Class Class source
Accessible without login Plain text file Config.php Conf. Configuration script
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%Total:281All time:6,752
 This week:1This week:1,398Up