SlideShare a Scribd company logo
Sumeet Roy
sumeet.ru@gmail.com
Agenda
▶ We will compare both the technology in all possible ways
& try to find out which one better than other.
NodeJs vs PHP
Introduction
▶ Node.js is an open source server framework.
▶ It is based on Google’s V8 JavaScript engine.
▶ Programs in node.js are written in JavaScript but not the same JavaScript we
use in browser. There is no DOM implementation in Node.js
▶ In ‘Node.js’, ‘.js’ doesn’t mean that it was completely written in JavaScript. It is
40% JS and 60% C++.
▶ The potential to write isomorphic code (same code is run in browser & server).
▶ Best for real-time application.
Overview
Non-blocking I/O
▶ Work on a single thread using non-blocking I/O calls.
▶ Supports tens of thousands concurrent connections.
▶ Optimized for scalability in web applications with many I/O operations.
▶ This makes Node.js apps extremely fast and efficient.
▶ Natively PHP don’t support this feature.
Event Loop
▶ Single threaded
▶ Supports concurrency via event and callbacks
▶ EventEmitter class is used to bind events and listeners.
Traditional server side programming languages
like PHP, Java, Python etc. creates thread for
each request.
NodeJS handles event-based callback on
single thread. Node are free from deadlock.
Environments
▶ Both php & node can be install in all OS.
▶ PHP need more resources than node. You need to install more extensions &
modules of php to setup in your server.
▶ In the other hand node.js has very few dependency as compared to php to
deploy in server.
Performance
▶ The performance of node.js is generally better than PHP due to several
advantage
▶ Fewer dependency
▶ Smaller & faster interpreter
▶ Applications are permanently on
▶ An event-driven, non-blocking I/O
And the Winner is …..
NodeJs vs PHP
Why…?
PHP codes are very easy to implement & easy to
learn as compared to node.js
World's most popular CMS & MVC are made with
PHP.
Large community support.
Performance improvement:-
Best for small, medium & large web based
projects.
Efficient for CPU-intensive work &
best for shared hosting.
NodeJs vs PHP
Event-driven non-blocking I/O with PHP:-
Kraken-php other frameworks.
Kraken-php vs
node.js:-
NodeJs vs PHP
NodeJs vs PHP
▶ When it comes to performance & scalability Node Js is
absolute winner.
▶ It is best for large web application development when you
have sufficient time for development.
▶ But when it comes to high speed development you can take
advantages of CMS like Drupal, wordpress & magento. In this
case there is no comparison with php.
▶ PHP has a large community support no matter what problem
you have there's always a solution.
My advice: Pick a application which matches your
requirement without influenced by the trend.
NodeJs vs PHP

More Related Content

PDF
Squareboat Crew Deck
PDF
Squareboat Design Portfolio
PDF
Squareboat Product Foundation Process
PDF
UX/UI portfolio
PDF
Merancang Product Digital
PDF
Become a HTML5 Specialist
PDF
3 P's - SoDA presentation
PDF
Going web native - Feb 2018
Squareboat Crew Deck
Squareboat Design Portfolio
Squareboat Product Foundation Process
UX/UI portfolio
Merancang Product Digital
Become a HTML5 Specialist
3 P's - SoDA presentation
Going web native - Feb 2018

What's hot (20)

DOCX
Praveen Kumar
DOCX
Explaindio 2.0
DOCX
Kumar Abhishek Sudhanshu1
PDF
MukundDhananjayResume
PDF
Aseefa (front end developer/ UX designer) resume
PDF
Lezgro full presentation
PDF
Aufait UI/UX Services Profile
PDF
Ux/Ui Designer - 2016 Resume
DOCX
Sureshundley_Principal_webdesiger
PDF
Covintus overview 2013
DOCX
DANIAL BAKHSHESHI - Resume 2015
PPTX
Skynet presentation
PDF
Ahmed Samir CV
PDF
Kony Visualizer Puts Mobile Apps Features Control in Hands of Those Closest t...
DOCX
CV_Shubham Choudhary
PDF
Freelance Graphic & Web Designer Resume | Calgary Canada Mohsin Maredia
PDF
Saheel_Babu _KT
DOC
Narender_Resume
PDF
Ui developer
PPTX
VRSafety NETCO 2017
Praveen Kumar
Explaindio 2.0
Kumar Abhishek Sudhanshu1
MukundDhananjayResume
Aseefa (front end developer/ UX designer) resume
Lezgro full presentation
Aufait UI/UX Services Profile
Ux/Ui Designer - 2016 Resume
Sureshundley_Principal_webdesiger
Covintus overview 2013
DANIAL BAKHSHESHI - Resume 2015
Skynet presentation
Ahmed Samir CV
Kony Visualizer Puts Mobile Apps Features Control in Hands of Those Closest t...
CV_Shubham Choudhary
Freelance Graphic & Web Designer Resume | Calgary Canada Mohsin Maredia
Saheel_Babu _KT
Narender_Resume
Ui developer
VRSafety NETCO 2017
Ad

Similar to NodeJs vs PHP (20)

PDF
Node.js vs PHP, What should SMBs prefer for web development.pdf
PDF
Node.Js Vs PHP: Which is Likely a Better Server Side Environment?
PDF
Node.Js vs PHP Which One Should You Choose.pdf
PDF
Node.js vs PHP_ Which is a good choice for your project_.pdf
PDF
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?
PDF
PHP Vs NodeJS for Backend Web Development.pdf
PDF
Node Js vs PHP Which One is Perfect for Your Project
PDF
Comparative Analysis PHP vs Node.js for Backend Development.pdf
PPTX
PHP vs Node.JS: Choose the Right Backend Framework For Your Project
PDF
PHP vs Node.js
PDF
Node JS vs PHP Which Backend to Choose for Your Project.pdf
PDF
Node.js vs PHP: A Comparison Guide
PPTX
Beginners Node.js
PDF
Event driven programming -- Node.JS
PPTX
NodeJS VS Python
PPTX
PHP and Node.js-Differences and Similarities
PDF
Node JS | Dilkash Shaikh Mahajan
PPTX
Intro to node and non blocking io
PDF
NodeJS vs Python 2024: Which is better for backend development?
PDF
NodeJS or Apache: Unveiling the Differences in Performance, Use Cases, and Se...
Node.js vs PHP, What should SMBs prefer for web development.pdf
Node.Js Vs PHP: Which is Likely a Better Server Side Environment?
Node.Js vs PHP Which One Should You Choose.pdf
Node.js vs PHP_ Which is a good choice for your project_.pdf
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?
PHP Vs NodeJS for Backend Web Development.pdf
Node Js vs PHP Which One is Perfect for Your Project
Comparative Analysis PHP vs Node.js for Backend Development.pdf
PHP vs Node.JS: Choose the Right Backend Framework For Your Project
PHP vs Node.js
Node JS vs PHP Which Backend to Choose for Your Project.pdf
Node.js vs PHP: A Comparison Guide
Beginners Node.js
Event driven programming -- Node.JS
NodeJS VS Python
PHP and Node.js-Differences and Similarities
Node JS | Dilkash Shaikh Mahajan
Intro to node and non blocking io
NodeJS vs Python 2024: Which is better for backend development?
NodeJS or Apache: Unveiling the Differences in Performance, Use Cases, and Se...
Ad

Recently uploaded (20)

PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ai tools demonstartion for schools and inter college
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
history of c programming in notes for students .pptx
PDF
Digital Strategies for Manufacturing Companies
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Nekopoi APK 2025 free lastest update
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Essential Infomation Tech presentation.pptx
PDF
Softaken Excel to vCard Converter Software.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
ai tools demonstartion for schools and inter college
Operating system designcfffgfgggggggvggggggggg
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
history of c programming in notes for students .pptx
Digital Strategies for Manufacturing Companies
Which alternative to Crystal Reports is best for small or large businesses.pdf
Nekopoi APK 2025 free lastest update
Odoo Companies in India – Driving Business Transformation.pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
CHAPTER 2 - PM Management and IT Context
Navsoft: AI-Powered Business Solutions & Custom Software Development
How Creative Agencies Leverage Project Management Software.pdf
L1 - Introduction to python Backend.pptx
Essential Infomation Tech presentation.pptx
Softaken Excel to vCard Converter Software.pdf

NodeJs vs PHP

  • 2. Agenda ▶ We will compare both the technology in all possible ways & try to find out which one better than other.
  • 5. ▶ Node.js is an open source server framework. ▶ It is based on Google’s V8 JavaScript engine. ▶ Programs in node.js are written in JavaScript but not the same JavaScript we use in browser. There is no DOM implementation in Node.js ▶ In ‘Node.js’, ‘.js’ doesn’t mean that it was completely written in JavaScript. It is 40% JS and 60% C++. ▶ The potential to write isomorphic code (same code is run in browser & server). ▶ Best for real-time application. Overview
  • 6. Non-blocking I/O ▶ Work on a single thread using non-blocking I/O calls. ▶ Supports tens of thousands concurrent connections. ▶ Optimized for scalability in web applications with many I/O operations. ▶ This makes Node.js apps extremely fast and efficient. ▶ Natively PHP don’t support this feature.
  • 7. Event Loop ▶ Single threaded ▶ Supports concurrency via event and callbacks ▶ EventEmitter class is used to bind events and listeners.
  • 8. Traditional server side programming languages like PHP, Java, Python etc. creates thread for each request. NodeJS handles event-based callback on single thread. Node are free from deadlock.
  • 9. Environments ▶ Both php & node can be install in all OS. ▶ PHP need more resources than node. You need to install more extensions & modules of php to setup in your server. ▶ In the other hand node.js has very few dependency as compared to php to deploy in server.
  • 10. Performance ▶ The performance of node.js is generally better than PHP due to several advantage ▶ Fewer dependency ▶ Smaller & faster interpreter ▶ Applications are permanently on ▶ An event-driven, non-blocking I/O
  • 11. And the Winner is …..
  • 14. PHP codes are very easy to implement & easy to learn as compared to node.js
  • 15. World's most popular CMS & MVC are made with PHP.
  • 18. Best for small, medium & large web based projects.
  • 19. Efficient for CPU-intensive work & best for shared hosting.
  • 26. ▶ When it comes to performance & scalability Node Js is absolute winner. ▶ It is best for large web application development when you have sufficient time for development. ▶ But when it comes to high speed development you can take advantages of CMS like Drupal, wordpress & magento. In this case there is no comparison with php. ▶ PHP has a large community support no matter what problem you have there's always a solution. My advice: Pick a application which matches your requirement without influenced by the trend.