在PHP中使用SQS时确保FIFO

Does anyone know of an elegant way to ensure FIFO when it comes to polling down the messages from the queue. PHP is the language I am using. If anyone has any code they can share it would be great and thanks ahead of time

edit: This is now available.

https://aws.amazon.com/about-aws/whats-new/2016/11/amazon-sqs-introduces-fifo-queues-with-exactly-once-processing-and-lower-prices-for-standard-queues/


https://aws.amazon.com/sqs/faqs/

Q: Does Amazon SQS provide first-in-first-out (FIFO) access to messages?

No, Amazon SQS does not guarantee FIFO access to messages in Amazon SQS queues, mainly because of the distributed nature of the Amazon SQS. If you require specific message ordering, you should design your application to handle it.