Our great sponsors
-
django-pgpubsub
A distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
A common pattern in modern web development is the requirement to process data asynchronously after some user action or database event. In the below article, I describe via a concrete example a traditional approach to solving this problem for a Django/Postgres based application using django signals and Celery. I then proceed to discuss some of the shortcomings of this approach and demonstrate how using django-pgpubsub can offer a lightweight and more robust solution.
Related posts
- run scheduled job using django orm as broker
- django-pgpubsub: A lightweight alternative to Celery built on top of the Postgres NOTIFY/LISTEN protocol
- django-pgpubsub: Distributed Django Tasks using Postgres NOTIFY
- windows-friendly replacement for django=background-tasks?
- A lightweight alternative to Celery for Django-PostgreSQL apps.