Which is better, multi-threading, multiprocessing, or asyncio, for Python parallel http request/response?

Asked 2 years ago, Updated 2 years ago, 102 views

Python is programming to execute http requests in parallel. I am planning to request restapi and collect the requested values and upload them to the cloud multiprocessing, Multi-threading, Asyncio Asynchronous Request Which method should I program faster?

python python3.7 multithreading multiprocessing asyncio

2022-09-20 19:32

1 Answers

Since http is blocked in io, asyncio is the most effective, but not all domains can have the same situation, so you can implement it in three forms and try BMT before selecting it.


2022-09-20 19:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.