How to build a simple event-driven architecture
I recently read this interesting Reliable Django Signals article which left me inspired to have a play with building something similar. I wanted build a simple event-driven architecture where: Publishers can publish an event with a given payload One or many subscribers can subscribe to an event Events are asynchronous (as opposed to the synchronous observer pattern) I took the opportunity to try out django-tasks and blinker for this. Here’s what I came up with. ...