How to prevent duplicate SQS Messages?

前端 未结 6 1637
时光取名叫无心
时光取名叫无心 2021-01-30 03:10

What is the best way to prevent duplicate messages in Amazon SQS? I have a SQS of domains waiting to be crawled. before I add a new domain to the SQS I can check with the saved

6条回答
  •  长情又很酷
    2021-01-30 03:37

    As you can't prevent SQS from sending the duplicated messages, you must implement this on your side. One simple way to do this is using Apache Camel's idempotent consumers, see http://camel.apache.org/idempotent-consumer.html

提交回复
热议问题