Building a simple concurrent task queue on PostgreSQL only with Clojure code sample

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

Andrey Fadeev

Andrey Fadeev

Күн бұрын

Пікірлер: 10
@andrey.fadeev
@andrey.fadeev Ай бұрын
☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this: 👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev 👉 Ko-fi: ko-fi.com/andreyfadeev Please also subscribe to my other resources: 👉 Substack: blog.andreyfadeev.com 👉 Telegram: t.me/andreyfadeevchannel I'm truly grateful for your support, and thank you for watching! 🙏
@JukkaLehtimäki
@JukkaLehtimäki Ай бұрын
Good explanation on how to build an unlimited concurrency task queue. The real challenge is when requirement comes in that some tasks can't be run in parallel. You would need to add a new column "group" into the table and ensure that only one task in a group can be executed at any time. Tasks without group can be run as shown here.
@caiocesar4827
@caiocesar4827 Ай бұрын
Thanks a lot for you video! I was hopping to see test cases that check the concurrency aspect of this service.
@andrey.fadeev
@andrey.fadeev Ай бұрын
Hi, thanks! Sorry I was a bit lazy when I was preparing the video :) Could be a good exercise and I can merge it to the repo if send a PR. It could be something like create N of tasks and run processing on a threads pool (eg with claypole library) and validate that each item was processed exacly once
@caiocesar4827
@caiocesar4827 Ай бұрын
@@andrey.fadeevsounds nice! I will try myself too. Thanks a lot, and also I didn’t know this library, I’ll have a look! 😊
@andrey.fadeev
@andrey.fadeev Ай бұрын
@@caiocesar4827 I have a video about clojure concurrency on the channel, maybe that will be useful!
@FrancoGasperino
@FrancoGasperino Ай бұрын
There is a PG extension named pgmq, which supports this within postgresql.
@andrey.fadeev
@andrey.fadeev Ай бұрын
Cool, good to know, still useful to know underlying mechanisms
@AnandKumar-dc2bf
@AnandKumar-dc2bf Ай бұрын
I am planning to Learn Clojure. (I already know GO, Python).. Can u let me know how are the job prospects for Clojure ..
@andrey.fadeev
@andrey.fadeev Ай бұрын
Clojure job market is not too bad but it also depends on location, Europe/UK and USA - there is plenty of Clojure companies. Of course it's a niche language so the absolute number of jobs is much less. Good news is that pay is usually quite good and overall atmosphere in the companies.
Go vs core.async, let's build and compare 2 simple applications
19:15
Andrey Fadeev
Рет қаралды 1,3 М.
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,5 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 28 МЛН
Desktop GUI Made Easy (by Nikita Prokopov)
52:40
London Clojurians
Рет қаралды 5 М.
Next.js API with Hono: The Best Route Handler Alternative!
24:28
AMGOUN STUDIO
Рет қаралды 2,6 М.
The Only Database Abstraction You Need | Prime Reacts
21:42
ThePrimeTime
Рет қаралды 219 М.
The Vim Experience
45:19
Bog
Рет қаралды 112 М.
Local GraphRAG with LLaMa 3.1 - LangChain, Ollama & Neo4j
15:01
Coding Crash Courses
Рет қаралды 26 М.
Stop With Software Estimates
16:54
ThePrimeTime
Рет қаралды 145 М.
Better way to consume Kafka topics with Confluent Parallel Consumer
17:06
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 251 М.
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН