BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Amazon Embraces Node.js

| by Abel Avram on Dec 05, 2012. Estimated reading time: less than one minute |

Amazon has released a developer preview SDK for deploying JavaScript applications running on Node.js. The development kit comes as a NPM module (ZIP) which is installed on Node.js then called in order to access a number of AWS services: EC2, S3, DynamoDB, and Simple Workflow.

Creating an EC2 service is done as following:

var AWS = require('aws-sdk');
var ec2 = new AWS.EC2({region: 'us-west-2'});

Service calls are asynchronous requiring a callback as shown in the next sample:

var request = ec2.client.describeInstances();

// register callbacks on request to retrieve response data
request.done(function(response) {
  console.log(response.data);
});

While a leader in cloud computing in many areas, Amazon AWS is among the latest to support Node.js. Windows Azure, Cloud Foundry, and Heroku have supported server-side JavaScript programming for some time. A Node wiki entry maintains a long list of managed and self-managed providers for Node.js.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT