過好每一天
Coding Life | AWS SQS,AWS SNS, AWS MQ,Kinesis Streams 比較
AWS 有許多非常相似的服務,對於剛接觸AWS的新手理解起來並不容易,本篇以區分SQS, SNS, AWS MQ 和 Kinesis Streams這幾個服務為目的,做一個較為粗淺的比較。
SQS(Simple Queue Service)
- 由接收端去poll message
- 一個queue只能對應到一個consumer
- consumer 回應queue完成處理程序後(ack),才會刪掉message
- 不需配置吞吐量(throughput)
- 可以把發送端及接送端解偶
更完整的SQS筆記請看這裡
SNS(Simple Notification Service)
- 發送即時性的message給所有訂閱者
- 不保存已發送的message
- 遵守pub-sub模式
- 不需配置吞吐量
AWS MQ(AWS managed message broker service)
- 主要用在遷移到AWS
- 提供API, 不用重寫新程式碼
Amazon Kinesis Data Streams
- 由接收端去poll資料
- 一個queue可以對應到多個consumer(message可以對應多個應用程式並行處理)
- 需配置吞吐量
[Reference]
https://aws.amazon.com/sqs/faqs/
https://docs.aws.amazon.com/zh_tw/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html
喜欢我的文章吗?
别忘了给点支持与赞赏,让我知道创作的路上有你陪伴。
发布评论…