Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Critical thinking in Node.js

202 views

Published on

This talk is not to teach you how to use Node.js, but to clarify what's the pros and cons of Node.js and reasoning behind it.

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

Critical thinking in Node.js

  1. 1. Critical Thinking in Node.js Morgan Cheng
  2. 2. What is Node.JS?
  3. 3. History • 2009, Ryan Dahl published Node.js • Bla Bla Bla • https://blog.risingstack.com/history-of-node-js/
  4. 4. io.js & node.js
  5. 5. Why choose JavaScript?
  6. 6. JavaScript is clean in I/O
  7. 7. Asynchronous Programming
  8. 8. Scale Out? Scale Up?
  9. 9. Single Thread? IT IS A JOKE
  10. 10. Event Loop
  11. 11. "Everything runs in parallel except your code"
  12. 12. How about add Threading in JavaScript?
  13. 13. Promise vs CPS
  14. 14. CPS • Easy to callback-hell • High Performant
  15. 15. Promise • Seems winning
  16. 16. Rocks for I/O intensive job Sucks for CPU intensive job
  17. 17. But, Node.js might still fail your Expectation
  18. 18. Watch Out •Sync API •Loop •Recursion •GC
  19. 19. It Could Freeze You!
  20. 20. Garbage Collection Real Single Threading
  21. 21. This is Node.js Happy?
  22. 22. Any Question?

×