Erioifpuderio.hashnode.dev·Nov 15, 2024关于任务队列的实现背景 或者叫任务池吧,我也不太确定这个的学名叫啥,反正就是那种可以限制同一时间执行的任务数量的工具函数。 我前两天偷懒让 LLM(Claude)给我生成了一段,他是这样写的: export const runConcurrency = async <T>( tasks: Array<() => Promise<T>>, concurrency: number = 3 ): Promise<Array<T | Error>> => { const results: Array<T |...DiscussJavaScript
Martin Beierling-Mutzblog.embiem.me·Oct 17, 2024Unleash Your Home Hardware: Processing Long-Running Tasks at HomeWhether it's a web or mobile app, most software involves some form of data handling, user interaction, and server-side logic. Often, you'll encounter tasks that require significant processing time: batch email sends, LLM-powered content generation, h...DiscussTask queue
Snehangshu Bhattacharyablogs.snehangshu.dev·Oct 6, 2024Distributed Computing with Python: Unleashing the Power of Celery for Scalable ApplicationsHave you ever wondered about when you upload an 8K Ultra HD video to YouTube and immediately YouTube starts to process and optimize that video and make multiple copies of it in 1080p, 720p, 480p, 360p and 144p so that your content can be streamed to ...Discuss·109 readsPython
Gaurav Yadavgauravblogss.hashnode.dev·May 23, 2024The JavaScript Paradox: Synchronously Asynchronous"JavaScript is a synchronous, single-threaded language" - a line we have heard numerous times. Let's dive deep into it and understand the duality of JavaScript where it inherently is a synchronous language but can perform operations asynchronously as...Discuss·10 likesJavaScript
Jaspreet Singhjaspreetsh.hashnode.dev·Jan 30, 2024Task Queue Systems: A LeetCode ExampleA task queue system is used when we want to run some time-consuming task asynchronously outside of the request-response cycle of the application. Let's take an example of how a solution is executed on Leetcode and the result is shown:- When we run ou...Discuss·1 like·122 readsTask queue
Nikhil AkkiPronikhilakki.in·Sep 23, 2023Boost Your FastAPI App's Performance with CeleryIntroduction In the world of modern web development, responsiveness and scalability are key. FastAPI, a lightning-fast web framework, has gained immense popularity for its speed and ease of use. However, when it comes to handling time-consuming tasks...Discuss·2.8K readsPython DevelopmentPython 3