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

profile picture
已提問 2 年前檢視次數 678 次
1 個回答
2
已接受的答案

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
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前
  • thanks for the response Eduardo, much appreciated. I'll take a look at the business logic layer recommendations. Thanks again

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南