- Newest
- Most votes
- Most comments
Hi pascal
In the case of Amazon SQS queues, unfortunately, there's no built-in mechanism to directly identify the sender of a message.
Check for Existing Sender Information:
Message Attributes: Have a look at the messages themselves. If your applications already include a custom message attribute with sender identification (e.g., application name, user ID), you can retrieve it using the message.Attributes property in your receiving code (specific method names vary depending on the AWS SDK you're using).
Message metadata for Amazon SQS: This document explains how to use message attributes, which can potentially hold sender information: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html
Sending message attributes to an Amazon SQS queue: This document provides further details on including custom attributes with messages:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html
Relevant content
- asked 4 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 2 years ago
