News Feed
Sections




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

Qandidate.com Blog:
Asynchronous fault tolerant programming with PHP
August 12, 2014 @ 12:17:20

On the Qandidate.com blog there's a new post looking at fault tolerant programming in PHP, a follow up to their previous post introducing the topic and creating a "circuit breaker" to prevent major issues when a problem pops up.

Now we will show you a running demo of the application where the circuit breaker library Phystrix is combined with asynchronous programming. The advantage of this approach is that it allows the querying of multiple backend services asynchronously. A timeout can be set for each of the calls and the circuit breaker will deal with failing services.

A screencast included in the post shows a script in action and how it reacts when the various services it needs fail. They've posted the code for the demo can be found over on GitHub and full instructions to run it are included in the post. Also included is some of the output from the test and a peek inside the logs showing where things were broken and if they were able to recover.

0 comments voice your opinion now!
asynchronous fault tolerant programming demo github screencast

Link: http://labs.qandidate.com/blog/2014/08/11/asynchronous-fault-tolerant-programming-in-php/

blog comments powered by Disqus

Similar Posts

Kevin Schroeder's Blog: You want to do WHAT with PHP? Chapter 6 & 7

Michael Kimsal's Blog: New PHP book - Guide to Programming with Magento upcoming releaes

Mike Naberezny\'s Blog: Fluent Interfaces in PHP

Andi Gutmans' Blog: PHP 5 Power Programming passes 1 Million downloads!

php|architect: Stored Procedure Programming for MySQL5 (Part 2)


Community Events





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


voicesoftheelephpant community opinion package security install framework composer podcast application library series release language version interview symfony introduction laravel tool

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