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
preguntada hace 2 años678 visualizaciones
1 Respuesta
2
Respuesta aceptada

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 hace 2 años
profile pictureAWS
EXPERTO
revisado hace 2 años
  • thanks for the response Eduardo, much appreciated. I'll take a look at the business logic layer recommendations. Thanks again

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas