The rise of Node.js: JavaScript graduates to the server
Microsoft and others have already adopted this technology to extend JavaScript beyond the browser -- but it has limits developers must beware
InfoWorld - Although it is just three years old, Node.js is gaining traction as an application development platform, letting developers extend JavaScript beyond the browser and into servers. But questions remain about JavaScript's appropriateness on servers and developers' readiness to use it.
Invented by Joyent developer Ryan Dahl, Node.js -- or simply Node -- is getting endorsements from established companies such as Microsoft and Yahoo, as well as from smaller ventures. Geared to network application development, the platform is built on the Google Chrome V8 JavaScript engine and features an event-driven, nonblocking I/O model that advocates say make it ideal for data-intensive, real-time applications running across distributed devices.
[ Read InfoWorld's interview with Node.js creator Ryan Dahl, where he discusses the basics of Node.js. | Subscribe to InfoWorld's Developer World newsletter for the latest news and insights on software development. ]
Dahl even sees Node.js displacing Java on servers. "Java got very complicated, and what was really nice about JavaScript two years ago was that it was this very simple language," Dahl says. "It had strings, and it had numbers and functions, but there really wasn't all that [much] else to it." But JavaScript did have capabilities such as closures and anonymous functions, Dahl noted: "That kind of set the stage to introduce a new server paradigm that focuses on nonblocking I/0."
JavaScript founder Brendan Eich, CTO at Mozilla, is not surprised that JavaScript has been extended beyond the browser and into servers. "I expected it because Netscape actually wanted to do that," Eich says. Developers "like a full-stack, end-to-end, one-language development model."
Big-time support for Node.js Microsoft is backing Node.js as a development language on the company's Windows Azure cloud platform. The company offers its Windows Azure SDK for Node.js. "Over the next couple of weeks, you're going to see basically us round out all of the features of Azure to have integrated Node.js libraries," says Microsoft vice president Scott Guthrie.
Mozilla is using Node.js in its identity project, for single sign-on for the Web. Because JavaScript is already the language of the browser, it makes sense that the programs that browser applications connect to are also written in JavaScript, says Mark Mayo, a principal engineer at Mozilla.
In November, Yahoo introduced its Cocktails technology for Web developers, featuring Node.js, JavaScript, HTML5, and CSS. Initial deliverables include Mojito, an environment-agnostic Web application framework for the client and server, and Manhattan, a hosted platform for Mojito applications. "The way we leverage Node.js in Manhattan is by having Node.js be the execution core of Manhattan," says Renaud Waldura, a senior product manager at Yahoo. Manhattan adds several high-end services not available in Node.js itself, such as security and isolation, he says.


- Excel 2010 Cheat Sheet
- Register for this Computerworld Insider Cheat Sheet and gain access to hundreds of premium content articles, guides, product reviews and more.
- Workload Automation Challenges and Opportunities
- This Executive Brief discusses IDC's perspective on how enterprise workload management requirements are changing and highlights the ways that workload automation solutions can...
- Practice Management: Double Billing Rate and Improve Patient Services
- Would you like to double your billing rate and achieve faster payment for services?
Download this customer success story to see how One Health... - Mission Critical Data Explosion and Customer Case Study
- Would you like to double your tier 1 storage capacity while simultaneously reducing your storage footprint?
Download this customer success story to see how... - Protecting Against Database Attacks and Insider Threats: Top 5 Scenarios
- Read this new eBook to learn the top five scenarios and essential best practices for preventing database attacks and insider threats.
- Database Activity Monitoring Is Evolving
- Read the analyst report and learn how you can leverage the core capabilities of a DAP solution for better database security. All App Development White Papers
- Distributed Database Security with Real-time Monitoring
- View this demo and learn how IBM InfoSphere Guardium database activity monitoring can help protect your sensitive data in distributed DBMS environments with...
- InfoSphere Warehouse Packs Demo
- These flash modules make warehousing more tangible and relevant to business users through detailed explanations of the InfoSphere Warehouse Packs.
- Delivery Management -- Extending Lifecycle Management
- Date: Wednesday, June 20, 2012, 1:00 PM EDT
Siloed organizations continue doing the wrong things and doing things wrong, leading to increased costs,... - Leverage automation today to reduce IT complexity
- Date: Tuesday, June 5, 2012, 2:00 PM EDT
Whether your B2B complexity is caused by multiple technologies due to M&A, business or application specific... - Redefine Expectations in the Data Center
- Need to do more with less? Watch this video to learn how HP ProLiant Gen8 servers can help your business deploy servers three... All App Development Webcasts