Skip to content

Is there any way to identify who is sending messages to the Queue?

0

Hi Team,

Is there any way to identify who is sending and receiving the messages to the Queue?

Thanks,

asked 2 years ago784 views
1 Answer
1

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

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.