简体   繁体   中英

AWS SQS subscribed to SNS topic high latency

I have several.Net 5.0 microservices with RabbitMQ as message broker. Right now I am switching to AWS SQS. Few services are listening the same message (this is done with Exchange in RabbitMQ). In AWS this could be implemented by subscribing SQS Queue to SNS topic. I created SNS fifo topic and SQS fifo queues, subscribed those queues to topic. When I publish message directly to queue everything works immediately, but when I publish message to SNS topic it takes more than 7 minutes to get message from queue subscribed to topic. Does anybody noticed such huge delay? Maybe latency? Btw, all the service are running on aws the same region. Any ideas? Will appreciate any advice!

thank you all for your comments and help. In my case lack of experience with sqs was the main problem. I found parameter in queue settings "Delivery delay" and set smaller value and now I receive messages immediately.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM