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,278

Published on

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

No Downloads
Views
Total Views
2,278
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 &amp; APACHE PHP &amp; APACHE PHP &amp; APACHE <ul><li>Radu Cojocaru </li></ul>
  • 2. NodeJS <ul><li>creator: Ryan Dahl </li></ul><ul><li>server-side Javascript framework </li></ul><ul><li>event-based programming </li></ul><ul><li>nonblocking network I/O and asynchronous file I/O </li></ul><ul><li>http://www.nodejs.org / </li></ul>
  • 3. PHP/NodeJS Script <ul><li>validate GET params </li></ul><ul><li>fetch content from a URL (I/O) </li></ul><ul><li>process that content (stripping HTML tags) </li></ul><ul><li>read ~ 1000 keywords from the database (I/O) </li></ul><ul><li>search the text for those keywords </li></ul>
  • 4. Test <ul><li>ApacheBench (Gnuplot) </li></ul><ul><li>1000 requests, with a concurrency of 50 </li></ul><ul><li>PHP script behind Apache webserver </li></ul><ul><li>NodeJS script with its own webserver </li></ul>
  • 5. Results
  • 6. &nbsp;
  • 7. Conclusion <ul><li>small scripts (webservices, logging/analytics) with lots of concurrent connections </li></ul><ul><li>lots of callbacks for multiple I/O operations </li></ul>
  • 8. Thank you :)

×