Handling 503 Errors and Priority Queues in Rust | Glowing Telegram project - Episode 94

Channel:
Subscribers:
542
Published on ● Video Link: https://www.youtube.com/watch?v=1hseKXi23RM



Duration: 0:00
25 views
3


In this video, I delve into handling 503 errors and implementing priority queues for our background task handling system using Rust. My goal is to improve the way our YouTube upload service interacts with the task API, ensuring smooth handling of Google quota limits by setting retry timestamps and efficiently queuing tasks for later processing. I'll cover the following key points:

1. Handling 503 Errors: We discuss identifying and dealing with 503 errors, specifically focusing on setting the appropriate retry timestamps when encountering quota limits.
2. Task Queuing Mechanism: We analyze the current first-in, first-out (FIFO) queue system and explore transitioning to a priority-based queue, ensuring tasks are processed only when they're ready.
3. Implementing Sorted Sets in Redis: Learn how to utilize Redis sorted sets to maintain a priority queue, using timestamps to prioritize tasks and manage retries effectively.
4. Code Modifications: Watch as we modify existing functions to incorporate the new queuing mechanism, ensuring tasks are queued and processed according to their retry timestamps.
5. Using Blocking Commands: Explore the usage of Redis blocking commands like `BZPOPMIN` to handle task retrieval effectively without constant polling.

Join the live coding session as I tackle these challenges and optimize our Rust-based background task system for robustness and efficiency.

🔗 Check out my Twitch channel for more streams:   / saebyn  
GitHub: https://github.com/saebyn/glowing-tel...
Discord:   / discord  




Other Videos By saebynVODs


2024-09-10Fixing React-Admin Perf Issues + Enhancing Task Management | Glowing-Telegram Project - Ep 104
2024-09-09Debugging Rust APIs and Task Chaining in React-Admin | Glowing-Telegram Project - Episode 103
2024-09-08Solving Complex Querying and Asynchronous Tasks | Glowing Telegram Project - Episode 102
2024-09-07Fixing Stream Date Sorting in Rust APIs for React Admin | Glowing Telegram Project - Episode 101
2024-09-06Consolidated Rust-based API service part 3 | Glowing Telegram - Episode 100
2024-09-05Consolidating Rust APIs part 2 | Glowing Telegram - Episode 99
2024-09-04Consolidating Microservices in Rust | Optimizing Glowing Telegram Project - Episode 98
2024-09-03Improving YouTube Upload API with Rust for Glowing-Telegram Project - Episode 97
2024-09-02Priority Queues in Redis for Rust API Tasks Cont'd - Glowing Telegram project - Episode 96
2024-09-01Implementing Priority Queues in Redis for Rust API Tasks - Glowing Telegram project - Episode 95
2024-08-31Handling 503 Errors and Priority Queues in Rust | Glowing Telegram project - Episode 94
2024-08-30Handling API Quotas and Task Status in Rust - Glowing Telegram project - Episode 93
2024-08-29Handling API Quotas & Notifications in Rust and React-Admin | Glowing Telegram project - Episode 92
2024-08-28Debugging Notification Issues in React-Admin with Rust APIs | Glowing Telegram - Episode 91
2024-08-27Debugging Rust APIs w/ React-Admin Task Status Updates | Glowing Telegram project - Episode 90
2024-08-26Handling Task Status Updates in Rust APIs with React-Admin | Glowing-Telegram Project - Episode 89
2024-08-25More Real-time Notifications with Rust APIs and React-Admin | Glowing-Telegram Project - Episode 88
2024-08-24WebSockets for Real-Time Updates in Rust and React Admin | Glowing-Telegram Project - Episode 87
2024-08-23Building Real-Time Notifications w/ Rust & WebSockets | Glowing-Telegram Project - Episode 86
2024-08-22Implementing Dynamic Input with React-Admin | Glowing-Telegram Project - Episode 85
2024-08-21Enhancing YouTube Series Management | glowing-telegram project - Episode 84