Your SlideShare is downloading. ×
0
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Nodejs vs php_apache
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Nodejs vs php_apache

2,269

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,269
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. NodeJS vs PHP & APACHE PHP & APACHE PHP & APACHE
    • Radu Cojocaru
  • 2. NodeJS
    • creator: Ryan Dahl
    • server-side Javascript framework
    • event-based programming
    • nonblocking network I/O and asynchronous file I/O
    • http://www.nodejs.org /
  • 3. 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
  • 4. Test
    • ApacheBench (Gnuplot)
    • 1000 requests, with a concurrency of 50
    • PHP script behind Apache webserver
    • NodeJS script with its own webserver
  • 5. Results
  • 6.  
  • 7. Conclusion
    • small scripts (webservices, logging/analytics) with lots of concurrent connections
    • lots of callbacks for multiple I/O operations
  • 8. Thank you :)

×