Gain a Splash of New Skills - Coursera+ Annual Nearly 45% Off
Master Finance Tools - 35% Off CFI (Code CFI35)
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to implement background jobs and cron jobs in Next.js applications using modern tools and streaming techniques. Explore the benefits of separating backend functionality and discover how to create efficient data flows from Next.js client to server, then to external applications. Master the implementation of streaming workflows that eliminate the need for polling, allowing real-time updates to be pushed directly to your React UI. Follow along with a practical demo application that showcases the complete process from job initiation to result streaming, including how to set up steps and streams within workflows. Understand how to leverage tools like Motia for background job processing and learn to build responsive applications that handle long-running tasks without blocking the user interface. Gain insights into modern web development patterns that improve user experience through real-time feedback and efficient resource utilization.
Syllabus
00:00 Why separate backend?
01:40 Background jobs, Cron jobs
02:09 Motia
02:46 Demo app
04:33 Data flow Next.js client to Next.js server
05:30 Data flow Next.js server to Motia app
05:56 Steps & stream in a workflow
08:38 Stream result to UI
09:05 Result demo streaming result
09:45 Workbench
10:40 Stream to UI React
11:30 No polling needed
Taught by
ByteGrad