1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
I do not know what in the GCP APIs prevents the parallel access. If there is really something on their side, I would assume it has to do with an API Key or credentials. If this is the case, you will need to obtain multiple API keys/credentials so that you can run in parallel.
Assuming GCP is not the limiting factor, or that you can obtain multiple API Keys/credentials to run in parallel, you have a few options:
- Run multiple threads in your function. There is no reason the threads can't make a call to an API at the same time.
- Create an Express state machine in Step Functions and use the Map state to run a function in a loop, giving it high concurrency. Each invocation will check the status of one region. The total running time should not be much longer than the slowest region.
関連するコンテンツ
- 質問済み 4ヶ月前
- AWS公式更新しました 3年前
- AWS公式更新しました 1年前
Thank you for your response. I think the issue is related to the googleclientapis library. Instead of using it, I used an access token to make direct calls to the GCP endpoint, and it worked very efficiently, reducing the execution time significantly. Once again, thank you.