QCPHP - Node.js

795 views

Published on

Introduction to Node.js at the Charlotte PHP group

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
795
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

QCPHP - Node.js

  1. 1. QCPHP - NODE.JS
  2. 2. Garrett Johnson Charlotte, NC Red Ventures Developer
  3. 3. NON-BLOCKING IO NODE<?> DEVELOPMENT
  4. 4. “IO needs to be done differently, we are doing it wrong.” -Ryan Dahl $query = mysql_query(‘SELECT * FROM BAR’);
  5. 5. NON-BLOCKING IO NODE <?> DEVELOPMENT
  6. 6. ISN’T THERE OTHER STUFF LIKE THIS?
  7. 7. NO EXTRA BAGGAGE
  8. 8. $(document).ready(function() { $(#foo).bind(click, function(event) { $.get(/resource/, function(data) { }); });});
  9. 9. LIBUV V8 NODEJAVASCRIPT
  10. 10. NON-BLOCKING IO NODE.JS DEVELOPMENT
  11. 11. EVENTS STREAMS FSUNIX SOCKETS HTTP TCP UDP DNS ...
  12. 12. BASICS
  13. 13. SERVERS
  14. 14. MODULES
  15. 15. NPMNODE PACKAGE MANAGER
  16. 16. REAL TIME
  17. 17. WINDOWSI HEAR ITS ACTUALLY PRETTY GOOD!
  18. 18. WHYDOES IT MATTER?
  19. 19. PHP + NODE? DO REALTIME WEB SERVICES WHAT ELSE? OMFG DONT’S EXEC(‘NODE’); APACHE PROXY GET LAZY AND USE FS.SYNC____
  20. 20. TIPS? ORGANIZE CODE WELL, JUST LIKE YOU NORMALLY WOULD USE NPM AND LOOK TWICE AT WHAT MODULE YOU USEUNDERSTAND ASYNC BEFORE USING A “CONTROL FLOW” MODULE CONNECT EXPRESS SOCKET.IO NODE-REDIS NODE-MYSQL *CLUSTER*
  21. 21. QUESTIONS?THANKS FOR LISTENING! GJJ391@GMAIL.COMGARRETT-JOHNSON.INFO

×