Search code examples
aws-lambdaamazon-sqs

SQS sendMessage latency variation?


I have a simple Java Lambda Request Handler that does nothing but write to SQS (don't ask). This is a single method whose only purpose is to call sendMessage.

Most of the time sendMessage returns in less than 30ms, all good. Every once in awhile sendMessage shoots to 300ms plus.

Nothing shows-up in the SQS monitoring console, any suggestions on how to figure this out?


Solution

  • According to AWS Support from the FAQ

    Q: What is the typical latency for Amazon SQS?

    Typical latencies for SendMessage, ReceiveMessage, and DeleteMessage API requests are in the tens or low hundreds of milliseconds.

    They also recommend SDK Latency Logging.