Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQS - why limiting maximum message size?

Tags:

amazon-sqs

Is there any reason why I should a lower than maximum limit in Maximum message size in AWS SQS? I'm not able to find anyone good one...

enter image description here

like image 409
Amio.io Avatar asked Aug 10 '26 21:08

Amio.io


1 Answers

SQS provides many pro's like bulk message send , delayed messages , polling etc. So since we have all these pro's they definitely need to limit their sizing. But how we handled was ,

  • we check the message size and if the message size is above 256kb , we upload the message to s3 with unique id as file name and share the message in queue as { largeFile : true , id : (s3 File Name)} , now the consumer checks whether the largeFile is true , if so fetches from s3 and processes the data , simple :)

  • Or if u want only queue go with other message brokers like rabbitmq , where there isn't any size limits.

like image 57
CHECoder08 Avatar answered Aug 12 '26 14:08

CHECoder08