24
NODE.JS en Windows Matías Woloski Ignacio López Auth10 Wormhole IT @woloski @TrueNacho

Node on Windows jsconf arg 2012

Embed Size (px)

DESCRIPTION

Node.js on Windows talk @ jsconf Argentina 2012 Notes taken during the talk by @alexjota: https://docs.google.com/document/d/1BBm62-MgIsYprugGtfCltfBSTIvIdB1FTqOSiNlguig/edit Demo code: https://github.com/woloski/notepadr/blob/master/apps/testjsconf/

Citation preview

Page 1: Node on Windows jsconf arg 2012

NODE.JS en WindowsMatías Woloski Ignacio LópezAuth10 Wormhole IT@woloski @TrueNacho

Page 2: Node on Windows jsconf arg 2012

Node.js dramatización

Watch the video when it’s ready

Page 3: Node on Windows jsconf arg 2012

NODE.JS…..

¿¿¿ EN WINDOWS ???

Page 4: Node on Windows jsconf arg 2012

“The goal of node, as with any programming platform, is total world domination.”

Ryan Dahl, 5 May 2011

Windows tiene ~36% mercado en web servers

Windows tiene ~87% mercado en web browsers

*http://en.wikipedia.org/wiki/Usage_share_of_operating_systems

Page 5: Node on Windows jsconf arg 2012

Node.js Architecture

Page 6: Node on Windows jsconf arg 2012

Node.exe

download from http://nodejs.org

Page 7: Node on Windows jsconf arg 2012

process mgmt mixed content (asp.net, php, node, static) multi core debugging logging

iisnode download from https://github.com/tjanczuk/iisnode

Page 8: Node on Windows jsconf arg 2012

Editors Notepad

Sublime Text 2WebMatrix

Page 9: Node on Windows jsconf arg 2012

DEMO GETTING STARTED

Page 10: Node on Windows jsconf arg 2012

Node.js en Windows - Benchmarks

Benchmark 0.6.0 Linux 0.6.0 Windows

Simple HTTP 6263 r/s 5823 r/s

Read file 26.63 mB/s 26.51 mB/s

Write file 17.40 mB/s 33.58 mB/s

Startup 49.6 ms 52.04 ms

http://blog.nodejs.org/2011/11/05/node-v0-6-0/

Page 11: Node on Windows jsconf arg 2012

Node.js en Windows – hosting on iisnode

Scenario Node.exe [tx/s] iisnode [tx/s]

Hello World – 1 process

10400 11099

Hellow World - custered

29983 14822

Express Web site(mixed content)

1531 4678

Express web API(dynamic content)

7589 5572

These benchmarks were taken with CPU utilization at >90%. Windows 2008 server, quad core with node 0.6.6 and iisnode 0.1.13Using this test bed https://github.com/tjanczuk/iisnode/tree/master/test/performance. Credits to @tjanczuk

Page 12: Node on Windows jsconf arg 2012

DEMO - NOTEPAD COLABORATIVO

Page 13: Node on Windows jsconf arg 2012

Windows Azure – Microsoft cloud

Page 14: Node on Windows jsconf arg 2012

servicepackage

Provisión de servidores virtuales Desplegar código de aplicación Configurar la red

Datacenter Windows Azure

Page 15: Node on Windows jsconf arg 2012

servicepackage

Provisión de servidores virtuales Desplegar código de aplicación Configurar la red

Datacenter Windows Azure

Page 16: Node on Windows jsconf arg 2012

Network Load Balancer

Network load-balancer configurado para tráfico

Provisión de servidores virtuales Desplegar código de aplicación Configurar la red

Datacenter Windows Azure

Page 17: Node on Windows jsconf arg 2012

Network Load Balancer

Datacenter Windows Azure

Page 18: Node on Windows jsconf arg 2012

92

Escala

Page 19: Node on Windows jsconf arg 2012

Open source Apache 2 License Múltiples licencias Alojado en GitHub Contributions

Welcome

http://github.com/windowsazure

Page 20: Node on Windows jsconf arg 2012

Deploy a la nube

Page 21: Node on Windows jsconf arg 2012

RESUMEN Node.js puede correr en Windows La performance es buena y comparable con *ix

Hay un buen soporte de herramientas de desarrollo y debug

Microsoft y Joyent están dedicando recursos

Page 22: Node on Windows jsconf arg 2012

¿PREGUNTAS?

Page 23: Node on Windows jsconf arg 2012

RECURSOS Demo code (notepad colaborativo with share.js)

https://github.com/woloski/notepadr Host node with IIS:

https://github.com/tjanczuk/iisnode/ Deploy to Azure with git:

https://github.com/tjanczuk/git-azure Share.js:

http://sharejs.org Node SDK for Windowshttp

://www.windowsazure.com/en-us/develop/nodejs/ Blog about node on Windows

http://nodeblog.cloudapp.net MarkdownR

http://markdownr.cloudapp.net

Page 24: Node on Windows jsconf arg 2012

GRACIAS!!!Matías Woloski Ignacio LópezAuth10 Wormhole IT@woloski @TrueNacho