Skill 2.4.1
Create flexible model interaction systems (for example, by using Amazon Bedrock APIs to manage synchronous requests from various compute environments, language-specific AWS SDKs and Amazon SQS for asynchronous processing, API Gateway to provide custom API clients with request validation)
Key Concepts
The Bedrock Runtime API offers Converse and InvokeModel for synchronous requests. Lambda functions, containers on ECS or EKS and EC2 instances call them with the AWS SDK for their language (Boto3 for Python, the AWS SDK for JavaScript and others), which handles signing, retries and credentials from the execution role.
For work that need not complete immediately, a producer sends requests to an SQS queue and workers call the model at a controlled rate, storing results in S3 or DynamoDB and notifying callers. API Gateway in front of the system validates requests against a model schema, rejecting malformed or oversized input before it costs tokens, and generates SDKs for client applications.