snsの活用事例
DESCRIPTION
第2回 AWS User Group - Japan 勉強会でのライトニングトークです。 ※ここで言う「SNS」とは、Amazon SNS(Simple Notification Service)の事です。TRANSCRIPT
第2回 AWS User Group - Japan 勉強会ライトニングトーク
SNSの活⽤用事例欧⽂文印刷株式会社 ⽥田名辺健⼈人
2010.06.14
Simple Notification Service
Notification?
依頼するひと
Amazon SNS
通知する⼈人 通知される⼈人々
Message
Message
Message
処理するひと処理するひと処理するひと
メッセージの通知先
•Email / Email-JSON•HTTP / HTTPS•SQS (ktkr!)
依頼するひと
Amazon SNS
通知する 通知される 々
Message
Message
Message
処理するひと処理するひと処理するひと
何それ?うまいの?
•⼀一⻫斉通知は⼤大変•分散処理•粗結合
利⽤用イメージ
•ワークフローシステム例:受注システム
受注
Order !
受注通知 AmazonSNS
受注情報
お客さん
担当者
なんか偉い
提携業者とか
在庫確認
注 ありがとう!
HTTP(S)
AmazonSQS
商品情報
確認処理AmazonSNS
商品情報
在庫状況
発送手配
在庫管理
SNSを使う理由 1(たぶん)はやい!• APIがシンプル • Rubyライブラリはまだ?
• 正直シンプルすぎる部分が!• あとでブログで⾔言及しとく
http://www.flickr.com/photos/alexeggert/236873823/
SNSを使う理由 2やすい!• $0.06 / 10万リクエスト• 10万通のメールでたった$2.00 !
• SQSへの通知はタダ!
http://www.flickr.com/photos/mujitra/4266039832
SNSを使う理由 3(たぶん)うまい!• 信頼性が⾼高い(と思う)• 通知先の種類も増えるらしい
http://www.flickr.com/photos/adactio/30956824/
今後に期待
出たばっかりだし!
実際の例
そこから2週間、夜中にゴソゴソと、RubyのSNSクライアント実装するところからやりました。(使わないメソッドは実装してないなど)
表⽰示したいタイムゾーンを設定出来る
AmazonSNSを利⽤用
メール通知設定
AmazonSNS
Amazon Web Services » Service Health Dashboard
Current Status - Jun 10, 2010
Amazon Web Services publishes our most up-to-the-minute information on service availability in the table below. Check back here any time to getcurrent status information, or subscribe to an RSS feed to be notified of interruptions to each individual service. If you are experiencing a real-time,operational issue with one of our services that is not described below, please inform us by clicking on the "Report an Issue" link to submit a serviceissue report.
Service is operating normally Performance issues Service disruption Informational message
[RESOLVED] Amazon S3 Console
Current Status Details RSS
Amazon CloudFront Service is operating normally.
Amazon Elastic Compute Cloud (N. California) Service is operating normally.
Amazon Elastic Compute Cloud (N. Virginia) Service is operating normally.
Amazon Elastic MapReduce (N. California) Service is operating normally.
Amazon Elastic MapReduce (N. Virginia) Service is operating normally.
Amazon Flexible Payments Service Service is operating normally.
Amazon Mechanical Turk (Requester) Service is operating normally.
Amazon Mechanical Turk (Worker) Service is operating normally.
Amazon Relational Database Service (N. California) Service is operating normally.
Amazon Relational Database Service (N. Virginia) Service is operating normally.
Amazon Simple Notification Service (N. California) Service is operating normally.
Amazon Simple Notification Service (N. Virginia) Service is operating normally.
Amazon Simple Queue Service (N. California) Service is operating normally.
Amazon Simple Queue Service (N. Virginia) Service is operating normally.
Amazon Simple Storage Service (N. California) Service is operating normally.
Amazon Simple Storage Service (US Standard) Service is operating normally.
Amazon SimpleDB (N. California) Service is operating normally.
Amazon SimpleDB (N. Virginia) Service is operating normally.
Amazon Virtual Private Cloud (N. Virginia) Service is operating normally.
AWS Management Console more
Report an IssueNorth America Europe Asia Pacific
1
何分かおきにTaskを起動
2 RSS取得 3 変化があったら、SNSにPublish
4 ドキドキするメールが⾶飛ぶ
まとめ
•Amazon SNSは、出たばかりのサービスで、使い勝⼿手が「あと⼀一息」なところがあります。みんなでフィードバックして使いよいものにしよう!
ご清聴ありがとうございました続きは blog にて
@dateofrock