Fall in Love with NodeJS inWindows AzureJesus RodriguezTellago, Inc, Tellago Studios
NodeJS Time!!!
About Me…• Hackerpreneur• Co-Founder Tellago, Tellago Studios, Inc.• Microsoft Architect Advisor• Microsoft MVP• Oracle AC...
Agenda• Quick intro to NodeJS• NodeJS and Windows Azure
NodeJS?
How Simple is Simple?
Ok, What is NodeJS Again?
NodeJS at a Glance
Some History
Node is…
Node.js on Windows
IIS Node
IIS Node• <configuration>• <system.webServer>• <handlers>• <add name="iisnode"• path="app.js"• verb="*"• modules="iisnode"...
NodeJS in Windows Azure• Web Role–Uses IISNode• Worker Role–Runs node.exe as role entry point• PowerShell Cmdlets• Windows...
Node Hosting Options
HDInsightMy First NodeJS App inWindows Azure
We can use NodeJS to ManageWindows Azure
HDInsightNodeJS Command LineTools
Of Course! You can leverageexisting NodeJS modules in yourWindows Azure applications
HDInsightUsing Express and Socket.ioin Windows Azure
You can natively interact withWindows Azure Services
Blob Storage Examplesvar azure = require(azure);var blobClient = azure.createBlobService();// Create Blob from Textvar tex...
Table Storage Examplesvar azure = require(azure);var tableClient = azure.createTableService();// Insert Entityvar item = n...
Storage Queue Examplevar azure = require(azure);var queueClient = azure.createQueueService();// Enqueue a MessagequeueClie...
HDInsightNodeJS and the WindowsAzure Service Bus
Windows Azure Services arealready using NodeJS
HDInsightNodeJS Scripts in WindowsAzure Mobile Services
HDInsight Service
HDInsightUsing NodeJS with HDIsightService
Summary• NodeJS is one the most popular modernprogramming environments• Windows Azure offers first class support forNodeJS...
Thanksjesus.rodriguez@tellago.comhttp://www.tellagostudios.comhttp://jrodthoughts.comhttp://twitter.com/#!/jrodthoughtshtt...
NodeJS in Windows Azure
NodeJS in Windows Azure
NodeJS in Windows Azure
NodeJS in Windows Azure
NodeJS in Windows Azure
NodeJS in Windows Azure
Upcoming SlideShare
Loading in...5
×

NodeJS in Windows Azure

916

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
916
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • See: http://tomasz.janczuk.org/2011/08/hosting-nodejs-applications-in-iis-on.html
  • IISNode – load balances across the Node.exe instances - Auto-restarts when app.js changes - captures console output and logs it to disk - lets you host traditional ASP.NET code in the same IIS app (it’s just another handler)
  • Transcript of "NodeJS in Windows Azure"

    1. 1. Fall in Love with NodeJS inWindows AzureJesus RodriguezTellago, Inc, Tellago Studios
    2. 2. NodeJS Time!!!
    3. 3. About Me…• Hackerpreneur• Co-Founder Tellago, Tellago Studios, Inc.• Microsoft Architect Advisor• Microsoft MVP• Oracle ACE• Speaker, Author• http://weblogs.asp.net/gsusx• http://jrodthoughts.com• http://moesion.com
    4. 4. Agenda• Quick intro to NodeJS• NodeJS and Windows Azure
    5. 5. NodeJS?
    6. 6. How Simple is Simple?
    7. 7. Ok, What is NodeJS Again?
    8. 8. NodeJS at a Glance
    9. 9. Some History
    10. 10. Node is…
    11. 11. Node.js on Windows
    12. 12. IIS Node
    13. 13. IIS Node• <configuration>• <system.webServer>• <handlers>• <add name="iisnode"• path="app.js"• verb="*"• modules="iisnode" />• </handlers>• </system.webServer>• </configuration>
    14. 14. NodeJS in Windows Azure• Web Role–Uses IISNode• Worker Role–Runs node.exe as role entry point• PowerShell Cmdlets• Windows Azure SDK for node.js
    15. 15. Node Hosting Options
    16. 16. HDInsightMy First NodeJS App inWindows Azure
    17. 17. We can use NodeJS to ManageWindows Azure
    18. 18. HDInsightNodeJS Command LineTools
    19. 19. Of Course! You can leverageexisting NodeJS modules in yourWindows Azure applications
    20. 20. HDInsightUsing Express and Socket.ioin Windows Azure
    21. 21. You can natively interact withWindows Azure Services
    22. 22. Blob Storage Examplesvar azure = require(azure);var blobClient = azure.createBlobService();// Create Blob from Textvar text = the text of my blob;blobClient.createBlockBlobFromText(mycontainer, myblob, text,function (error, blockBlob, response) {// Blob created});// Get Blob TextblobClient.getBlobToText(mycontainer, myblob,function (error, text, blockBlob, response) {// Blob text retrieved});// Delete BlobblobClient.deleteBlob(mycontainer, myblob,function (error, isSuccessful, response) {// Container deleted});
    23. 23. Table Storage Examplesvar azure = require(azure);var tableClient = azure.createTableService();// Insert Entityvar item = new MyEntity();item.PartitionKey = part1;item.RowKey = uuid();tableClient.insertEntity(mytable, item,function (error, entity, response) {// Entity saved});// Query EntitytableClient.queryEntity(mytable, item.PartitionKey, item.PartitionKey,function (error, successful, response) {// Do something});// Delete EntitytableClient.deleteEntity(mytable, item,function (error, entity, response) {// Entity deleted});
    24. 24. Storage Queue Examplevar azure = require(azure);var queueClient = azure.createQueueService();// Enqueue a MessagequeueClient.createMessage(myqueue, my message text,function (error, queueMessageResult, response) {// Do something });// Get MessagesqueueClient.getMessages(myqueue,function (error, queueMessageResults, response) {// Do Something});
    25. 25. HDInsightNodeJS and the WindowsAzure Service Bus
    26. 26. Windows Azure Services arealready using NodeJS
    27. 27. HDInsightNodeJS Scripts in WindowsAzure Mobile Services
    28. 28. HDInsight Service
    29. 29. HDInsightUsing NodeJS with HDIsightService
    30. 30. Summary• NodeJS is one the most popular modernprogramming environments• Windows Azure offers first class support forNodeJS applications• The azure module enables NodeJS integrationwith various Windows Azure capabilities• Existing Windows Azure services are alreadyusing NodeJS
    31. 31. Thanksjesus.rodriguez@tellago.comhttp://www.tellagostudios.comhttp://jrodthoughts.comhttp://twitter.com/#!/jrodthoughtshttp://weblogs.asp.net/gsusx

    ×