672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 12 Messages: 12 Messages: 12 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Amazon Simple Queue Service announced

Posted by: Joseph Ottinger on July 17, 2006 DIGG
Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable hosted queue for storing messages as they travel between computers. By using Amazon SQS, developers can move data between distributed application components performing different tasks, without losing messages or requiring each component to be always available.

The following operations are provided:
  • CreateQueue: Create queues for your own use, or to share with others.
  • ListQueues: List your existing queues.
  • DeleteQueue: Delete one of your queues.
  • SendMessage: Add any data entries to a specified queue.
  • ReceiveMessage: Return one or more messages from a specified queue, which are returned in roughly the same order it was added to the queue.
  • DeleteMessage: Remove a message from a specified queue.
  • PeekMessage: Return a specific entry from the queue without locking it.
  • SetVisibilityTimeout: Control the amount of time after a message has been read that is locked from being read again.
  • AddGrant: Allow other users to send messages to or receive messages from your queue.
The pricing is simple: $0.10 per 1,000 messages sent ($0.0001 per message sent), and $0.20 per GB of data transferred.

The code looks quite straightforward. From the Enqueue sample, here's the actual sending code (after some setup that includes authentication data):
// Authenticating the Request
SignRequestHandlerHMAC.setWSSecurityInfo(AWSAccessKeyId, SecretAccessKey);
// Create a QueueService object, a Queue
QueueService service = getQueueService( url );

// Create the message queue object
MessageQueue msgQueue = getMessageQueue( service, queueName );

String msgId = msgQueue.sendMessage( message );
What do you think of the product and its implementation?

Threaded replies

·  Amazon Simple Queue Service announced by Joseph Ottinger on Mon Jul 17 08:30:04 EDT 2006
  ·  Very cool by Mike Perham on Mon Jul 17 09:53:38 EDT 2006
    ·  Re: Very cool by bob farmer on Mon Jul 17 20:59:02 EDT 2006
  ·  Confused by tom tarb on Mon Jul 17 10:30:18 EDT 2006
    ·  Re: Confused by Mike Perham on Mon Jul 17 12:40:04 EDT 2006
    ·  Re: Confused by Will Hartung on Mon Jul 17 15:07:25 EDT 2006
  ·  Great by urddd urddd on Mon Jul 17 10:35:07 EDT 2006
  ·  Re: Amazon Simple Queue Service announced by Johan Macedo on Mon Jul 17 13:00:23 EDT 2006
    ·  Re: Amazon Simple Queue Service announced by Dushyanth Inguva on Wed Jul 19 08:56:43 EDT 2006
  ·  Re: Amazon Simple Queue Service announced by Tsozum Tsozum on Tue Jul 18 13:43:55 EDT 2006
    ·  Re: Amazon Simple Queue Service announced by Tatu Saloranta on Tue Jul 18 15:43:24 EDT 2006
  ·  Can we use XML here? by Bon Bon on Wed Jul 19 01:03:42 EDT 2006
    ·  Re: Can we use XML here? by Mike Perham on Wed Jul 19 13:29:34 EDT 2006
  Message #213729 Post reply Post reply Post reply Go to top Go to top Go to top

Very cool

Posted by: Mike Perham on July 17, 2006 in response to Message #213723
I applaud them. This is another long-term bet on their part to provide basic infrastructure for internet-based distributed applications. You'd have to send a LOT of messages to get anywhere near the cost of a WebSphere MQ license! :-)

  Message #213731 Post reply Post reply Post reply Go to top Go to top Go to top

Confused

Posted by: tom tarb on July 17, 2006 in response to Message #213723
What would prompt any money making real-world business to use this? This may be attractive to freelance developers trying to build the next bittorrent/search-engine, but it would be tough to make money from.

Bad from a shareholder perspective.

  Message #213732 Post reply Post reply Post reply Go to top Go to top Go to top

Great

Posted by: urddd urddd on July 17, 2006 in response to Message #213723
I alwady use their S3 storage service and it works great and the price is good.

  Message #213737 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Confused

Posted by: Mike Perham on July 17, 2006 in response to Message #213731
It's a very lightweight way to set up reliable messaging between two different businesses. I can see the OSS frameworks like Django/Rails using this as one possible lightweight messaging impl.

  Message #213738 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Amazon Simple Queue Service announced

Posted by: Johan Macedo on July 17, 2006 in response to Message #213723
I guess developers would have to build their own transaction controls on top of this API?

thanks
Johan

  Message #213746 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Confused

Posted by: Will Hartung on July 17, 2006 in response to Message #213731
Simple, it doesn't cost them much if anything to provide the service.

Amazon is basically exposing the services it already uses in house out to the public. It already has a customer service arm set up to handle its file storage service, as well as to support developers who want to interact with Amazons store APIs.

Adding this ability costs them essentially nothing.

The benefit of it is that it makes ad hoc integration easy from disparate sources. Now you can use a queuing service that scales and is trivial to set up to integrate the two PHP apps you have running at GoDaddy (or whatever $5 host you're using).

Now you can make micropayments for infrastructure rather than hosting and maintaining all of it your self.

  Message #213761 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Very cool

Posted by: bob farmer on July 17, 2006 in response to Message #213729
This service is available since a year or more. Have there been any significant improvements since it was first announced?

  Message #213819 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Amazon Simple Queue Service announced

Posted by: Tsozum Tsozum on July 18, 2006 in response to Message #213723
I worry about privacy concerns. Now amazon can sniff the data and wonder how they might use to futher their own agenda.

  Message #213827 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Amazon Simple Queue Service announced

Posted by: Tatu Saloranta on July 18, 2006 in response to Message #213819
I worry about privacy concerns. Now amazon can sniff the data and wonder how they might use to futher their own agenda.


Ever heard of encryption? Of course you should worry about confidentiality when using external services... but it should go without saying that it's not very different from worrying about your ISPs sniffing the traffic.

  Message #213848 Post reply Post reply Post reply Go to top Go to top Go to top

Can we use XML here?

Posted by: Bon Bon on July 19, 2006 in response to Message #213723
Why oh why can't you write the screen of code necessary to do this with a database table? what's the point of this acronym mess?
help me understand how you "architects" think, I don't think you people do.

  Message #213864 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Amazon Simple Queue Service announced

Posted by: Dushyanth Inguva on July 19, 2006 in response to Message #213738
I guess developers would have to build their own transaction controls on top of this API?

thanks
Johan


Very well asked. I guess thats why it is named "Simple Queue Service" and hey, how hard can implementing transactions be ? ;-)

  Message #213884 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Can we use XML here?

Posted by: Mike Perham on July 19, 2006 in response to Message #213848
What if you don't have a database in your system? Maybe I want to hook up several Swing rich clients on separate continents via a queue. This service has the potential to unlock new types of low-cost deployments.

You might consider spending less time insulting others and more time thinking.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 2

Reza Rahman continues to explore the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (January 21, Article)

Ted Neward Q&A: What you must know about JavaScript, Scala and more

Ted Neward is an independent consultant specializing in high-scale enterprise systems, and an authority in Java and .NET technologies. He is the author and co-author of several books, including Effective Enterprise Java. At TheServerSide Java Symposium in March, he will be presenting sessions on pragmatic architecture, ECMAScript and Scala. (January 15, Article)

Developers split on open sourcing Java

Now that Oracle is absorbing Sun Microsystems, there mixed views on what should come of the Java Community Process (JCP). While some say Oracle should become the new steward of Java and keep the JCP much as it was, others argue that it may be time to open-source this widespread language. (November 24, Article)

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map