[rabbitmq-discuss] Writing a new plugin
jon at jbrisbin.com
Tue Aug 24 16:11:45 BST 2010
On Aug 24, 2010, at 10:03 AM, Tony Garnock-Jones wrote:
> Jon Brisbin wrote:
>> I'm trying to add "webhook" functionality to several applications I'm
>> writing (basically my own version of PayPal notifications, Google
>> Checkout callbacks, or GAE tasks), so I thought I'd create a plugin
>> ("rabbitmq-webhook"?) that consumes messages on an exchange and uses the
>> lhttpc module to send them to a configurable REST URL.
> Sorry if this has already been mentioned, but have you tried RabbitHub? It
> implements PSHB, backed by RabbitMQ, and will both receive messages via HTTP
> POST which it then distributes through Rabbit's exchanges and queues, and
> deliver messages via HTTP POST when the PSHB subscription protocol is used
> (over HTTP) to point RabbitHub at some HTTP server endpoint somewhere else on
> the network.
Alexis pointed this out to me as I wasn't aware of it. I checked it out of Git and have gotten some pretty good ideas from it as what I'm wanting to do is fairly similar. :)
But I'm wanting more configurability, per-message overrides, and less emphasis on the PSHB model (I really need full REST support, particularly if the webhooks are a CouchDB database or similar).
I'm thinking I'll likely use a REST API on the front end at some point, but I'm more interested in the resulting webhook functionality at the moment.
I'm actually working on a blog post that discusses my two current use cases and explains why I haven't found anything that fits what I'm looking for yet.
I'm *really* digging Erlang, BTW! :) I think it's my new favorite language. Python and Ruby who? ;)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss