Static Version This was the sixth in a series of posts leading up to Node.js Knockout on how to use node.js. This post was written by 10gen and is cross-posted from their blog. 10gen is the corporate sponsor of MongoDB. MongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). Node.js and MongoDB
An example: Webserver This simple web server written in Node responds with "Hello World" for every request. To run the server, put the code into a file example.js and execute it with the node program from the command line: % node example.js Server running at http://127.0.0.1:1337/ Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it:
No, not “because I said so.” The best reason to pay attention to node.js is the audience that is paying attention to it. Joe Shaw’s pointer the other day was just the latest in a string of node.js mentions. By now you’ve probably heard that the folks from Heroku recently – as in two weeks ago yesterday – announced experimental support for the project to a shortlist of their users. Less visible are projects such as the Gilt Group funded real-time web analytics project Hummingbird (that link’s courtesy of Jeff Waugh), currently a trending repo on Github, fanout.js – a node based pubsub messaging server (that one’s via Dion Almaer), or others like nodewiki, a wiki built from node and Redis. What is node.js?
Preview Download Free Preview NOTE: The code download has been updated for the latest Node 0.6.10 release and NPM 1.1.1. Meet Node.js | PeepCode Screencasts for Web Developers and Alpha Geeks
nodeJsCloud - A node.js Cloud Hosting Platform A simple, scalable, and powerful node.js platform as a service (PaaS) and community for developers. Node.js developers should focus on applications, let us handle deployment, hosting, and scaling. Dedicated VMs & Root Access Instantly provision VMs pre-configured with the latest stable version of node.js and npm. Full root access!
Twisted is an event-driven networking engine written in Python and licensed under the open source MIT license. Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it: from twisted.internet import protocol, reactor class Echo(protocol.Protocol): def dataReceived(self, data): self.transport.write(data) class EchoFactory(protocol.Factory): def buildProtocol(self, addr): return Echo() reactor.listenTCP(1234, EchoFactory()) reactor.run()
eventmachine @ GitHub
eventmachine @ GitHub