filmov
tv
Background Tasks with FastAPI Background Tasks and Celery + Redis - FastAPI Beyond CRUD (Part 20)
Показать описание
In this video, we dive deep into boosting your FastAPI application by offloading time-consuming tasks to the background. We'll start by exploring FastAPI's built-in background tasks, demonstrating how to execute functions asynchronously without blocking the main thread.
Next, we'll introduce Celery, a powerful task queue system, to handle more complex background jobs. You'll learn how to integrate Celery with FastAPI, creating a robust and scalable architecture for your application.
To conclude, we'll showcase Flower, a user-friendly web interface for monitoring and managing Celery tasks. This tool provides insights into your task queues, helping you troubleshoot and optimize performance effectively.
COURSE WEBSITE:
SOURCE CODE:
#python #fastapi #apidevelopment #redis
PLEASE DONATE TO THE CHANNEL THROUGH:
BUY ME A COFFEE:
PATREON:
You can also consider Becoming a member of this channel.
FOLLOW ME:
X:
GITHUB:
TIMESTAMPS
(00:00:00) Introduction
(00:01:53) FastAPI Background Tasks
(00:05:06) Installing Celery
(00:06:04) Explaining Celery Concepts
(00:07:28) Configuring Celery
(00:11:18) Creating the first Celery task
(00:18:58) Using Celery Tasks
(00:22:35) Running a Celery worker
(00:22:35) Running Celery workers
(00:34:43) Monitor Tasks with Flower
(00:43:14) Conclusion
Next, we'll introduce Celery, a powerful task queue system, to handle more complex background jobs. You'll learn how to integrate Celery with FastAPI, creating a robust and scalable architecture for your application.
To conclude, we'll showcase Flower, a user-friendly web interface for monitoring and managing Celery tasks. This tool provides insights into your task queues, helping you troubleshoot and optimize performance effectively.
COURSE WEBSITE:
SOURCE CODE:
#python #fastapi #apidevelopment #redis
PLEASE DONATE TO THE CHANNEL THROUGH:
BUY ME A COFFEE:
PATREON:
You can also consider Becoming a member of this channel.
FOLLOW ME:
X:
GITHUB:
TIMESTAMPS
(00:00:00) Introduction
(00:01:53) FastAPI Background Tasks
(00:05:06) Installing Celery
(00:06:04) Explaining Celery Concepts
(00:07:28) Configuring Celery
(00:11:18) Creating the first Celery task
(00:18:58) Using Celery Tasks
(00:22:35) Running a Celery worker
(00:22:35) Running Celery workers
(00:34:43) Monitor Tasks with Flower
(00:43:14) Conclusion
Комментарии