2 ms·
Shameless self-promomtion here. The Wishbone framework (http://wishbone.readthedocs.org http://wishbone.readthedocs.org) enables you to construct event pipeline
by smetj 11y ago
Shameless self-promomtion here.
The Wishbone framework (http://wishbone.readthedocs.org http://wishbone.readthedocs.org) enables you to construct event pipeline servers which can do exactly this sort of thing.
The parent's use case could be handled by connecting the Wishbone modules in the following way:
Accept webhook data over http(s) (https://github.com/smetj/wishbone-input-httpserver https://github.com/smetj/wishbone-input-httpserver), parse the JSON data (http://wishbone.readthedocs.org/en/latest/modules/builtin%20modules.html#wishbone-decode-json http://wishbone.readthedocs.org/en/latest/modules/builtin%20...), validate the event data against JSONschema (https://github.com/smetj/wishbone-flow-jsonvalidate https://github.com/smetj/wishbone-flow-jsonvalidate) and eventually submit the event data to to RabbitMQ (https://github.com/smetj/wishbone-output-amqp https://github.com/smetj/wishbone-output-amqp).
Super easy to start a server:
$ wishbone start --config bootstrap.yaml
Depending on the modules you hook together you can build the event processing pipeline suiting your needs.
For example: http://smetj.net/processing_webhooks_using_wishbone_part_1.html http://smetj.net/processing_webhooks_using_wishbone_part_1.h...