Why do SqS messages sometimes remain in-flight on queue

前端 未结 2 1757
孤街浪徒
孤街浪徒 2021-01-31 07:24

I\'m using Amazon SQS queues in a very simple way. Usually, messages are written and immediately visible and read. Occasionally, a message is written, and remains In-Flight(Not

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 07:54

    It may happen when you send or lock a message and within some seconds you try to get the fresh list of messages. Amazon SQS stores the data into multiple servers and in multiple data centers http://aws.amazon.com/sqs/faqs/#How_reliably_is_my_data_stored_in_Amazon_SQS.

    To get rid of these issues you need to wait more so that queue would have more time to give appropriate results.

提交回复
热议问题