SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Realtime Web
                       mit Node.js
                              #WWRuhr
                          by @DerMambo
                       visit: www.techpott.de




Freitag, 8. März 13
Node.js
      „Node.js is a set of libraries for JavaScript that allows it
       to run outside the browser. It is primarily focused on
         creating simple, easy to build network clients and
                               servers.“

                                oder ...
                      „Javascript auf dem Server“
                                oder ...
                           „so ein Unsinn“
Freitag, 8. März 13
2. meist betrachtete Repository auf Git Hub

Freitag, 8. März 13
Only a toy?
                      •   LinkedIn für Mobile Web App
                      •   Voxxer für Push to Talk mobile App
                      •   Microsoft als Core Contributor - bietet auch Cloud-
                          Hosting auf Windows Azure
                      •   Trello für Web App
                      •   Walmart für Mobile Site
                      •   uvm ... (https://github.com/joyent/node/wiki/
                          Projects,-Applications,-and-Companies-Using-Node)

                                           NO !
Freitag, 8. März 13
Ein einfacher Server
                          mit Node.js


Freitag, 8. März 13
Freitag, 8. März 13
Non Blocking I/O
                      Der Event-Loop


Freitag, 8. März 13
Client A                                             Client A
   will viele Daten
                                      Client B
                               möchte 2 + 2 berechnen


Single                                2+2 =4
Node Prozess             do nothing            do nothing     CB




                      CB
                 Hole
                 Daten
Freitag, 8. März 13
Node.js Vorteile

                      • Node.js bedient hunderte gleichzeitige
                        Verbindungen schnell und zuverlässig
                      • Sehr gut skallierbar
                      • Nur eine Sprache auf Client und Server


Freitag, 8. März 13
Freitag, 8. März 13
Realtime mit
                       Socket.io


Freitag, 8. März 13
Modules für jeden Bedarf
Freitag, 8. März 13
Was wir benutzen
                      • Express als meist genutztes Framework
                       • Vereinfacht nur die wesentlichen Dinge
                       • Request routing, content negotiation,
                          view templating und partials, session
                          support, static file serving
                      • Socket.io für Websockets mit diversen
                        Fallbacks


Freitag, 8. März 13
Socket.io


                      • Unified API for Web Sockets
                      • Creates fallbacks


Freitag, 8. März 13
Jetzt aber Realtime mit
                              Socket.io
                          [https://github.com/DerMambo/wwruhr-clicker]




Freitag, 8. März 13
Die Zukunft der
                           Webentwicklung?
                      • Full-Stack Javascript Frameworks
                       • Meteor.js
                       • Derby.js
                       • Mojito.js von Yahoo
                       • Sails.js ... und bald sicher noch mehr

Freitag, 8. März 13
Danke!
                      @DerMambo für mehr Realtime




Freitag, 8. März 13
SONSTIGES



Freitag, 8. März 13
Die Zukunft der Web-
                          Entwicklung?
                      •   Meteor.js
                      •   Derby.js
                      •   Mojito.js von Yahoo
                      •   Sails.js und es werden noch
                          einige folgen

Freitag, 8. März 13
• Ryan Dahl started node project 16. Feb
                        2009
                      • Isaac Schlueter starts npm package
                        manager




Freitag, 8. März 13
• Callback - Hell - Vermeidung
                       • Asynch
                       • Smaller functions
                       • allways (err, result){ ... }

Freitag, 8. März 13

Mais conteúdo relacionado

Destaque

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Destaque (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

20130228 wwruhr 4_realtime_webmitnodejs

  • 1. Realtime Web mit Node.js #WWRuhr by @DerMambo visit: www.techpott.de Freitag, 8. März 13
  • 2. Node.js „Node.js is a set of libraries for JavaScript that allows it to run outside the browser. It is primarily focused on creating simple, easy to build network clients and servers.“ oder ... „Javascript auf dem Server“ oder ... „so ein Unsinn“ Freitag, 8. März 13
  • 3. 2. meist betrachtete Repository auf Git Hub Freitag, 8. März 13
  • 4. Only a toy? • LinkedIn für Mobile Web App • Voxxer für Push to Talk mobile App • Microsoft als Core Contributor - bietet auch Cloud- Hosting auf Windows Azure • Trello für Web App • Walmart für Mobile Site • uvm ... (https://github.com/joyent/node/wiki/ Projects,-Applications,-and-Companies-Using-Node) NO ! Freitag, 8. März 13
  • 5. Ein einfacher Server mit Node.js Freitag, 8. März 13
  • 7. Non Blocking I/O Der Event-Loop Freitag, 8. März 13
  • 8. Client A Client A will viele Daten Client B möchte 2 + 2 berechnen Single 2+2 =4 Node Prozess do nothing do nothing CB CB Hole Daten Freitag, 8. März 13
  • 9. Node.js Vorteile • Node.js bedient hunderte gleichzeitige Verbindungen schnell und zuverlässig • Sehr gut skallierbar • Nur eine Sprache auf Client und Server Freitag, 8. März 13
  • 11. Realtime mit Socket.io Freitag, 8. März 13
  • 12. Modules für jeden Bedarf Freitag, 8. März 13
  • 13. Was wir benutzen • Express als meist genutztes Framework • Vereinfacht nur die wesentlichen Dinge • Request routing, content negotiation, view templating und partials, session support, static file serving • Socket.io für Websockets mit diversen Fallbacks Freitag, 8. März 13
  • 14. Socket.io • Unified API for Web Sockets • Creates fallbacks Freitag, 8. März 13
  • 15. Jetzt aber Realtime mit Socket.io [https://github.com/DerMambo/wwruhr-clicker] Freitag, 8. März 13
  • 16. Die Zukunft der Webentwicklung? • Full-Stack Javascript Frameworks • Meteor.js • Derby.js • Mojito.js von Yahoo • Sails.js ... und bald sicher noch mehr Freitag, 8. März 13
  • 17. Danke! @DerMambo für mehr Realtime Freitag, 8. März 13
  • 19. Die Zukunft der Web- Entwicklung? • Meteor.js • Derby.js • Mojito.js von Yahoo • Sails.js und es werden noch einige folgen Freitag, 8. März 13
  • 20. • Ryan Dahl started node project 16. Feb 2009 • Isaac Schlueter starts npm package manager Freitag, 8. März 13
  • 21. • Callback - Hell - Vermeidung • Asynch • Smaller functions • allways (err, result){ ... } Freitag, 8. März 13