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
asked 14 days ago79 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 14 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions