How to reduce server response waiting time when sending requests?

38 views Asked by At

Im trying to create a arbitrage bot, so I need to query data faster than other bots. I tried all methods such as using aiohttp, multi-threading, multi-processing, but seems that my bot still slower than competitor. I realized that problem can be Waiting Server response time (it's cloudflare server). It takes 0.29s to complete a request. Is there anything I can do to optimize this waiting time ? I'm thinking about sending request directly to origin server not cloudflare server . Is it possible ?

0

There are 0 answers