Skill 4.2.1
Create responsive AI systems to address latency-cost tradeoffs and improve the user experience with FMs (for example, by using pre-computation to perform predictable queries, latency-optimized Amazon Bedrock models for time-sensitive applications, parallel requests for complex workflows, response streaming, performance benchmarking)
Key Concepts
Pre-computation generates answers to predictable requests, such as product summaries or FAQ answers, in advance with batch inference and serves them instantly. Latency-optimized inference in Bedrock, selected with the performanceConfig setting for supported models and Regions, runs models on faster infrastructure for time-sensitive applications at a higher price. The Priority service tier also favours latency for critical traffic.
Parallel requests run independent sub-tasks concurrently, for example in a Step Functions Parallel state, so total latency equals the slowest branch. Streaming reduces time to first token. Benchmarking measures time to first token, output tokens per second and end-to-end latency at realistic percentiles (p50, p90, p99) before and after each change.