aws - sns sqs ses

49
AWS Services SNS | SQS | SES Jason Chen 2014/09/05 AWS 讀書會

Upload: jason-chen

Post on 16-Jul-2015

407 views

Category:

Technology


8 download

TRANSCRIPT

Page 1: AWS - SNS SQS SES

AWS ServicesSNS | SQS | SES

Jason Chen2014/09/05

AWS 讀書會

Page 2: AWS - SNS SQS SES

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.

Page 3: AWS - SNS SQS SES

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.

Page 4: AWS - SNS SQS SES
Page 5: AWS - SNS SQS SES
Page 6: AWS - SNS SQS SES

AWS SNS 導覽

Page 7: AWS - SNS SQS SES

AWS SNS 歸類: Mobile Services

Page 8: AWS - SNS SQS SES

發送端

Page 9: AWS - SNS SQS SES

建立 New App for Mobile Push

Page 10: AWS - SNS SQS SES
Page 11: AWS - SNS SQS SES

支援多種不同的 Push Notification Services

Page 12: AWS - SNS SQS SES

建立 New Topic

Page 13: AWS - SNS SQS SES

Topic Name 是拿來做 ARN

Page 14: AWS - SNS SQS SES

建立 Topic 的訂戶

Page 15: AWS - SNS SQS SES

支援多種 Protocol 訂閱

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

Page 16: AWS - SNS SQS SES

訂戶建立完成

1. 訂戶需要確認

2. 三天後確認失效

Page 17: AWS - SNS SQS SES

訂戶端

確認訂閱

Page 18: AWS - SNS SQS SES

收到訂閱 Email

Page 19: AWS - SNS SQS SES

確認訂閱

Page 20: AWS - SNS SQS SES

發送端

Page 21: AWS - SNS SQS SES
Page 22: AWS - SNS SQS SES

訂戶端

Page 23: AWS - SNS SQS SES
Page 24: AWS - SNS SQS SES

BUTSNS 有缺點

Page 25: AWS - SNS SQS SES

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.

Page 26: AWS - SNS SQS SES

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.

Page 27: AWS - SNS SQS SES

AWS Simple Quere Service(SQS)

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

Page 28: AWS - SNS SQS SES

AWS Simple Quere Service(SQS)

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

Page 29: AWS - SNS SQS SES

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.

Page 30: AWS - SNS SQS SES
Page 31: AWS - SNS SQS SES

How SQS Works

Page 32: AWS - SNS SQS SES

SQS 歸類為 App Services

Page 33: AWS - SNS SQS SES

建立 SQS

Page 34: AWS - SNS SQS SES

建立 SQS

Page 35: AWS - SNS SQS SES

Dead-letter queue

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

Page 36: AWS - SNS SQS SES

手機遊戲

Page 37: AWS - SNS SQS SES
Page 38: AWS - SNS SQS SES
Page 39: AWS - SNS SQS SES
Page 40: AWS - SNS SQS SES
Page 41: AWS - SNS SQS SES

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.

Page 42: AWS - SNS SQS SES

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.

Page 43: AWS - SNS SQS SES

SES 歸類為 App Services

Page 44: AWS - SNS SQS SES

部分 Region 才能使用 SES

Page 45: AWS - SNS SQS SES

使用 AWS 的 SMTP 來發送 Email

Page 46: AWS - SNS SQS SES

驗證要 host 的 Email 或 Domain

Page 47: AWS - SNS SQS SES

限制 SES 發信的設定

Page 48: AWS - SNS SQS SES
Page 49: AWS - SNS SQS SES

總結

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

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

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