|
1 | 1 | { |
2 | | - "title": "API Gateway REST Streaming with Lambda and Amazon Bedrock", |
3 | | - "description": "Stream LLM responses from Amazon Bedrock through API Gateway REST API using Lambda response streaming for real-time AI chat experiences.", |
4 | | - "language": "TypeScript", |
5 | | - "level": "300", |
6 | | - "framework": "AWS CDK", |
7 | | - "introBox": { |
8 | | - "headline": "How it works", |
9 | | - "text": [ |
10 | | - "This pattern deploys an API Gateway REST API with response streaming enabled, backed by a Lambda function that streams responses from Amazon Bedrock (Claude) in real-time using Server-Sent Events (SSE).", |
11 | | - "When a client sends a prompt, API Gateway forwards it to a streaming Lambda function. The Lambda invokes Bedrock with streaming enabled and progressively writes each text chunk to the response stream. The client receives tokens as they are generated, dramatically reducing time-to-first-byte.", |
12 | | - "This pattern is ideal for building AI chatbots, copilots, and interactive assistants where real-time streaming improves user experience." |
13 | | - ] |
14 | | - }, |
| 2 | + "title": "Stream Amazon Bedrock responses with Amazon API Gateway", |
| 3 | + "description": "Stream LLM responses from Amazon Bedrock through Amazon API Gateway REST API using AWS Lambda response streaming for real-time AI chat experiences.", |
| 4 | + "language": "TypeScript", |
| 5 | + "level": "300", |
| 6 | + "framework": "AWS CDK", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "This pattern deploys an Amazon API Gateway REST API with response streaming enabled, backed by an AWS Lambda function that streams responses from Amazon Bedrock (Claude) in real-time using Server-Sent Events (SSE).", |
| 11 | + "When a client sends a prompt, API Gateway forwards it to a streaming Lambda function. The function invokes Amazon Bedrock and progressively writes each text chunk to the response stream. The client receives tokens as they are generated, dramatically reducing time-to-first-byte.", |
| 12 | + "This pattern is ideal for building AI chatbots, copilots, and interactive assistants where real-time streaming improves user experience." |
| 13 | + ] |
| 14 | + }, |
15 | 15 | "gitHub": { |
16 | 16 | "template": { |
17 | 17 | "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-streaming-lambda-bedrock-cdk", |
|
0 commit comments