Advice on receiving webhooks and generating EventBridge events

0

Hi, iam looking for some best practice advice on how to receive webhooks and then generate events for Amazon Event Bridge. I have discovered some articles that describe the following procedures

  • Receiving a webhook with a Lambda function Url with validating the webhook within the function and then generate an EventBridge event directly using the SDK (C# in my case).
  • Receiving a webhook with a Lambda function Url, validating the webhook within the function and then store the webhook payload with metadata in S3 which then triggers an EventBridge event that has a pipe to retrieve the payload from the created object in s3.
  • Receiving a webhook via AWS API Gateway with an Authorizer Lambda function to validate the webhook and another lambda that processes the webhook.

The webhooks (expense records) I need to process range between 200 to 500 requests per day quite evenly distributed over the day and the payload size is about 500 bytes. Webhooks at the vendor side can be configured in terms of retry and failure behaviour.

What I want to know if any of the above procedures is a good fit, or if there is even another option? If the all fit what would be the criterias to place an API Gateway in front?

Thank you in advance, Stefan

profile picture
已提问 1 个月前106 查看次数
1 回答
1
已接受的回答

Hello.

I think it depends on the content of the webhook and the system, but I think I would implement it in the following way.

Receiving a webhook with a Lambda function Url with validating the webhook within the function and then generate an EventBridge event directly using the SDK (C# in my case).

What I want to know if any of the above procedures is a good fit, or if there is even another option? If the all fit what would be the criterias to place an API Gateway in front?

API Gateway supports REST API and WebSocket in addition to HTTP API, but I thought it was a little advanced to use for simple webhooks.
For example, if you want to use advanced authentication using Cognito etc., I think it is better to use API Gateway.

profile picture
专家
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则