News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jim Plush's Blog:
Why Your PHP app NEEDS a Circuit Breaker
April 10, 2009 @ 11:16:17

In this new post to his blog Jim Plush looks at a design pattern that could help you and your application become less reliant on external content sources and increase your user satisfaction for it.

No one has a 100% SLA. This means that more than ever you need to code defensively to prevent external resources from tarnishing the user experience of your site. This is where the Circuit Breaker Stability Pattern comes into play (From the book "Release It").

The concept behind the breaker is easy - too many failures from the resource and the script to grab the content is "broken" and no request is made until the connection check signals the "all clear". He includes a class and a walk through to show how it might work in a connection to a script on a test server. The CircuitBreaker class has enough smarts to be able to tell if the given resource can be fetched from (the circuit is closed) or not.

1 comment voice your opinion now!
application circuit breaker class example database download tutorial


blog comments powered by Disqus

Similar Posts

Joey Rivera's Blog: Using Zend_Paginator with Twitter API and Zend_Cache

Gonzalo Ayuso's Blog: Database connection pooling with PHP and React (node.php)

DZone.com: Web applications as enterprise software

IBM developerWorks: Build Web services with PHP in Eclipse

Job Posting: WordStream Seeks Web Application Developer (Needham, MA)


Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant security interview version framework artisanfiles release tool laravel library list community language conference podcast series composer symfony introduction opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework