Glaudson Silva
Glaudson Silva

Reputation: 97

Api composition with AWS Api Gateway

I'm trying to implement API Composition in AWS API Gateway that is described here https://microservices.io/patterns/data/api-composition.html

API Composition

I have to make two calls for different modules before sending the response.

In my mind, I would be able to add more than one Integration Request and join the results with Template Mapping, but I couldn't found any documentation neither someone who have done it.

Am I getting it wrong? Should I create my own Composition Layer in the application and API Gateway's role is just point to it?

Upvotes: 5

Views: 1209

Answers (1)

qkhanhpro
qkhanhpro

Reputation: 5220

I don't think API gateway support this behaviour.

You will need to implement your own composition layer that forks your requests and merge the reponses

Upvotes: 7

Related Questions