跳至內容

Amazon Q Business Custom Plugin Timeout Limit

0

What is the timeout for Amazon Q Business Custom Plugin when calling our custom API? I am considering integrating with our custom API that could run a little bit long that up to several minutes.

Thank you!

已提問 1 年前檢視次數 308 次

2 個答案
5

Consider below as workarounds:

  • Async Processing: Have your plugin trigger the long-running task and return a task ID immediately. Then, use a separate query to check the status or retrieve the result later.
  • Optimize API Performance: If possible, reduce the processing time of your API to fit within a 30–60 second window.
  • Use Event-Driven Architecture: Consider using AWS services like SQS or Lambda to queue and process tasks asynchronously, then notify the user when the result is ready.
專家

已回答 1 年前

  • Got it. One question, so the acceptable timeout for Q Business Custom Plugin API is under 60 sec, right?

0

Based on the available information, there isn't specific documentation about the timeout limit for Amazon Q Business Custom Plugin when calling custom APIs.

For Amazon Q Business, there is information about the chatSync API having a default limit of 5 maximum queries per second (QPS) per index when using the UI, and this limit is adjustable by contacting AWS Support. However, this refers to throttling limits rather than timeout duration.

For API Gateway, which might be relevant if you're using it as part of your integration, the integration timeout can be set between 50 milliseconds and 29 seconds by default. For Regional APIs and private APIs, this timeout can be increased beyond 29 seconds, though this might require a reduction in your account-level throttle quota limit.

If you're planning to integrate with a custom API that could run for several minutes, I recommend reaching out to AWS Support directly to understand the specific timeout limitations for Amazon Q Business Custom Plugin and to discuss potential solutions for your use case.
Sources
API getaway timeout limit | AWS re:Post
API limits and cost for Q business chatSync API | AWS re:Post
Integration - Amazon API Gateway

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。