C
C#6mo ago
atabegruslan

.NET vs PHP frameworks - which is better for big websites with many requests?

Can someone please tell me which is better? ASP.NET or a PHP framework (eg Laravel) for a large ECommerce website that often handle many requests? Google search results are inclusive. Also - Is C# event-based (like Node) or 1 thread per request (like PHP)?
14 Replies
cap5lut
cap5lut6mo ago
asking this on a c# server will mainly get ya biased answers. generally speaking i would say dotnet/c# is better - performance wise. asp.net core (the defacto standard for web applications in dotnet) heavily use asynchronous programming featuers, so its not one thread per request/connection. (behind the scenes async methods are a state machine so if they have to await the completion of something, it doesnt block a thread and the thread can continue on other work) because c# is a general purpose language unlike php u can squeeze out performance on a broader range. i dont know much about ecommerce software, but most likely there isnt that much u can do to squeeze out performance, savings in development time and maintenance and load balancing seem for me to be the more effective ways in general. dotnet/c# can shine a bit more than php imo because it can also used for frontend via blazor for example. due to the static type system, tools like ORMs (mostly EF Core) tend to be less error prone to me as well. on another side, php has a long history regarding web development, so there is probably for everything something out there, but dotnet/c# is on the rise here
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
cap5lut
cap5lut6mo ago
(its about .net and php, node was just an example)
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
cap5lut
cap5lut6mo ago
yeah, so its .net vs php after all
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
cap5lut
cap5lut6mo ago
additionally, ecommerce software isnt really that heavy of work in the sense of how fast a language/runtime can be, there isnt that much dynamic stuff going on as most stuff is just shipping static files. so for that its mainly about looking at how to setup the webserver(s), imo
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
RobertGee
RobertGee6mo ago
Php is genuinely older, in language and tech… so depends if you want a modern code base or not imo .NET 8 has some nice new features where PHP are developing old features in RFC
atabegruslan
atabegruslanOP6mo ago
I almost forgot to ask. Is there a max number of connections/requests that .NET can handle? Yea, how would you do that?
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
atabegruslan
atabegruslanOP6mo ago
And regarding this. Really that different? Both Node and .NET have thread-pool full of worker-threads. Only difference being Node have a single thread loop in front of the worker-threads And also, what is Fortune? A website that compares stuff?
atabegruslan
atabegruslanOP6mo ago
Stack Overflow
What is the maximum number of threads available in Asp.net ThreadPool
Just out of curiosity , What is the maximum number of threads available for handling request in asp.net. And does asp.net releases them for any I/O or database operations so that maximum number of
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server