Tag: asyncio
-
Concurrency vs. Parallelism: Achieving Scalability with ProcessPoolExecutor
In our previous exploration, we dove deep into AsyncIO by writing a task scheduler. We discovered how IO-bound operations were scheduled to the event loop concurrently while building our task scheduler project. Building on what we’ve done, we will revisit the project and scale it to run CPU-bound operations. Join us in this journey to…
-
AsyncIO Task Management: A Hands-On Scheduler Project
We discussed Awaitables last week. The article covered coroutines, tasks and futures as well as a quick introduction to the event loop. Let’s build an example task management project to continue our journey on learning asynchronous programming with AsyncIO. Here’s a recap of relevant articles on AsyncIO so far: How to write an AsyncIO Telegram…
-
Understanding Awaitables: Coroutines, Tasks, and Futures in Python
Previously, we explored chatbot building with AsyncIO. As I am committing to publish one article a week, I am constantly on the lookout for new ideas. Then I figured it may be a good opportunity to delve deeper into asynchronous programming. The writing plan eventually expanded to a series of articles, and we are starting…
-
How to write an AsyncIO Telegram bot in Python
Last week, we discussed a quick weekend project on building a word game. That project was sparked by a conversation suggesting I integrate LLM functionality into my experimental chatbot, BigMeow. Currently, I’m working on another chatbot project, and I’m reusing some code from BigMeow. Back then, I struggled a lot, especially with the lack of…