Spring Boot:
https://cloud.spring.io/spring-cloud-static/spring-cloud-aws/2.0.0.RELEASE/multi/multi__messaging.html
https://medium.com/@tiraarthur/amazon-sqs-with-spring-boot-example-c15f90938908
NodeJS:
For NodeJS to send message to SQS permissions, Lambda must have AmazonSQSFullAccess or narrower policy. The code can look like:
AWS.config.update({ region: 'eu-central-1' });
const sqs = new AWS.SQS({ apiVersion: '2012-11-05' });
try {
const params = {
MessageBody: JSON.stringify(response),
QueueUrl: 'https://sqs.eu-central-1.amazonaws.com/92XXXXXXXX97/queue-image-scaled'
};
await sqs.sendMessage(params).promise();
} catch (err) {
// do something here
console.log(err);
}