Nodejs vs php_apache

  • 2,211 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,211
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
24
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 :)