Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why C++ is seldom used for Web back-end development

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail why C++ is rarely used in Web back-end development, and the content of the article is of high quality, so the editor shares it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

The major Web backends in the world are written in Cmax Candle +, such as Google, Baidu, Tencent, Facebook and other companies. Other commercial companies use Java.

Secondly, most of the underlying Internet platforms (operating system, Web server, database, etc.), programming languages, related extension libraries, are also mostly developed by Cmax Candle +.

Of course, the development of these basic platforms is rarely involved in China, and they are all products developed by foreign programmers (open source or commercial fees). There is no Chinese developer involved, so it is completely ignored.

The programs written by CAccord + account for more than 90% of the computing power of the Internet backend.

The performance is the best, but the development efficiency is the lowest. Therefore, in addition to the basic components and frequently called libraries, most of the business logic of ordinary websites will be written in languages that are more efficient.

Statistics on the computing power of CAccord + in the Internet background:

About 100% of the Web backend computing power is calculated according to the platform. Operating systems, Web servers, databases, most programming languages, and extension libraries are all included.

Including API and library calls account for more than 90% of the computing power of the Internet backend. Other low-performance languages directly carry less operations, and most of the operations are the system API and libraries written by the called C _.

Only calculated according to the back-end language (as you commonly see): Cmax Craft + back-end giants are in use, and there are some local applications, the total amount is indeed small, but the weight is half of the country is not exaggerated. And there is usually a package, the front end can not be seen directly.

The backend kernel of Google is mainly CumberCraft, which is 30 times the amount of code of Windows. The computing performance of Python is more than 200 times slower than that of AI +, and it is only used in the glue language of perimeter and big data. As a result, there is widespread misinformation about Google's back-end using Python (to support common business). Of course, the performance of the Python Web server can be as high as that of Cpicket +, and it can carry some light-loaded or prototype services.

Why is the Python more than 200 times slower than C++, but the server performance can reach C++ 's 1x10? Because Python spends most of its time running extension libraries written in C and the system IO, its own py code accounts for only 5% of the capacity.

Only those giant websites have the resources and ability to write backstage with C++. Because the cost difference of massive servers far exceeds the increase of C++ development costs. For example, a certain service uses 10 million servers for Python, 3 million for PHP, 2 million for Java and 1 million for C++. It will definitely save tens of billions of yuan by choosing Clearing County.

For example, Facebook has fully migrated from PHP to Clippers, reducing the number of servers to 1/3. But if Python uses 10 servers, PHP uses 3, Java uses 2, and C++ uses 1 server. It is certainly not going to be chosen because development resources are more expensive than servers at this time.

Go: a substitute for Internet Cumberbatch +.

Getting started is not difficult to learn. But because it is closer to the bottom of the hardware, the program form is farther away from the natural language, and it takes more time to write more lines and take more time to master it. And the deadly pointer is not only the sharp weapon of soaring performance, but also the culprit of the program collapse. Therefore, C++ needs more time to compile, test and check the program in order to ensure stability and is not suitable for rapid development and change.

In fact, the back-end development language is so convenient, flexible and stable that C++ has no choice but to do the kernel. With the general speed of change on the Internet, the slowness of C++ is close to its stagnant posture, making it impossible to raise interest in improving the direct Web development of C++. Simply write out PHP, http://ASP.NET, JSP and other products that support efficient development. However, when the size of the website increases, the part of high concurrency and intensive computing, C _ plus becomes a necessary choice.

Go is Google to solve these pain points, came into being. It has the performance close to C, but it is safer and faster, has more Internet genes, and is currently growing fastest at the back end.

On why C++ is rarely used in Web back-end development, so much for sharing here. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report