Handling Large Messages on SQS with Node.js

0

What are the options available for handling messages greater than 256KB on SQS using node.js

1 réponse
0

It's the same answer as with all other SDKs: Store the object in S3 and then send a message in SQS with the location of the object. The documentation talks to this but unfortunately only Java has a pre-built library for this function; in other languages you need to do some coding - but the logic is the same.

profile pictureAWS
EXPERT
répondu il y a un an
  • Thanks for your reply, the java extended library comes with the necessary apis for handling large messages. I was looking if similar library is available for node js. Looks like it is not. But its strange that SQS is so limited with the size of the message. As a queuing service it should allow to handle large messages.

  • SQS is designed to support very high message rates - check out the statistics from Amazon Prime Day where SQS delivered over 70 million messages per second at peak. At that rate, having a maximum size message helps with scalability. 256 kB isn't a small message - it's only small if you're trying to pass around files. The issue with having a larger limit is that there is always going to be a case where you need "just a little bit more". So better to deal with large objects using a system that is designed to deal with that - such as S3.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions