Sofia Event Center 14-15 May 2014 Boris Simandoff, Product Chaos Group Mihail Mateev, Senior Technical Evangelist, Infragistics Inc. Node.js.

Slides:



Advertisements
Similar presentations
Microsoft Confidential. An incubation effort to: Support client -> server communication in native code with a modern C++ API design Support writing Azure-based.
Advertisements

Attie Naude 14 May 2013 Windows Azure Mobile Services.
Building Connected iOS Apps Chris Risner Technical Evangelist Microsoft
Windows Azure Mobile Services. Data Push Notifications Auth Scheduler Diagnostics & Scale Agenda.
Page 1 Ricardo Villalobos Windows Azure Architect Evangelist Microsoft Corporation Designing, Building, and Deploying Windows Azure applications.
PHP on Windows Improvements in PHP-Microsoft Interoperability PHP World Kongress Munich, Germany November 9, 2010.
Azure Services Platform Piotr Zierhoffer. Agenda Cloud? What is Azure? Environment Basic glossary Architecture Element description Deployment.
Server Roles and Features.NET Framework 3.51.NET Framework 4.5 IIS Web Server IIS Default Document IIS Directory Browsing IIS HTTP Errors.
| Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada
Node.js on Windows Azure Name Title Microsoft Corporation.
Kay Herzam Herzam IT Consulting What‘s new in ASP.NET MS TechTalk.
Cross Platform Mobile Backend with Mobile Services James
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Windows Azure Conference 2014 Windows Azure Mobile Services from ground up.
Visual Studio 2012 or 2013 VisualStudio.com (or) Github (or) Bitbucket (or more) Azure Cross-Platform Command Tools Setup if you want to play too.
Lecture 8 – Platform as a Service. Introduction We have discussed the SPI model of Cloud Computing – IaaS – PaaS – SaaS.
Building Android Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
Building Android Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
Getting Started with Windows Azure Name Title Microsoft Corporation.
Developing Mobile Apps with Windows Azure Mobile Services Pongsakorn Poosankam Microsoft Innovation Center – Manager Microsoft (Thailand) Limited.
Node.js - What is Node.js? -
Building iOS Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
Introduction to Windows Azure BUGAEV ROMAN. Azure Windows Azure Platform is thus classified as platform as a service and forms part of Microsoft's cloud.
Building Connected Android Apps Chris Risner Technical Evangelist Microsoft
Building Connected Android Apps with Azure Chris Risner Technical Evangelist
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Building iOS Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist Microsoft
Microsoft Azure SoftUni Team Technical Trainers Software University
IOS and Android with Windows Azure Websites Name Title Address Website.
Sofia Event Center May 2014 Aleksandar Totović ERP Consulting Director, NPS Serbia Deploying Microsoft Dynamics NAV 2013 R2 ’ON’ Windows Azure.
Hybrid Cloud and Windows Server 2003 end of support on Azure Rod Kruetzfeld Data Center Technical Strategist Microsoft Canada.
Node.js & Windows Azure AZR326  JavaScript on the Server!  Event driven I/O server-side JavaScript  Not thread based, each connection uses only a.
Building Connected iOS Apps With Mobile Services Chris Risner Senior Technical Microsoft Azure.
Trunica Inc. 500 East Kennedy Blvd #300 Tampa, FL Cross Platform Mobile Apps With Cordova and Visual Studio 2015 © Copyright 2015.
Building Mobile Phone Applications With Windows Azure Nick HarrisWindows Azure Technical Evangelist Microsoft Blog:
Building Windows Store Apps with Windows Azure Mobile Services Name Title Organization.
WINDOWS AZURE MOBILE SERVICES AN INTRODUCTION Bret Stateham Technical Evangelist
Multi-Tier Apps with Admin Access, RDP, Custom Installs Modern Scalable Web Sites Full Windows Server/Linux VMs Web Sites Virtual Machines Cloud Services.
Building Windows Phone Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
Welcome to Azure App Services! Amie Seisay
Node.Js 1. 2 Contents About Node.Js Web requirement latest trends Introduction Simple web server creation in Node.Js Dynamic Web pages Dynamic web page.
Building and Diagnosing Applications using Visual Studio and Azure SDK Paul Yuknewicz Principal PM Manager.
2 Microsoft Confidential3 The Microsoft Web Platform is the software of choice when building web solutions or applications for your business, large.
Building Connected Windows Store apps with Windows Azure Mobile Services Nick Harris Windows Azure Tech Evangelist Microsoft Corporation WCL217.
Mobile Services Recap Windows Azure Mobile Services.
Building web applications with the Windows Azure Platform Ido Flatow | Senior Architect | Sela | This session.
Windows Azure and iOS Chris Risner Windows Azure Technical Evangelist Microsoft
 Cloud Computing technology basics Platform Evolution Advantages  Microsoft Windows Azure technology basics Windows Azure – A Lap around the platform.
Building Windows Store Apps with Windows Azure Mobile Services Nikola Metulev Windows Platform Technical Evangelist.
Introduction to Node.js® Jitendra Kumar Patel Saturday, January 31, 2015.
DreamFactory for Microsoft Azure Is an Open Source REST API Platform That Enables Mobilization of Data in Minutes across Frameworks and Storage Methods.
NodeJS and MEAN cs6320.
Deploying Web Application
Node.Js Server Side Javascript
Tulika Chaudharie / Harikharan Krishnaraju
Mobile App Trends: lifecycle, functions, and cognitive
NodeJS and MEAN Prof. L. Grewe.
Platform as a Service.
Logo here Module 3 Microsoft Azure Web App. Logo here Module Overview Introduction to App Service Overview of Web Apps Hosting Web Applications in Azure.
3 Things Everyone Knows About Node JS That You Don't
Building Cross-Platform Apps with Windows Azure Mobile Services
Node.Js Server Side Javascript
PaaS - Development Stefan Geiger Gerry
Modern cloud PaaS for mobile apps, web sites, API's and business logic apps
ASP.NET Module Subtitle.
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Saranya Sriram Developer Evangelist | Microsoft
INTRODUCTION TO By Stepan Vardanyan.
Serverless Architecture in the Cloud
Presentation transcript:

Sofia Event Center May 2014 Boris Simandoff, Product Chaos Group Mihail Mateev, Senior Technical Evangelist, Infragistics Inc. Node.js and Open Source Software Development on Microsoft Azure

How this talk has started…. Боби, хайде да направим една презентация за Microsoft Azure

How this talk has started…. Ами… щом е за облачни технолологии няма да откажа… но нека да е с Node.js

How this talk has started…. А защо да не е за open source технологии в Microsoft Azure ? Да включим и други технологии ?

How this talk has started…. Ето така се правят презентации…

Contents Comparing Node.js to.NET Introduction to Node.js on Windows Accessing Azure Storage with Node.js Using Azure SQL Database with Node.js Building a Web Site with Node.js Deploying a Node.js Application Microsoft Azure Mobile Services and Node.js Edge.js Resources

What is Node.js Node.js is a simple but powerful tool for asynchronous network programming By utilizing your existing knowledge of JavaScript, you can get up and running Apps quickly Node.js is based on V8 JS engine Practically no installation required Very lightweight (one 7MB static exe) Node.js encourages good software practices out of the box like async programming and inversion of control

Node.js Timeline Jan 2009 Created Ryan Dahl April 2010 Heroku launches node support Nov 2011 Windows Azure support EBay releases API built on node Cloud9IDE azure support Oct 2011 node.js overtakes Ruby as most popular repo on gitHub Walmart Launch mobile site on node.js Feb 2012 App Harbour support July 2011 LinkedIn adopts node for mobile platform port to Windows IISNode July 2010 Yammer adopts node.js Nov 2010 Cloud9I DE launches April 2014 Visual Studio support Node.js for VS 2012 & 2013 Beta 1.0 Nov 2013 Visual Studio support Node.js for VS 2012 & 2013 Alpha 1.0

Comparing Node.js to.NET Traditional Web Server Model ClientServer Request Response Dedicated Thread to service request

Comparing Node.js to.NET Traditional Web Server Model Request 1 thread 1 processes the request and blocks till completion Response 1 thread 1000 processes the request and blocks till completion Web Server (with 1000 threads) Request 1000 Response 1000 Request 1001 Request 1002 Request 1003 Requests queue up as blocked threads wait on server

Comparing Node.js to.NET Async Web Server Model ClientServer Request Response Thread is free to service other requests Return from Async Do Async Work Once event or async operation is complete thread completes the request

Comparing Node.js to.NET Async Web Server Model Web Server Request 1 Request Single threaded event Loop Listen for requests Starts any I/O operations by specifying a call back to execute on completion Continue to listen for requests Response 5 Response 1 “With node.js everything runs in parallel Except your code ! ” Response 99999

Comparing Node.js to.NET Mapping the Nomenclature IISNode.js C# / VBJavaScript EF / SQL ServerMongoose/MongoDB or other Database ASP.NET Web FormsExpress + EJS ASP.NET MVC/RazorExpress + Jade/Razor ASP.NET Web APIExpress/Hapi SignalIRWS / Socket.IO AngularJS / KnockoutJS

Introduction to Node.js on Windows How Node.js works?

Introduction to Node.js on Windows Node is Single Threaded!

Introduction to Node.js on Windows FAST..but, Node is FAST!

Introduction to Node.js on Windows How Node.js works? Asynchronous I/O Event Loop with Pool of Threads Dead-Lock Free (no concurrency issues)

Introduction to Node.js on Windows How Node.js works?

Introduction to Node.js on Windows Why Node.js The good parts of JavaScript are really awesome One language for the browser and the server Async by default Over 1M concurrent requests

Introduction to Node.js on Windows Enabling a Node.js Server-Side App on Microsoft Azure (PaaS) Web Role - all requests are received by Microsoft IIS 7 and passed to a native IIS module called iisnode Worker roles are much more like the basic node application in that they directly run node.exe for Server.js when the role instance starts.

Introduction to Node.js on Windows Enabling a Node.js Server-Side App on Windows Azure (PaaS)

Introduction to Node.js on Windows Node.js in Azure Websites The architecture for running Node.js within Azure Websites is identical to that used when hosting within a Web role

Introduction to Node.js on Windows Integrating Node with IIS / Benefits of using IISNode: Run your Node application across multiple CPU cores Serve static content from IIS, dynamic content from node Integrated, browser-based debugging with node- inspector Monitor the node executable plus changes to your code Configuration flexibility with XML + YAML overrides View console logs from the browser All the other existing IIS benefits, including output caching

Azure Storage with Node.js Azure Storage Blob Storage Table Storage Queue

Azure SQL Database with Node.js Microsoft Driver for Node.JS for SQL Server Open First – hosted on Github sqlserver sqlserver Simplicity by Design – keeps the simple API Use in Windows Azure Web Sites

Azure SQL Database with Node.js Connecting to SQL Server Database with Node.JS var sql = require('node-sqlserver'); var conn_str = "Driver={SQL Server Native Client 11.0};" + "Server=tcp:[databasename].database.windows.net,1433;" + "Database=TaskList;Uid=[username];" + "Pwd=[password];Encrypt=yes;Connection Timeout=30“

Azure SQL Database with Node.js Connecting to SQL Server Database with Node.JS sql.open(conn_str, function (err, conn) { err && throw err; conn.queryRaw(query, function (err, results) { err && throw err; for (var i = 0; i < results.rows.length; i++) { res.write( "Description: " + results.rows[i][0] + "\n"); } res.end(); }); }); // sql.open

Mobile Services & Node.js JSON to SQL Type Mappings JSON ValueT-SQL Type Numeric values (integer, decimal, floating point) Float(53) BooleanBit DateTimeDateTimeOffset(3) StringNvarchar(max)

Building a Web Site with Node.js Node Options in the Gallery

Building a Web Site with Node.js DEMO

Building and Deploying No build needed Deploy with Git (awesome)

Mobile Services & Node.js Azure Mobile Services Review DataAuthenticationNotificationsScripts & Svcs

Mobile Services & Node.js Microsoft Azure Mobile Services Architecture

Mobile Services & Node.js Data Storage Services

Mobile Services & Node.js Mobile Services Data Workflow Client SDK Simplifies This Insert script Update script Delete script Read script Node.JS Scripts Some JSON Object { FirstName=“…”, LastName=“…” } REST over HTTP

Mobile Services & Node.js Authentication Services

Mobile Services & Node.js Authentication

Mobile Services & Node.js Push Notification Services

Mobile Services & Node.js Push Notifications Insert, Update, Delete, Read on a Table Automatic or Manual Server Script An Event Script Runs in the Azure Mobile Service Windows Phone 8 iOSAndroid Windows 8

Mobile Services & Node.js Node Modules Extensibility through numerous included modules

Mobile Services & Node.js DEMO

Node.js and C# with Edge.js Edge.js Native binding to.Net world var edge = require('edge') var hello = edge.func(function() {/* async (input) => { return ".NET welcomes " + input.ToString(); } */}) hello('Node.js', function(error, result) { error && throw error console.log(result) })

Resources: Node.js - Node.js for Visual Studio - Scott Hanselman blog - Microsoft Azure – Node.js Developer Center - Azure SDK for Node.js in GitHub -

Questions??? Share your feedback for this particular session and for the overall conference experience at for a chance to win our prizes!