[Catalyst] Implementing Webhooks.

Bill Moseley moseley at hank.org
Wed Jan 15 19:28:51 GMT 2014

I'm running Catalyst under mod_perl2 (currently, subject to change).   Some
requests trigger a callback to a user-provided URL -- a webhook.

Obviously, it's best to do those asynchronously and not in-process.   Don't
want a web request (or really an Apache process) hanging while waiting on
an external web server to respond.

A queue is probably the best approach, but there's also some advantage of
having the Catalyst app make the webhook request -- specifically because
the Catalyst app has the context of the request and has application logging

How would you implement this?

How would that change if you wanted more than just "fire-and-forget"?  For
example, if you wanted to provide some kind of retry interval for failed
callbacks. The external server might be temporarily down for maintenance.


-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20140115/7b5b5=

More information about the Catalyst mailing list