Introducing Nodejs - Javascript on the server

975
-1

Published on

Introducing Node JS Javascript on the server

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
975
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introducing Nodejs - Javascript on the server

  1. 1. @drieanto
  2. 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. 3. NodeJS vs PHP sumber : clock.co.uk
  4. 4. / sumber : toptal.com
  5. 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. 6. Where Node.js Shouldn’t Be Used SERVER-SIDE WEB APPLICATION W/ A RELATIONAL DB BEHIND HEAVY SERVER-SIDE COMPUTATION/PROCESSING
  7. 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. 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. 9. Getourguide? Express + Connect + Socket.io building single and multi-page, and hybrid web applications middleware framework build on express realtime apps
  10. 10. Sample code Install • npm install express • node server.js
  11. 11. • npm install mysql • GET
  12. 12. Unit Test Mocha & Chai
  13. 13. Secure API
  14. 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. 15. noSQL • Scale • Simpler data model (less joins) • asynchronous SQL • Relational • normalization
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×