DynamoDB streams to EventBridge Pipe Start/Stop

0

If I have a working pipeline with DDB streams and a Pipe, then I stop the pipe and start it again (10 minutes) any modification in DDB during the stopped time will be processed by the Pipe when it started again.

Is it possible to change this behavior? Doesnt pool the messages while the Pipe is stopped?

ilfoxo
質問済み 10ヶ月前421ビュー
2回答
2
承認された回答

Event Bridge Pipes and Lambda's Event Source Mapping work the same way, if you simply stop the mapping, it retains a pointer to the last iterator position and knows how to pick up where it left off.

However, you wish for it to skip any events in between, which means you will need to do 1 of two things:

  1. Delete the pipe, and re-create it as opposed to stopping it.
  2. If you have timestamps in your items, you can add a filter to your pipe, to not invoke within a given time range.
profile pictureAWS
エキスパート
回答済み 10ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
-1

Hi, EventBridge Pipes can be configured to work in batch mode where it buffers events up to five minutes (or 6 MB)

See https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-dynamodb.html

To avoid processing a small number of records, you can tell the pipe to buffer 
records for up to five minutes by configuring a batching window. Before processing 
the events, EventBridge continues to read records from the source until it has gathered 
a full batch, the batching window expires, or the batch reaches the payload limit of 6 MB.

If this doesn't solve your use case, you will have to go to some buffering mechanism on your own: never stop the pipe, get all events stored in a DDB table (or S3 bucket) that you manage and re-stream on a Pipe managed by you those when consumer is ready to accept them.

I'd also suggest to read this blog post, whose mechanisms are (partially) applicable to what you're trying to achieve.

Best,

Didier

profile pictureAWS
エキスパート
回答済み 10ヶ月前

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

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

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

関連するコンテンツ