RabbitMQ server and PHP libs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • livexxx
    Confirmed User
    • May 2005
    • 1201

    #1

    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
  • cruxop
    Registered User
    • Aug 2007
    • 61

    #2
    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.

    Comment

    • livexxx
      Confirmed User
      • May 2005
      • 1201

      #3
      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.
      Last edited by livexxx; 12-26-2012, 06:05 PM.
      http://www.webcamalerts.com for auto tweets for web cam operators

      Comment

      • livexxx
        Confirmed User
        • May 2005
        • 1201

        #4
        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

        Comment

        Working...