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

Asked 1 years ago, Updated 1 years ago, 90 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.