admin管理员组

文章数量:1289866

I use AWS Opensearch Serverless index in my system. I have around 1M documents with parent child relationship. I do aggregation in the data. I have exposed API with the Opensearch at the backend.

When i hit the API, in backend i construct opensearch aggs query and use _search API to hit opensearch and return the response to the client. The issue is when i try the API in postman i get milliseconds response. But when i hit around 10 - 15 parallel API calls from the UI / Client side. I get an delay of around 6-7 seconds.

Just wanted to figure out why is it happening like this.

I use AWS Opensearch Serverless index in my system. I have around 1M documents with parent child relationship. I do aggregation in the data. I have exposed API with the Opensearch at the backend.

When i hit the API, in backend i construct opensearch aggs query and use _search API to hit opensearch and return the response to the client. The issue is when i try the API in postman i get milliseconds response. But when i hit around 10 - 15 parallel API calls from the UI / Client side. I get an delay of around 6-7 seconds.

Just wanted to figure out why is it happening like this.

Share Improve this question edited Feb 20 at 17:09 Ken White 126k15 gold badges236 silver badges464 bronze badges asked Feb 20 at 17:07 Gowtham S SGowtham S S 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You might want to setup cloudwatch logs to see if there is any API throttling from the Opensearch cluster. In my experience when I call many API's concurrently AWS tends to limit them.

本文标签: amazon web servicesParallel search request hits gives delayed responseStack Overflow