PediatricOpenTargets / OpenPedCan-api

2 stars 7 forks source link

Profile and optimize OpenPedCan-api API server performance #55

Open logstar opened 2 years ago

logstar commented 2 years ago

OpenPedCan-api API is expected to respond 5 concurrent requests within 10 seconds, as suggested by @taylordm .

OpenPedCan-api API DEV site response times are summarized in the following boxplot. The median response time of /tpm/gene-all-cancer-gtex/plot endpoint is about 5 seconds per request, which will be longer after including more samples.

endpoint_response_time_boxplot

OpenPedCan-api API DEV/QA/PRD sites have multiple OpenPedCan-api API HTTP servers running on the backend, so multiple HTTP API requests can be handled concurrently.

OpenPedCan-api API DEV/QA/PRD sites need to be profiled with the following steps:

Based on the profiling results, investigate and discuss:

Test and implement promising optimization approaches.

cc @taylordm @chinwallaa @blackdenc