Draf: refactor option A with middleware
do not merge
This is just a simple PoC for No webhook notifications for events on the new ... (#691 - closed).
The idea is to write different middleware functions per event that can be used to queue the notification. A worker would then loop through the available events and it will attempt to send the notifications until successful.
Edited by Jaime Martinez