apigw-sfn-express-athena-cdk: Synchronous Athena query API with zero Lambda - #3304
Open
NithinChandranR-AWS wants to merge 1 commit into
Conversation
…with zero Lambda Amazon API Gateway invokes an AWS Step Functions Express Workflow synchronously (StartSyncExecution) that starts an Amazon Athena query, polls it to completion, and returns the result rows in one HTTP call. Amazon Athena queries an AWS Glue table over Amazon S3. No AWS Lambda functions in the request path. Deployed and tested end-to-end in us-east-1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Amazon API Gateway invokes an AWS Step Functions Express Workflow synchronously that runs an Amazon Athena query and returns the result rows in a single HTTP request/response, with no AWS Lambda functions in the request path.
Architecture
Amazon API Gateway (REST, StartSyncExecution) -> AWS Step Functions Express Workflow -> Amazon Athena (StartQueryExecution REQUEST_RESPONSE, then a Wait/GetQueryExecution/Choice poll loop to completion, then GetQueryResults) -> results returned as JSON. Amazon Athena queries an AWS Glue table over data in Amazon S3; results are written to an S3 results prefix.
Deployed and Tested
Deployed in us-east-1 and tested end-to-end: a POST with a SQL query returns Athena result rows synchronously in one call; the Express execution completes with SUCCEEDED.
Checklist