Closed gaffelosked closed 3 years ago
Fixed by getting the best single core clock speed AWS could offer (z1d), still ages are way to high, ~100ms. I'm not an experienced programmer but I would say this needs much CPU optimization. It was fun messing about with at least.
Even with the best CPU, you need to be physically closer to the Binance servers for low latency. Colocation is optimal
The bot only utilizes a single thread, so ramping up your aws instance does not get much more return. Your config iterates 1000 times per update which will likely overwhelm any cpu
m5n.xlarge in Tokyo region 17ms. CPU clock 76%. WebSockets gets terminated. Same happens for EUR.![image](https://user-images.githubusercontent.com/22619458/115287961-2760a480-a151-11eb-8e06-306220164f2c.png)
`{
}`