Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

treweb 12 | 2

Silver Bullet Cloud Unicorn Stories

Or: Lessons Learned from Using Node.js in Production








Jaakko Salonen (@jsalonen)

Background

Needed to make a single-page web app

Web apps are hard, so let's be smart this time:

Step 1: Use node.js


Image: Some rights reserved by eschipul / Flickr.com

Step 2: Put it in the cloud


Image: Some rights reserved by EYECCD / Flickr.com

Step 3: profit?
9 months later...

The Lessons


Image: Some rights reserved by Ayton / Flickr.com

Lesson #1: Packages define your node experience

Problems

Lesson #2: Don't expect everything to be polished

            "dependencies": {
                "express": "2.5.10",
                "jade": ">= 0.27.2",
                "mongoose": "~2.7.4"
                ...
            }
        

Lesson #3: JavaScript is (still) tricky


Lesson #4: Embrace async

            async.parallel([
                foo1,
                bar1,
                baz1
            ], function() {
                // done
            })
        
Lesson #5: Deployment is disturbing

Image: Some rights reserved by ndrwfgg / Flickr.com

Luckily, you can make most of this work for your advantage

Traditionally, you have a monolithic web server with all its intricasies


With node you split your system into small apps that breathe the internet:


Summary
Thanks!

Questions?



Jaakko Salonen (@jsalonen)

Use a spacebar or arrow keys to navigate