Which solution to choose for best performance and why?

I want to know in which language either php is an interpreted language or Asp.net is a compiled language that will be adopted in the following script for better performance and why? Scenario: A business portal for business should be created, which will account for more than 10,000 users per hour of traffic.

+3
source share
4 answers

A tough question, not a lot of information ... in ASP.NET books, a compiled language will give you a small boost to performance, rather than an interpreted language like the old asp, php, etc.

The reason for this is that compiled languages ​​are faster because they have already compiled everything compared to a php page that needs to be read and compiled on the fly. But PHP also has some tricks to improve speed by compiling it ...

In the end, the speed of ASP.NET and PHP should be the same.

So this should not be your main problem. You should focus instead:

  • Having a scalable website that allows you to have multiple web servers in a cluster so that your site can handle all users

  • Trying not to use session variables if possible to lighten the cluster

  • Database material
  • Price (if you need a cluster of 5 web servers and 3 DB servers, 5 Linux, 5 Apaches and 5 Postgres licenses, it’s actually cheaper than 7 Windows 2003 Servers + 3 SQL Server 2008)
+2

Facebook HipHop for PHP, PHP- ++, .

, C/++, , . .

+3

ASP.NET, Java PHP ( , APC eAccelerator) . .

, , , , .

. ASP.NET Java , PHP .

0

, , / .

, , . , , PHP, .

PHP . , , PHP , . , java .net .

, PHP , , . ( ), , - .

, PHP .

As already mentioned, there are other ways to improve performance, but some of them involve compiling your PHP code. Could you trust HipHop PHP for a large-scale PHP application without looking at stability, compatibility and other problems with the LAMP stack?

0
source

Source: https://habr.com/ru/post/1753676/


All Articles