aws - sns sqs ses

Post on 16-Jul-2015

407 Views

Category:

Technology

8 Downloads

Preview:

Click to see full reader

TRANSCRIPT

AWS ServicesSNS | SQS | SES

Jason Chen2014/09/05

AWS 讀書會

AWS Simple Notification Service(SNS)

Amazon SNS is a fast, flexible, fully managed push messaging service. Amazon SNS makes it simple and cost-effective to push notifications to Apple, Google, Fire OS, and Windows devices, as well as Android devices in China with Baidu Cloud Push.

AWS Simple Notification Service(SNS)

Amazon SNS is a fast, flexible, fully managed push messaging service. Amazon SNS makes it simple and cost-effective to push notifications to Apple, Google, Fire OS, and Windows devices, as well as Android devices in China with Baidu Cloud Push.

AWS SNS 導覽

AWS SNS 歸類: Mobile Services

發送端

建立 New App for Mobile Push

支援多種不同的 Push Notification Services

建立 New Topic

Topic Name 是拿來做 ARN

建立 Topic 的訂戶

支援多種 Protocol 訂閱

ex: http/s、email、sqs、 json、SMS

訂戶建立完成

1. 訂戶需要確認

2. 三天後確認失效

訂戶端

確認訂閱

收到訂閱 Email

確認訂閱

發送端

訂戶端

BUTSNS 有缺點

AWS SNS

Notify in near-real-time to a subscriber that a message has been published. However, SNS can only guarantee a single delivery to each subscriber of a given topic. This means that if there was a bug or a problem processing the message and there was no specific code to save it somewhere, then the message lost.

How to makr it more reliable

< Fanout design pattern >

SQS + SNS to send identical copies of a message to multiple queues in parallel for simultaneous processing.

AWS Simple Quere Service(SQS)

Amazon Simple Queue Service (SQS) is a fast, reliable, scalable & affordable message queuing service.

AWS Simple Quere Service(SQS)

Amazon Simple Queue Service (SQS) is a fast, reliable, scalable & affordable message queuing service.

AWS SQS

Using SQS is that it requires polling which introduces a certain delay between the time a message is published and until it is processed. That delay can be small, a couple of seconds, but can easily be up to 30 seconds and more.

How SQS Works

SQS 歸類為 App Services

建立 SQS

建立 SQS

Dead-letter queue

Dead-letter queue所有傳送失敗的訊息都會丟到這裡。

手機遊戲

AWS Simple Email Service(SES)

Amazon Simple Email Service (Amazon SES) is a cost-effective outbound-only email-sending service built on the reliable and scalable infrastructure that Amazon.com has developed to serve its own customer base.

AWS Simple Email Service(SES)

Amazon Simple Email Service (Amazon SES) is a cost-effective outbound-only email-sending service built on the reliable and scalable infrastructure that Amazon.com has developed to serve its own customer base.

SES 歸類為 App Services

部分 Region 才能使用 SES

使用 AWS 的 SMTP 來發送 Email

驗證要 host 的 Email 或 Domain

限制 SES 發信的設定

總結

- 都是 Service - SNS 提供即時性的訊息、訂閱系統

- SQS 以 Polling 方式收發訊息 、接受可 delay 的訊息

- SES 結合 SNS/SQS 以 E-mail 為 Protocol

top related