skynetcap / serum-data

Open Book Market Data interface on Solana
https://openserum.io
MIT License
38 stars 8 forks source link

[SRM-77] CompletableFuture tuning #61

Closed skynetcap closed 2 years ago

skynetcap commented 2 years ago

Original task was "Convert CompleteableFuture usage to Spring TaskExecutor". Instead, I set the number of threads in the Common ForkJoinPool to 16, so that server with 2 CPUs don't have slow startups. Also, Added a single retry, and lowered the read timeout to 20s, so we can hit the retry quicker.

SRM-77

linear[bot] commented 2 years ago
SRM-77 Convert CompleteableFuture usage to Spring TaskExecutor

[https://docs.spring.io/spring-framework/docs/5.3.x/reference/html/integration.html#scheduling-task-executor-types](https://docs.spring.io/spring-framework/docs/5.3.x/reference/html/integration.html#scheduling-task-executor-types)