Admiral-Piett / goaws

AWS (SQS/SNS) Clone for Development testing
MIT License
778 stars 145 forks source link

Added random latency to SQS receives. #198

Closed andykuszyk closed 4 years ago

andykuszyk commented 5 years ago

Latency is based on the inclusion of two environment variables (GOAWS_RANDOM_LATENCY_MIN and GOAWS_RANDOM_LATENCY_MAX), which, if set will prevent messages from being released from the queue until after a period of random, simulated latency has elapsed.

The purpose of this change is to aid in local testing against AWS when SQS latency is expected and needs to be developed against.

andykuszyk commented 4 years ago

@p4tin does this PR look ok now?