NodeJS + Cocktails: Scaling Yahoo!

Diego Ferreiro (@diervo)

Front End Engineer at Yahoo!

http://feval.info/html5devconf

What are we going to scale?

Scaling development process

Not just doing it, but doing it fast..

Oh, my dear PHP!

Which problems we have with PHP today?

Our young and powerful NodeJS!

NodeJS + Cocktails

Jamón Serrano

Just try it out!

Mojit = Module + Widget

DEMO

https://github.com/dferreiroval/trainingMojito

http://mojito-demo.herokuapp.com/

Workflow Client/Server: The two runtimes magic

Continuous integration + Mojito

DEMO

Sharing mojits

package.json

{
    "name": "News",
    "description": "News Search",
    "version": "0.0.1",
    "dependencies": {
        "mojito": ">=0.4.x",
        "mojito-shaker": "0.8.x",

        "yahoo-utils-string-truncate": "0.0.x",
        "yahoo-utils-query-highlight": "0.0.x",
        "yahoo-utils-scheduler": "0.0.x",

        "yahoo-mojits-search-core": "0.0.x",
        "yahoo-mojits-search-image-dd": "0.0.x",
        "yahoo-mojits-search-sort-by-options": "0.0.x”
    },
    ...
    }
}

Do you want to use my code?

function () { }

Fact: Debugging anonymous functions is dangerous for your health

Deploying to the cloud

What about performance?

Thank you!

Diego Ferreiro (@diervo)

Remember to try it out before you leave!

NodeJS + Cocktails: Scaling Yahoo!

Diego Ferreiro (@diervo)

Front End Engineer at Yahoo!