Orchestration of API invocation within AWS API Gateway

0

As part of integration, I have to setup account [1], profiles [2], orders [3] and prices [4] details in the Billing system. Billing system exposes Standard REST API for each of these requirements and the integration layer to ensure that they are called one after another after successful completion of previous step.

For example, Integration layer to invoke Account REST API. After success from Account API, Invoke Profiles REST API with BillingPlatform.

Does Amazon Step Functions helps to co-ordinate this API orchestration?

1回答
0

StepFunctions can be invoked from API Gateway so you can have an API that invokes a state machine, that performs several steps. Step Functions can also have Task states that makes calls to API Gateway.

So the short answer is yes, you can use Step Functions to coordinate several API calls.

profile pictureAWS
エキスパート
Uri
回答済み 9ヶ月前
  • Thanks for your response. In my use case, all these APIs (account [1], profiles [2], orders [3] and prices [4]) must be called in Synchronous fashion and orchestrator should wait for response before calling next target API in-line. For ex., account API returns an identifier which must be used to link it profiles and orders while calling those API. Also, orders API returns order line references which must be linked to prices while calling Price API

    Unfortunately, my target system does not the callback capability. So, orchestrator should initiate these 4 API calls in Sync fashion and use the returned response while calling next API in-line

  • So just use Task states, one after the other, each one making a call to API Gateway.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ