a-conceptual-overview-of-asyncio/readme.md at main · anordin95/a-conceptual-overview-of-asyncio

Contribute to anordin95/a-conceptual-overview-of-asyncio development by creating an account on GitHub.

GitHub
🚀 Breaking news: #PHP enthusiasts are apparently still alive and excited about something called coroutines! 🤯 Mind blown! PHP finally joins the cool kid club of asynchronous programming, only 20 years late. 😂✨
https://doeken.org/blog/coroutines-in-php #Coroutines #AsynchronousProgramming #TechNews #PHPCommunity #HackerNews #ngated
Exploring Coroutines in PHP

Coroutines are functions that pause and resume with state, allowing flexible, bidirectional control flow in PHP.

https://kitfucoda.medium.com/beyond-hardcoding-my-breakthrough-in-testable-parallel-python-cac762f691a0

The revelation came when I was adding a scheduler to the chatbot: What if I remove the hardcoding on the synchronization primitives? That worked right away, and as a bonus, it fixed all the unexplained problems I had with tests. It is interesting to see how a sudden flash of insight impacts the thought process and changes how code is written.

As shown in the article last week, we start from the main process, beginning with the setup of a ProcessPoolExecutor. All the synchronization primitives are sent individually to the run() function this time, given the simplified scope of this article. The setup for the FastAPI web module handles receiving a batch of data.

The background processing module was very basic, mostly just a proof-of-concept. Comparing the tests for the FastAPI application and the background module, the benefit is more apparent in the latter case. With the explicit passing of the queue object as an argument, there’s no more guesswork on which queue to patch in test.

Plus, as we are ensuring both the test and application are referring to the same queue now, we can pass real data into test, and ensure they are being received properly. Documenting the insight into blog posts can be seen as my attempt to think out loud. Perhaps we can go through the process of adapting it to our setup in a more generalized form in a future article.

#Python #FastAPI #AsynchronousProgramming #SoftwareArchitecture #UnitTesting #opentowork #fedihire #getfedihired

Beyond Hardcoding: My Breakthrough in Testable Parallel Python

Last week, we talked about removing hardcoded synchronization primitives. The refactoring was prompted by my revision to a take-home assignment I submitted for a job application. This week, let’s get…

Medium

A project recently tackled the challenge of taking a local command-line game and making it accessible remotely over SSH. Inspired by interactive SSH applications seen elsewhere, the exploration focused on using Python and the AsyncSSH library.

The work involved discovering effective methods for handling interactive input and output over SSH channels, learning how libraries abstract away network complexities, and ensuring the application handled multiple user sessions correctly. AsyncSSH proved a capable tool for this task.

The result is a functional game running over SSH, demonstrating how existing CLI concepts can be adapted for remote access. This opens possibilities for serving text-based interfaces (TUI) directly via SSH.

https://kitfucoda.medium.com/the-quest-continues-porting-the-word-game-with-asyncssh-51e40b43afa5

#Python #SSH #AsynchronousProgramming #DeveloperExperience #opentowork #getfedihired #fedihire

The Quest Continues: Porting the Word Game With AsyncSSH

Last week, we reimplemented our 20-questions variant, and it received quite a bit of attention. So far we built a web experience, as well as a command line interface for the game. However, unlike the…

Medium

🚀 Boost Python Efficiency with asyncio

Synchronous: Toast 🥪 → wait → Coffee ☕ → wait → Eat.

Asynchronous: Start Toast 🍞 & Coffee ☕ → Fry Eggs 🍳 → Eat sooner!

Python's asyncio lets you run tasks concurrently, reducing wait times.

Key Terms:

Event Loop: Task scheduler.

await: Pause & switch tasks.

Coroutines: Async functions.

#Python #Asyncio #AsynchronousProgramming

https://medium.com/@omkamal/a-beginners-guide-to-python-asyncio-db0daf63b8f4?sk=f46ff418fcb123945ad25b7263b06770

A Beginner’s Guide to Python Asyncio - OmarEbnElKhattab Hosney - Medium

Python’s asyncio can sound scary, but fear not! In this tutorial, we’ll break it down with real-life analogies, easy language, and a dash of humor. By the end, you’ll understand how asynchronous code…

Medium
Nebraska.Code 2025 hosted on Whova

July 23 – 25, 2025, Lincoln, NE

https://kitfucoda.medium.com/asyncio-task-management-a-hands-on-scheduler-project-bd7b7fe58c7e

Just finished a deep dive into AsyncIO, building an asynchronous task scheduler! It's been a fascinating exploration of tasks, futures, and how to manage both I/O and CPU-bound operations. Real-world examples like API data fetching and complex calculations were used to demonstrate its capabilities.

Covered task management essentials: cancellation, graceful shutdowns, and building a CLI for interactive control. Tackled tricky AsyncIO parts like error and signal handling, ensuring the scheduler's robustness.

A key focus was on asyncio.create_task() vs. await, and strategies for managing background tasks and uncaught exceptions. It was a great learning experience.

If you're into Python and asynchronous programming, this might be of interest! #Python #AsyncIO #AsynchronousProgramming #TaskScheduling #getfedihired #fedihire #opentowork

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…

Medium

Selecting the right message broker for your application demands a deep understanding of available options & messaging patterns.

Critical factors include: traffic, auto-scaling, poison pill tolerance, batch processing, and ordering.

Read the #InfoQ article by Nehme Bilal and get it right: https://bit.ly/4iv41IW

#SoftwareArchitecture #EventDrivenArchitecture #ApacheKafka #AsynchronousProgramming #CloudComputing

Beyond Trends: A Practical Guide to Choosing the Right Message Broker

Choosing the right message broker for your application requires matching the appropriate technology, whether stream-based or queue-based, with the messaging patterns needed.

InfoQ

.NET async/await dans tous ses états

2 avril 2025, 19:00:00 CEST - GMT+2 - La Cantine by La Mêlée, Toulouse

https://mobilizon.mtg-france.org/events/b9719777-749c-4e9a-baa9-ce9e5dd96aad

.NET async/await dans tous ses états

2 avr. 2025, 19:00:00 - GMT+2 - La Cantine by La Mêlée, Toulouse - 📢 Première session de 2025 dédiée à .NET et son fameux async/await. ✨ Deux speakers en force pour un sujet autour de l'asynchronisme, l'occasion de revoir les fondamentaux et de pousser un peu le sujet…