The BEST way to run background jobs in Next.js
Ryan T. Brown
0:00 / 0:00
The BEST way to run background jobs in Next.js
7 807 просмотров · 2 года назад
Ryan T. Brown
162 подписчика
7 807 просмотров · 2 года назад
Background jobs in Next.js are always a hassle, sacrificing the developer experience or the reliability, but there is a way you can have both!
#nextjs #queues #serverless #typescript
Code: https://github.com/getproductstack/jobs
Article: https://ryantbrown.me/articles/simple...
Timestamps:
00:00 - What background processing is
00:36 - Why process in the background
01:15 - The problem with serverless
01:39 - Introducing Upstash QStash
02:20 - QStash example
03:10 - Developer experience
04:00 - Jobs as first class objects
05:53 - Dynamic route handler
06:25 - Using our new jobs
06:49 - Conclusion