Monday, April 18, 2011

Amazon Simple Notification Service Script - CodeProject

Amazon logoImage by wynlok via FlickrIntroduction to article

Amazon Simple Notification Service (SNS) is a web service that allows you to notify distributed applications by pushing a message to them.
Say you have an application that runs on many servers. In a traditional application the computers would continually poll a queue or database looking for a job to process. Many computers continually polling will reduce performance of the queue and result in higher usage fees. You can increase the time between polls to reduce load but this decreases the performance of your application.
One way to have your computers process a job immediately and eliminate the need to poll a queue is to use Amazon’s Simple Notification Service. First you set up a web server on each of the computers that run your application. Next, set up a SNS subscription in Amazon to send messages to your computers. Then create an application on your web servers to do something when they receive a SNS message. Finally, configure your application to call SNS when something needs to be done.


Amazon Simple Notification Service Script - CodeProject
Enhanced by Zemanta

No comments: