Can there be multiple S3 event notification records in a single SQS message?

0

docs: https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html

I noticed the event structure is something like

{  
   "Records":[  
     <some_json_event_record>
   ]
}

Given that "Records" is an array, should I ever expect multiple S3 events in the same SQS message or is it guaranteed to always be at most one?

1개 답변
2
수락된 답변

Can there be multiple S3 event notification records in a single SQS message?

Yes, when an S3 event notification is sent to an SQS queue, it includes an array called "Records," which contains one or more records. Each record represents a single S3 event, such as the creation or deletion of an object in a bucket. It's possible for a single SQS message to contain multiple records if multiple S3 events occurred in quick succession. This allows S3 to batch events together and send them in a single notification message to SQS.

profile picture
전문가
답변함 2달 전
profile pictureAWS
전문가
검토됨 2달 전
  • Thanks! Makes sense. Do you know if the number of S3 events records in a single SQS message is bound to some threshold or should I consider it unlimited?

  • The number of S3 event records in a single SQS message is limited by the message size, which is 256 KB. So, it's not unlimited, and the actual number of records depends on their size. Quotas Messages

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠