Increase speed of Python Concurrent POST Calls

Замовник: AI | Опубліковано: 17.10.2025

My code is making around 200 python post calls at once. And in my server with 96 cores and 192 threads, it takes around 260 ms just to start the threads and around 740 to finish the threads. I want to improve the speed of starting & finishing the post calls. I am attaching my code. Your task is to improve the speed. You can do whatever you want. You can also make the calls in another language, it needs to be triggered from python. I tried multiprocessing etc in python, but the overhead of starting them seems to be more. You will only be paid, if you improve the speed. How will I measure the speed? I will run my code and your code 10-20 times, and the mean time taken needs to outperform. I am using Debian 11 on GCP server, C4D CPU with 96 cores and 192 threads.