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 Antwort
2
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
überprüft vor 2 Jahren
  • thanks for the response Eduardo, much appreciated. I'll take a look at the business logic layer recommendations. Thanks again

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen