1. 程式人生 > >Introducing the Amazon Simple Notification Service

Introducing the Amazon Simple Notification Service

Today I’d like to tell you about our newest service, the Amazon Simple Notification Service.

We want to make it even easier for developers to build highly functional and architecturally complex applications on AWS. It turns out that applications of this type can often benefit from a

publish/subscribe messaging paradigm. In such a system, publishers and receivers of messages are decoupled and unaware of each other’s existence. The receivers (also known as subscribers) express interest in certain topics. The senders (publishers) can send a message to a topic. The message will then be immediately delivered or pushed to all of the subscribers to the topic.

The Amazon Simple Notification Service (SNS) makes it easy for you to build an application in this way. You’ll need to know the following terms in order to understand how SNS works:

Topics are named groups of events or acess points, each identifying a specific subject, content, or event type. Each topic has a unique identifier (URI) that identifies the SNS endpoint for publishing and subscribing.

Owners create topics and control all access to the topic. The owner can define the permissions for all of the topics that they own.

Subscribers are clients (applications, end-users, servers, or other devices) that want to receive notifications on specific topics of interest to them.

Publishers send messages to topics. SNS matches the topic with the list of subscribers interested in the topic, and delivers the message to each and every one of them. Here’s how it all fits together:

The SNS API is, as the name should imply, clean and simple. Here’s what it takes to get started:

  1. Call the CreateTopic function to create a new topic. Topic names can be made up of upper and lower case letters, numbers, and hyphens and can be up to 256 characters long.
  2. Call the AddPermission function to establish the set of publishers and subscribers with access to the topic.
  3. Subscribers call the Subscribe function to express their interest in receiving messages on a particular topic. As part of their request each subscriber must specify a topic, a protocol (HTTP, HTTPS, Email, or Email-JSON), and an endpoint (a URL for HTTP or HTTPS, an email address for either flavor of Email). SNS is also integrated with other AWS services for example, you can have the notifications delivered to an SQS queue. A single subscriber can subscribe to the same topic more than once if desired.
  4. As part of the subscription process, SNS will deliver a confirmation message with an embedded token to the endpoint. The subscriber must confirm the subscription by clicking a link in an email or using the ConfirmSubscription function in order to initiate message delivery.
  5. Publishers call the Publish function to post messages to a topic which will immediately trigger delivery of the message to each of the topic’s subscribers.

Other useful SNS functions include ListTopics (enumerate the list of topics that a specific user can access), RemovePermissions, ListSubscriptions (list the caller’s subscriptions), and ListSubscriptionsByTopic (list all of the subscriptions to a topic).

During the beta period, each AWS account will be able to create up to 100 topics. We’ll be evaluating this administrative limit as the beta progresses, and we’ll do our best to meet requests for increases.

Pricing? Glad you asked! There is no charge for the first 100,000 SNS requests per month, the first 100,000 HTTP or HTTPS notifications and the first 1,000 email notifications. Additional information on pricing can be found on the SNS page.

As is often the case with new AWS services, we have a long and detailed road map for this service. Here are a few of the items on it:

  • AWS Management Console Support – We’re building a point-and-click web-based user interface to access and manage SNS.
  • Additional Transports – We expect to add additional delivery transport protocols in the future.

Get started now by reading the SNS documentation.

I’m looking forward to seeing some cool applications built around SNS! Workflow systems, mobile applications, news and information updates, and the like can all benefit from SNS. Here are some ideas to get you started:

  1. Monitoring Alert Notification System – Watch for failure events in a complex system and route information about them to appropriate people based on the type and complexity of the failure. The events could be at the system level (e.g. a process on an EC2 instance is consuming an excessive amount of memory or CPU time) or at the application level (e.g. an application was not able to communicate with an outside data provider).
  2. News Distribution – Watch a web site, a Twitter topic, search results, or an RSS feed for changes. Publish the changes to a series of topics (one per news topic) and allow subscribers to choose the topics that they find to be of interest to them.
  3. Control EC2 Instances – Subscribe a large array of EC2 instances to a single topic and publish messages to the topic to control the array. This could be system level, with messages used to tell each instance to update its installed software, report on free disk space. Or, it could be application level, with messages to start and stop application processes, change policies, or update reference data tables.

— Jeff;

相關推薦

Introducing the Amazon Simple Notification Service

Today I’d like to tell you about our newest service, the Amazon Simple Notification Service. We want to make it even easier for developers

Amazon Simple Notification Service (SNS)

In this two-part series, we show you how to build a data pipeline in support of a data lake. We use key AWS services such as Amazon Kinesis Data

Amazon Simple Notification Service (SNS) Features

Event-driven computing is a model in which subscriber services automatically perform work in response to events triggered by publisher services.

Amazon Simple Notification Service (SNS) SMS Pricing

With Amazon SNS, you can send SMS (text) messages to 200+ countries and for an expanded set of use-cases such as Multi-Factor Authenticatio

Amazon Simple Notification Service (SNS) Pricing

Amazon SNS has no upfront costs and you can pay as you go. You pay based on the number of notifications you publish, the number of notifications y

Amazon Simple Notification Service (SNS) Getting Started

In this tutorial, you will implement a fanout messaging scenario using Amazon Simple Notification Service (SNS) and Amazon Simple Queue Servic

Amazon Simple Notification Service(プッシュ方式のメッセージ送信)

Amazon Simple Notification Service (SNS) は、マイクロサービス、分散型システム、およびサーバーレスアプリケーションの分離を可能にする、耐久性に優れたセキュアな完全マネージド型 pub/sub メッセージングサービスです。Amazon SNS は、高ス

Amazon Simple Notification Service (SNS) FAQs

Q: What is SNS Mobile Push? SNS Mobile Push lets you use Simple Notification Service (SNS) to deliver push notifications to Apple, Googl

Amazon Simple Storage Service (S3)

Q:  How will I be charged and billed for my use of Amazon S3? There are no set-up fees or commitments to begin using the se

Amazon Simple Workflow Service

Migrating components from the datacenter to the cloud. Business critical operations are hosted in a private datacenter but need to be moved ent

Amazon Simple Queue Service (SQS) Pricing

For Data Transfer exceeding 500TB/Month please Contact Us Except as otherwise noted, our prices are exclusive of applicable taxes an

Amazon Simple Queue Service(メッセージキューサービス)

Amazon Simple Queue Service (SQS) は、完全マネージド型のメッセージキューイングサービスで、マイクロサービス、分散システム、およびサーバーレスアプリケーションの切り離しとスケーリングが可能です。SQS では、メッセージ指向ミドルウェアの管理や運用に関連する複

Amazon Simple Storage Service(S3)

Q:  Amazon S3의 사용료는 어떻게 과금 및 청구됩니까? 서비스를 시작하는 데 드는 설치 수수료나 확약금이 없습니다. 월말에 사용자의 신용 카드에서 월 사용액이 자동으로 결제됩니다. Amazon Web Service

Amazon Simple Workflow Service – 클라우드 워크플로 관리

구성 요소를 데이터 센터에서 클라우드로 마이그레이션. 비즈니스 크리티컬 작업이 개인 데이터 센터에서 호스팅되고 있지만 서비스 중단 없이 전체를 클라우드로 이동해야 합니다. Amazon SWF 기반 애플리케이션은 데이터 센터에서 실행되는 구성 요소를 포함한

Amazon Simple Queue Service(SQS) | AWS

500 TB/月を越えるデータ転送については、お問い合わせください。 別途記載がない限り、表示される料金には VAT、売上稅その他取引に対して適用される一切の稅金等および関稅は含まれません。日本の居住者であるお客様が AWS をご利用になった場合には、料金と併せて

New – Server-Side Encryption for Amazon Simple Queue Service (SQS)

As one of the most venerable members of the AWS family of services, Amazon Simple Queue Service (SQS) is an essential part of many applications. P

Amazon Simple Queue Service (SQS) FAQs

Q: When should I use Amazon SQS long polling, and when should I use Amazon SQS short polling? In almost all cases, Amazon SQS lon

Introducing the Self-Service Business Associate Addendum

Today, we made available a new feature in AWS Artifact (our auditing and compliance portal) that enables you to review, accept, and track

Amazon SimpleDB – Simple Database Service

Many developers use Amazon SimpleDB in conjunction with Amazon Simple Storage Service (Amazon S3). Amazon SimpleDB can be used to store pointer

Amazon SQS(Simple Queue Service) 簡單介紹

因此 edit statistic 數量 消息隊列 返回 tps 五個 系統 版權聲明:本文為博主原創文章,未經博主同意