title: Tracking a message on multiple AWS SQS queues
body: <p>I have around 3 AWS Lambda functions taking the following form:</p>
  
  <ul>
  <li>Lambda function 1: Reads from an SQS queue and puts a Message on an SQS queue (the incoming and outgoing message formats are different)</li>
  <li>Lambda function 2: Reads the message from Lambda function 1, and puts a Message on an SQS queue (the incoming and outgoing message formats are different)</li>
  <li>Lambda function 3: Reads the message from Lambda function 3, and updates storage.</li>
  </ul>
  
  <p>There are 3 queues involved and the message format (structure) in each queue is different, however they have one <code>uniqueId</code> which are the same and can be used the relate one to each other.  So much question is, is there any way in SQS on or some other tool to track the messages, what I'm specifically looking at is stuff like:</p>
  
  <ul>
  <li>Time the message was entered into the queue</li>
  <li>Time the message was taken by the Lambda function for processing</li>
  </ul>
  
  <p>My problem is that the 3 Lambda functions individually perform within a couple of milliseconds, but the time taken for end to end execution is way too long, I suspect that the messages are taking too long in transit.</p>
  
  <p>I'm open for any other ideas on optimisation.</p>