All Questions
Tagged with asynchronous-programming python
6 questions
1
vote
0
answers
483
views
How to structure your Python code with asynchronous and synchronous parts
I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm.
For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
5
votes
1
answer
2k
views
Implementing both Sync and Async clients with DRY
I'm developing a client library. I'd like to provide both Sync and Async interfaces to endpoints on a server. They would be rather easy to implement as completely separate entities, but I would like ...
2
votes
1
answer
102
views
How do I approach polyglot plugins for asynchrous python applications?
I've been looking at ways to let my app's users write plugins for it. However, to give them more options, I decided to implement a polyglot plugin system.
From the engineering perspective there are ...
7
votes
1
answer
458
views
API design: stream objects vs. functions vs. messages
I'm designing API for a python library that accepts asynchronous input and produces the asynchronous output: various signals come in, and various signals are generated in response (there's no one-to-...
1
vote
1
answer
2k
views
Is the logic behind `Asyncio.wait()` and async/await, the same, just the code is written differently (syntax)?
I'm learning Python, more specially parallel programming using Python Parallel Programming Cookbook by Giancarlo Zaccone.
At the time the book was published async/await was still in the beta version ...
3
votes
0
answers
733
views
Gevent - Make blocking calls non-blocking
I have the blocking code shown below.
Is calling monkey.patch_all() enough/optimal to make it non-blocking?
Does Gevent handle iterations like these?
# front page
def front_page():
database = ...