Python QueueHandler & QueueListener - Offload Log Processing to Separate Thread | FastAPI demo

preview_player
Показать описание
Python's QueueHandler and QueueListener objects allow you to offload log processing to a separate thread - which can be beneficial for performance.

We'll explore these tools in this video, and how they can improve performance when using Python's SMTPHandler. We'll show a quick demo of how to use the QueueHandler in a FastAPI application.

► RELATED GUIDES
10 Best Practices for Logging in Python:

Logging in Python: A Comparison of the Top 6 Libraries:

► HACKING SCALE NEWSLETTER

► READ MORE

► STAY TUNED

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro and Setup
02:31 Setting up SMTPHandler
08:35 Offloading log processing to separate thread with QueueHandler & QueueListener
13:19 FastAPI app demonstration

#fastapi #logging #python #pythonprogramming
Рекомендации по теме
join shbcf.ru