E-commerce For Everyone - Amazon Storefront Solutions

Archive for August, 2008

Amazon SimpleDB Releases QueryWithAttributes

Amazon SimpleDB just released an update that includes a new feature called QueryWithAttributes. With this update, developers will be now able to retrieve all the information associated with items returned as a response to a particular query. The feature provides additional flexibility because it enables you to retrieve anywhere between one and all attributes for each item. This highly requested feature simplifies application development process for all clients of Amazon SimpleDB.  Instead of issuing a Query request followed by a series of GetAttributes requests, application designers can now use a single API call to retrieve all information about items stored in Amazon SimpleDB.

I am very excited about this new feature because it simplifies my application code. This is useful for developers who are not used to parallel programming or who utilize programming languages that do not support parallel programming.

The updated API documentation is here. I also highly recommend reading the Query 101, Query 102, and the best practices articles from our resource center. Amazon SimpleDB is still in limited beta. However if you sign up for the service at aws.amazon.com/SimpleDB you’ll be the first to know when additional applications are accepted.

If you don’t list specific attributes in your query, then all attributes are returned—which is the default behavior of this new API method.

There’s a FAQ below; however I believe that examples always help developers understand what the changes mean in terms of writing code:

Current Query Syntax:
Domain = ZipCode
[‘State’ = ‘WI’]

Calling the Query method returns

 <QueryResult>
  <ItemName>24103</ItemName>
  <ItemName>23724</ItemName>
  Etc…
</QueryResult>

New QueryWithAttributes Syntax
The new query is identical in every way except that the API has a new method. Called—of course—QueryWithAttributes:

Domain = ZipCode
[‘State’ = ‘WI’]

Calling the QueryWithAttributes method returns

<QueryWithAttributesResult>
  <Item>
    <Name>24103</Name>
    <Attribute><Name>state</Name><Value>WI</Value></Attribute>
    <Attribute><Name>zipcode</Name><Value>54936</Value></Attribute>
    <Attribute><Name>city</Name><Value>FOND DU LAC</Value></Attribute>
    <Attribute><Name>county</Name><Value>FOND DU LAC</Value></Attribute>
  </Item> 

<Item>
    <Name>23724</Name>
    <Attribute><Name>state</Name><Value>WI</Value></Attribute>
                  <Attribute><Name>zipcode</Name><Value>53703</Value></Attribute>
                  <Attribute><Name>city</Name><Value>MADISON</Value></Attribute>
                  <Attribute><Name>county</Name><Value>DANE</Value></Attribute>
  </Item>
Etc…
</QueryWithAttributesResult>

FAQ
Q: Can I use the same query language?
Yes, the query language is exactly the same as for the regular Query API call.

Q: Will I get back the same set of items?
Yes, the overall set of items that will match a given query expression is exactly the same as that for the regular Query API call.

Q: How many attributes can I retrieve for each item?
You can retrieve anywhere between one and all attributes for each item.  The default behavior is to return all attributes, but you can specify a list of specific attributes to return.

Q: Will my result set be paginated?
Yes, Amazon SimpleDB paginates the result set if it exceeds specified maximum number of items or a total overall response size of 1 MB.

Q: How many items can I retrieve in one page of results?
You can indicate the maximum number of items to return per page that can be between 1 and 250 (default 100).  Amazon SimpleDB will attempt to return as many items as possible per page without exceeding the maximum byte size limit (1 MB) and the maximum number of items specified.

Q: What happens to page size if my attributes are very large?
Your page size will likely be smaller than the maximum number of items specified, since the overall size of the response object will approach the limit of 1 MB.

Q: Will I ever get one item split across multiple pages of results?
No, an item will never get split across multiple pages of results.  All specified attributes for a given item will be returned within the same page of results.

Q: Does the query timeout apply to my queries?
Yes, the same query timeout applies to long running queries.

Q: How much does each call cost?
The cost of each call is proportional to the amount of system resources that it consumes.  You can monitor the cost through the BoxUsage parameter, which is returned with every response.

Q. Is the Amazon SimpleDB Beta open to all comers now?
Amazon SimpleDB is still in limited beta. However if you sign up for the service at http://aws.amazon.com/SimpleDB you’ll be the first to know when additional applications are accepted.

-- Mike

Shadows (DVD) newly tagged “dvd”

Shadows
Shadows (DVD)
By Lon Chaney; Harrison Ford

Buy new: $9.98
$9.98

67 used and new from $0.01
Customer Rating:

First tagged "dvd" by Annie Van Auken
Customer tags: , , , , , ,

Philips DVP5960 Hi-Def 1080I Up-Converting Multi-Region DVD Player with HDMI, DivX Ultra, USB Direct newly tagged “dvd”

Philips DVP5960 Hi-Def 1080I Up-Converting Multi-Region DVD Player with HDMI, DivX Ultra, USB Direct

Philips DVP5960 Hi-Def 1080I Up-Converting Multi-Region DVD Player with HDMI, DivX Ultra, USB Direct
By Philips

Buy new: $96.99
2 used and new from $38.00
Customer Rating:

First tagged “dvd” by Pete
Customer tags: (3), (3), (2), , , , , ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • YahooMyWeb
  • Reddit
  • Slashdot
  • Furl
  • TailRank
  • Netscape
  • blinkbits
  • NewsVine
  • blogmarks
  • Taggly

Aria the Animation Season 1 (DVD) newly tagged “dvd”

Aria the Animation Season 1

Aria the Animation Season 1 (DVD)
By Aria

Buy new: $49.99
$36.99


First tagged “dvd” by J. Smith “Warlock6669″
Customer tags: , , ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • YahooMyWeb
  • Reddit
  • Slashdot
  • Furl
  • TailRank
  • Netscape
  • blinkbits
  • NewsVine
  • blogmarks
  • Taggly

The Highwaymen - On the Road Again (DVD) newly tagged “download”

The Highwaymen - On the Road Again

The Highwaymen - On the Road Again (DVD)
By Johnny Cash

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • YahooMyWeb
  • Reddit
  • Slashdot
  • Furl
  • TailRank
  • Netscape
  • blinkbits
  • NewsVine
  • blogmarks
  • Taggly

The Highwaymen - On the Road Again (DVD) newly tagged “download”

The Highwaymen - On the Road Again
The Highwaymen - On the Road Again (DVD)
By Johnny Cash

Buy new: $19.99
$14.99

45 used and new from $10.75
Customer Rating:

First tagged "download" by Mary H. "Mary"
Customer tags: (6), (6), (4), (4), (4), (3), (3), , , , ,

Amazon EBS (Elastic Block Store) - Bring Us Your Data

A few months ago I talked about our plans to offer a persistent storage feature for Amazon EC2. At that time I indicated that the service was in a limited alpha release with a small number of customers. Since then the alpha testers have been putting the service to good use and have provided us with a lot of very helpful feedback.

As of today, the Amazon Elastic Block Store (EBS) is now open and available to all EC2 users.

EBS gives you persistent, high-performance, high-availability block-level storage which you can attach to a running instance of EC2. You can format it and mount it as a file system, or you can access the raw storage directly. You can, of course, host a database on an EBS volume. In fact, Eric Hammond has already written an article, Running MySQL on Amazon EC2 with Elastic Block Store.

EBS volumes can range in size from 1 GB to 1 TB. You can mount many of them on the same instance, and even stripe (aka RAID 0) your data across them to increase performance.

The volumes can be attached to any single instance within a single EC2 availability zone. They are also automatically replicated within the zone.

During the beta you can create up to 20 EBS volumes consuming a maximum of 20 TB of space. Before too long we'll have a form to allow you to request more.

You can snapshot a volume to Amazon S3 with ease, and then, if needed, create new volumes (of the same or different sizes) using the snapshot as a base. Of course, if you create a new volume with a size that doesn't match the size of the volume where you took snapshot, you will have to resize the new file system. When you create a new volume based on an S3 snapshot, the data is loaded lazily; there's no need to wait for the snapshot to load.

EBS usage is charged based on storage and on I/O requests. Storage costs $0.10 per GB per month and I/O requests cost $0.10 per million. Snapshot storage is charged at Amazon S3 rates. The AWS Simple Monthly Calculator has been updated to reflect the new features so that you can estimate your costs with ease:

Aws_calc_ebs_3

All of the EBS functionality can be accessed through the EC2 APIs, through the EC2 Command Line tools, through ElasticFox, and via a number of third-party tools and libraries.

The popular ElasticFox extension for Firefox has been updated with full support for EBS. You can see all of your volumes and your snapshots on a new tab:

Elasticfox_ebs

You can create volumes and attach them to running instances using simple dialog boxes:

Elasticfox_create_vol

Elasticfox_attach_vol

You can create a snapshot with a single click:

Elasticfox_snapshot

And then create a new volume from the snapshot just as easily:

Elasticfox_create_from_snapshot

Third party tool and library support is already starting to appear. In fact, I've created a separate post, Amazon EBS - Tool and Library Support, which I will be updating a couple of times in the next day or so as announcements are made.

Also, Amazon CTO Werner Vogels has written a really good post which includes some great insights into the architectural and philosophical considerations behind our line of storage services.

And there you go!

-- Jeff;

Amazon EBS - Tool and Library Support

This is a companion post to my earlier post -- Amazon EBS (Elastic Block Store) - Bring Us Your Data. In the other post you can read about the features of EBS. This post goes into more detail on the tool and library support that has been built by our community of third-party developers.

Here are some tools:

And some libraries (some of the third parties will finalize their support in a day or two):

-- Jeff;

PS -  I'll be updating this post a couple of times in the wake of the EBS launch so come back again soon.

Vertica / Sonian / Amazon Webinar

Sonian_vertica_amazonEarlier this year I talked about the unique and powerful AWS-powered solutions offered by Vertica and Sonian.

Tomorrow (August 21st), I will be taking part in a unique, three-party webinar. In the webinar you’ll get to hear from me, from Vertica Field Engineering Director Omer Trajman, and from Sonian CTO Greg Arnette. The webinar will start at 8 AM PST.

In the webinar you will learn how cloud computing is changing the economics of data warehousing and large-scale analytic database applications. You’ll hear how Sonian has built and launched a cloud-based digital content archiving system on top of Amazon EC2 and the Vertica Analytical Database for the Cloud.

The webinar is free but you do need to register ahead of time. Hope to see you there.

– Jeff;

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • YahooMyWeb
  • Reddit
  • Slashdot
  • Furl
  • TailRank
  • Netscape
  • blinkbits
  • NewsVine
  • blogmarks
  • Taggly

Sands of Oblivion (Video Download) newly tagged “download”

Sands of Oblivion
Sands of Oblivion (Video Download)
By Morena Baccarin

Buy new: $2.99
Customer Rating:

First tagged "download" by Elizabeth Randall
Customer tags: , ,


E-commerce For Everyone - Amazon Storefront Solutions