Introducing Nodejs - Javascript on the server

Download Introducing Nodejs - Javascript on the server

Post on 06-May-2015

901 views

Category:

Technology

1 download

DESCRIPTION

Introducing Node JS Javascript on the server

TRANSCRIPT

  • 1.@drieanto

2. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. event-driven non-blocking I/O model perfect for data-intensive real-time applications 3. NodeJS vs PHP sumber : clock.co.uk 4. / sumber : toptal.com 5. Examples of Where Node.js Should Be Used CHAT API ON TOP OF AN OBJECT DB QUEUED INPUTS DATA STREAMING PROXY SYSTEM MONITORING DASHBOARD 6. Where Node.js Shouldnt Be Used SERVER-SIDE WEB APPLICATION W/ A RELATIONAL DB BEHIND HEAVY SERVER-SIDE COMPUTATION/PROCESSING 7. Remember: Node.js was never created to solve the compute scaling problem. It was created to solve the I/O scaling problem, which it does really well. 8. Node.js Web Frameworks Sinatra-like Rails-like MVC frameworks Express Hapi Flatiron CompoundJS Geddy Sails.js More.. REST API frameworks actionHero.js Frisby Restify Restmvc More 9. Getourguide? Express + Connect + Socket.io building single and multi-page, and hybrid web applications middleware framework build on express realtime apps 10. Sample code Install npm install express node server.js 11. npm install mysql GET 12. Unit Test Mocha & Chai 13. Secure API 14. Companies Using Node http://nodejs.org/industry/ We use Node.js to power the back-end of our real-time collaboration software. Between its superb scalability and performance, Node is the only logical choice for our current and future applications. Pete Fredricks Co-Founder, CEO 15. noSQL Scale Simpler data model (less joins) asynchronous SQL Relational normalization