Node.js 자바스크립트로 서버사이드 개발하기

26,325 views

Published on

2011. 7.2 KSUG 번개 세미나에서 발표한 발표자료

Published in: Technology, Sports
3 Comments
51 Likes
Statistics
Notes
No Downloads
Views
Total views
26,325
On SlideShare
0
From Embeds
0
Number of Embeds
9,788
Actions
Shares
0
Downloads
257
Comments
3
Likes
51
Embeds 0
No embeds

No notes for slide

Node.js 자바스크립트로 서버사이드 개발하기

  1. 1. : 자바스크립트로 서버사이드 개발하기 2011.07.02OutsideratKSUG
  2. 2. 짧은역사
  3. 3. Ryan Dahl 2009년2월9일 “V8을이용한 프로젝트에대한 아이디어가있어” byryan
  4. 4. 2009년11월8일JSConf.eu2009node.js발표 버전0.1.16
  5. 5. 인기를얻다
  6. 6. 3Popularwatched 위
  7. 7. 7632 watched
  8. 8. 1830npm기준 모듈 http://nithub.duostack.net/
  9. 9. 메인스폰서되다
  10. 10. 현재버전v0.4.9
  11. 11. 윈도우지원예정
  12. 12. 는무엇인가?
  13. 13. Server-sideJavaScript
  14. 14. L ive w ire
  15. 15. GWL ive w ire T
  16. 16. GWL ive w ire T Rhino
  17. 17. GWL ive w ire Tscr iptr una Rhino t=”s erver ”
  18. 18. 이번엔진짜서버사이드자바스크립트
  19. 19. 컨셉
  20. 20. “동시성을해결하는 가장좋은방법이 뭔지알아요? 동시성을사용하지 않는거에요”맹수
  21. 21. “We’redoingitwrong”-RyanDahl
  22. 22. 싱글쓰레드
  23. 23. 쓰레드는싸지않다
  24. 24. 멀티태스킹하지만한번에하나씩만!!!
  25. 25. 이벤트기반
  26. 26. 작업을요청하고완료되면돌려받는다
  27. 27. 동시접속수에따른초당리퀘스트처리수초당리퀘스트12,000 nginx 9,000 6,000 apache 3,000 0 0 500 1000 1500 2000 2500 3000 3500 4000 동시접속수 http://blog.webfaction.com/a-little-holiday-present
  28. 28. 동시접속수에따른메모리사용량MB 40 apache 30 20 10 nginx 0 0 500 1000 1500 2000 2500 3000 3500 4000 동시접속수 http://blog.webfaction.com/a-little-holiday-present
  29. 29. non-blockingI/O
  30. 30. varresult=db.query(select*fromA)//useresult
  31. 31. varresult=db.query(select*fromA)//useresult 블락킹
  32. 32. I/Olatency L1 1ns L2 4.7ns RAM 83ns DISK 13,700,000nsInternet 80,000,000ns http://duartes.org/gustavo/blog/post/what-your-computer-does-while-you-wait
  33. 33. db.query(select*fromA, function(result){//useresult});
  34. 34. 비동기I/O
  35. 35. 유니버셜랭귀지자바스크립트
  36. 36. V8
  37. 37. CommonJS
  38. 38. require(‘모듈명’)
  39. 39. //app.jsvarapp=module.exports={};//another.jsvaranother=require(‘./app’)
  40. 40. Events
  41. 41. Events HTTP
  42. 42. Events HTTP HTTPS
  43. 43. Events HTTP HTTPSFileSystem
  44. 44. Events HTTP HTTPSFileSystemNet
  45. 45. Events HTTP HTTPSFileSystemNet URL
  46. 46. Events HTTP HTTPSFileSystemNet URL DNS
  47. 47. Events HTTP HTTPSFileSystemNet URL DNS ChildProcess
  48. 48. node.js는V8위에서돌아가는자바스크립트런타임
  49. 49. 직접보자!!!
  50. 50. 로무엇을할수있는가?
  51. 51. Question???email:outsideris@gmail.comTwitter:@outsiderisBlog:http://blog.outsider.ne.kr
  52. 52. 이미지출처http://www.flickr.com/photos/franksvalli/5163229095/http://www.flickr.com/photos/jasonbain/5871759941/http://www.flickr.com/photos/australianshepherds/5715698150/http://www.flickr.com/photos/soldiersmediacenter/2759042525/http://www.flickr.com/photos/dslrninja/446737429/http://www.flickr.com/photos/ncc_badiey/4932200417/http://www.flickr.com/photos/laughingsquid/390803227/http://www.flickr.com/photos/nirazilla/3484465952/

×