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 Resposta
2
Resposta aceita

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
respondido há 2 anos
profile pictureAWS
ESPECIALISTA
avaliado há 2 anos
  • thanks for the response Eduardo, much appreciated. I'll take a look at the business logic layer recommendations. Thanks again

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas