Nodejs vs php_apache
Upcoming SlideShare
Loading in...5
×
 

Nodejs vs php_apache

on

  • 2,669 views

 

Statistics

Views

Total Views
2,669
Slideshare-icon Views on SlideShare
2,669
Embed Views
0

Actions

Likes
1
Downloads
23
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Nodejs vs php_apache Nodejs vs php_apache Presentation Transcript

    • NodeJS vs PHP & APACHE PHP & APACHE PHP & APACHE
      • Radu Cojocaru
    • NodeJS
      • creator: Ryan Dahl
      • server-side Javascript framework
      • event-based programming
      • nonblocking network I/O and asynchronous file I/O
      • http://www.nodejs.org /
    • PHP/NodeJS Script
      • validate GET params
      • fetch content from a URL (I/O)
      • process that content (stripping HTML tags)
      • read ~ 1000 keywords from the database (I/O)
      • search the text for those keywords
    • Test
      • ApacheBench (Gnuplot)
      • 1000 requests, with a concurrency of 50
      • PHP script behind Apache webserver
      • NodeJS script with its own webserver
    • Results
    •  
    • Conclusion
      • small scripts (webservices, logging/analytics) with lots of concurrent connections
      • lots of callbacks for multiple I/O operations
    • Thank you :)