API Gateway Passthrough

0

Hi All

Hope you can help.

I have an API setup in the AWS API gateway. The only thing it is doing is passing through data to a different Endpoint URL and adding an Authorization header.

My client is asking for the contents of the API to be forwarded to multiple Endpoint URLs rather than just one. Is this something that can be achieved? I can't seem to find any documentation on it and I'd like to try and avoid any Lambda functions if possible.

Thanks

Craig

1 Answer
2
Accepted Answer

Hi Craig! I'm afraid you won't be able to that with API Gateway only. You would have the following problem: what would be the answer to the requesting client if each endpoint URL sends a different answer back? How to orchestrate the different latencies?

So, a business logic layer (with Lambda, or even Step Functions express synchronous call) is the way to achieve what you need.

API Gateway can call the Step Functions directly with AWS Service integration. It is also available for REST APIs using AWS integration type.

profile pictureAWS
Eduardo
answered 2 years ago
profile pictureAWS
EXPERT
reviewed 2 years ago
  • thanks for the response Eduardo, much appreciated. I'll take a look at the business logic layer recommendations. Thanks again

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions