EventBridge Scheduler targeting SQS FIFO queues is useless for rates less than 5 minutes

0

Can someone please confirm that I am understanding this correctly?

  1. GOAL: Use Event Bridge Scheduler to target an SQS FIFO queue at a rate of every 1 minute.
  2. Based on this (https://docs.aws.amazon.com/scheduler/latest/APIReference/API_SqsParameters.html), the first paragraph states: "If you specify an Amazon SQS FIFO queue as a target, the queue must have content-based deduplication enabled."
  3. Based on this (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html), the deduplication interval is hard-coded to 5 minutes.

My understanding then is that 4 out of 5 of the attempts to queue the message will fail silently as "accepted but duplicate".

已提问 1 年前747 查看次数
1 回答
0

The evens that EventBridge Scheduler pushes to the queue are different every minute, so there will not be deduplication.

See the following two events. You can see that there is a different id as well as a different time field:

{"version":"0","id":"1164d9e9-31a8-419f-b38e-5a1d803fce6e","detail-type":"Scheduled Event","source":"aws.scheduler","account":"XXXX","time":"2023-08-14T08:43:29Z","region":"eu-west-1","resources":["arn:aws:scheduler:eu-west-1:XXXX:schedule/default/Fifo"],"detail":"{}"}

{"version":"0","id":"1164d9e9-6da8-419f-b38e-5a1d803fce6e","detail-type":"Scheduled Event","source":"aws.scheduler","account":"XXXX","time":"2023-08-14T08:44:29Z","region":"eu-west-1","resources":["arn:aws:scheduler:eu-west-1:XXXX:schedule/default/Fifo"],"detail":"{}"}
profile pictureAWS
专家
Uri
已回答 1 年前
  • That is not correct. For Scheduler, the "message body" is static text.

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

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

回答问题的准则