How to use Postgres as a simple task queue for Django 🐘

  Рет қаралды 1,042

Tom Dekan

Tom Dekan

Күн бұрын

Пікірлер: 12
@dojjy5798
@dojjy5798 2 ай бұрын
Amazing, freshly baked 2 months ago. Needed it for a company project where we run some automatic script in the background when new task arrived. Thank you! Also benefited a lot from your google login video.(Although I had a GSI_LOGGER error, I saw some commented on your original video which is still not solve, so I am using the old google login API at the moment).
@tomdekan
@tomdekan 2 ай бұрын
Awesome - great to hear 😊 On the Google login video, I updated the written guide 2 days ago to fix the GSI_LIGGER error (Google no longer allows redirect with Django). Check out the link in the Google video!
@dojjy5798
@dojjy5798 2 ай бұрын
@@tomdekan OMG this is like christmas. Thank you.🔥
@tomdekan
@tomdekan 2 ай бұрын
Haha - you’re welcome :)
@TarikCA
@TarikCA 4 ай бұрын
simple and effective 👍 super convenient way to experiment with a new integration (webhooks, data syncing etc) until you reach performance boundaries.
@tomdekan
@tomdekan 4 ай бұрын
You summarised it well! Glad it was helpful Tarik 🙂
@GBOAC
@GBOAC 4 ай бұрын
Isn't this a bit like reinventing the wheel that Celery already offers?
@tomdekan
@tomdekan 4 ай бұрын
Nice question. In some ways, yes - this implements a simpler version of celery. The benefits are that it is much simpler, with no need for Redis or any other broker. Let me know if you've any more questions.
@franciscoribeiro5759
@franciscoribeiro5759 4 ай бұрын
@@tomdekan I wouldn't describe Postgres, a complex dbms with 1.5M+ lines of code taking (together with its dependencies) about 1.5GB of software, much higher hardware requirements, etc as simple let alone simpler than celery. The fact that celery can be wired with different backends or brokers says more about its modular and interoperable architecture. In reality, Redis and celery can be loaded as a bundle to effectively work as one so you can think of redis as an optional dependency. Postgres has way more dependencies / possible configurations so you are really not making it any simpler. If you want more reliability and nice monitoring you can use it with RabbitMQ which happens to already be the default. I used to do this sort of thing, the only advantage came from the fact I was already using postgres for my data and so I wasn't really adding much new software/complexity to add task queueing.
@tomdekan
@tomdekan 4 ай бұрын
​@@franciscoribeiro5759 Thanks for your comment 🙂 In the video, I mention that you can actually use this technique for SQLite (which is even simpler) than both. But, besides that, regarding your main point, I understand your point. However, I view simplicity differently. For me, simplify is not largely based on dependencies, or possible combinations. A dependency in itself is not a bad thing (you could arguably see the python language itself as having many in-built dependencies in its in-built modules!). For me, there is much more complexity when you have multiple services running. E.g., Rabbit / Redis + Celery. In contrast, I view Postgres as very simple to setup, ultra-reliable, and generally easy to use without problems. In a positive sense, it's so reliable that it's boring 🙂 So, I view simplicity and complexity differently to you. But I understand your point and appreciate your comment.
@Jakub1989YTb
@Jakub1989YTb 4 ай бұрын
@@tomdekan Exactly. Nowadays, in the time of Docker, simplicity may be indeed measured in "containers running". I too no longer care, what is being run inside the container. Merely about it size and resources used. Thanks for the video.
@tomdekan
@tomdekan 4 ай бұрын
@@Jakub1989YTb Interesting point Jakub - and you're welcome!
Add Stripe subscriptions to Django in 7 mins 💵
6:32
Tom Dekan
Рет қаралды 2 М.
Asynchronous Tasks in Python - Getting Started With Celery
9:07
Pretty Printed
Рет қаралды 149 М.
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 25 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН
Docker - Django, Celery & Redis Docker Compose setup
20:30
Very Academy
Рет қаралды 44 М.
How to use React with Django (in 10 mins) ⚛️
10:43
Tom Dekan
Рет қаралды 6 М.
React + Django Ninja: Full-Stack Auth (in 15 Mins) ⚡️
15:22
Tom Dekan
Рет қаралды 1,5 М.
Introduction to Celery and Creating Asynchronous Tasks for Django
13:20
How to use Vue with Django (including Auth) 🔒
19:29
Tom Dekan
Рет қаралды 3 М.
Using your Database as a Queue? Good or bad idea?
9:31
CodeOpinion
Рет қаралды 18 М.
Use Data Transfer Objects (DTOs) in .NET the Right Way 🚀
6:48
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 509 М.
React + Django + Ninja (Full-stack app in 15 mins)
12:17
Tom Dekan
Рет қаралды 2,5 М.
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 25 МЛН