Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 12-24-2012, 11:26 AM   #1
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
RabbitMQ server and PHP libs

I'm using RabbitMQ for event processing and want to use a pure PHP library instead of a module. Mainly as we have some windows dev servers and a mish mash of standby boxes.

I'm using an AMQP version at the moment from Robert Harvey, but wanted to know if anyone has that just plain works simple. Posting and retrieving messages for jobs. no need to subscribe and consume.

Any suggestions?
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-25-2012, 02:17 AM   #2
cruxop
Registered User
 
Industry Role:
Join Date: Aug 2007
Location: USA
Posts: 61
I use RabbitMQ a lot via Python, and far less via PHP so my knoweledge of those libraries is pretty scattered. However, there's at least one pure-php library for RabbitMQ: https://github.com/BraveSirRobin/amqphp

Did you take a look at that one before?

> Posting and retrieving messages for jobs. no need to subscribe and consume.

AMQP will keep your jobs around if there are no consumers. So if you want to just periodically consume, you can have a cron job start up your consumers then kill it after a while.

If you check out the RabbitMQ page, they have a few different suggestions of how to use their software: http://www.rabbitmq.com/getstarted.html

But essentially they're just wrapping different terminology around the same thing---you have to have consumers and consumers subscribe to a queue and get messages from it.
cruxop is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-26-2012, 08:04 PM   #3
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
Ah yes, great minds and all that

BraveSirRobbin is the one I'm using at the moment. The least tolerant of php version and add ons etc. works out of the box which is good, too many geeks running on the nth version of PHP class functions etc.

Ive got some durable queues and several workers consuming the messages. No high msg consumption, just de coupling jobs like sending live stats to customers who you can't count on to have their services up 24/7 and I dont want them to hang my procs on posting them.

I'm more into the atomic message/job at present rather than the logging although have managed to see about 1K/sec messaging as part of our testing using Jmeter just in case we ever get past our current 12 billing messages per sec.

glad to see someone else into the messaging server bit as well.
__________________
http://www.webcamalerts.com for auto tweets for web cam operators

Last edited by livexxx; 12-26-2012 at 08:05 PM..
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-16-2013, 11:26 AM   #4
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
secondary update, also now ustilising beanstalkd, far simpler to set up and even to run. Seems to manage pretty well and lots of multiple queues a breeze, especially when creating queues on the fly.
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.