News Feed
Sections




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

Rasmus Lerdorf's Blog:
ZeroMQ + libevent in PHP
September 29, 2011 @ 11:45:39

Rasmus Lerdorf has a new post to his blog sharing the results of some "investigative hacking" he did to see if making ZeroMQ and libevent work together was difficult. Thankfully, the answer was "not hard at all".

While waiting for a connection in Frankfurt I had a quick look at what it would take to make ZeroMQ and libevent co-exist in PHP and it was actually quite easy. Well, easy after Mikko Koppanen added a way to get the underlying socket fd from the ZeroMQ PHP extension. To get this working, install the PHP ZeroMQ extension and the PHP libevent extension.

He includes a sample script show the results of his work, a basic server and client that sends a request to the ZeroMQ server and fires off an event using the libevent library (via PHP's extension. You can find out more about using these two libraries in the PHP manual - libevent and ZeroMQ

0 comments voice your opinion now!
zeromq libevent extension library queue example


blog comments powered by Disqus

Similar Posts

Jacob Santos' Blog: Would PHP benefit from JIT compilation?

PHP Thinktank Blog: PHP-GTK with scottmattocks (IRC Talk Series)

PHPMaster.com: An Introduction to Redis in PHP using Predis

DevShed: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with PHP 5

Kevin Schroeder's Blog: Passing typed ActionScript objects to Flex using PHP and a message queue


Community Events





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


code wordpress podcast release series language community api developer threedevsandamaybe list laravel framework introduction bugfix library configure interview project application

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