Open GeekArthur opened 2 years ago
This may be related to #51
We might just take the sync_status parameter out for now and see if that improves things for that endpoint.
The /block
endpoint will naturally take longer due to the 100-200k ops required to be parsed for the reward blocks. I'll see if there are any optimizations we can do to parse it faster.
@Arslan2 can still hit the same issue on multiple endpoints
/network list/status/options/balance APIs are now taking under ~2 seconds on AWS for mainnet
Can we address those performance issues if the specific endpoint response time does not naturally take that long?
Originally the slow API response issue was detected by @Arslan2 with the following description:
The response time for rosetta APIs are very high. Sometimes it takes around 20+ seconds to get response from
/network/status
particularly. At one point/block
API took ~2 minutes to return the response. You can see the below logs for response time. The instance we are using isc5.2xlarge
Response time log:
@syuan100 Already did some optimizations, we need to test against the latest version to see if the performance issue still exists