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

What language is used in the cloud server?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces you what language the cloud server uses, and the content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

What language is the CVM developed in?

There is more than one development language of the server, which is generally based on a programming language + a certain third party or the network library and underlying layer written by oneself. Let's compare the characteristics of several development languages.

Golang

Running efficiency: it has the advantage of concurrency, high utilization of CPU, and no virtual machine for native operation.

Ease of deployment: compile and run everywhere without any runtime dependencies

Debugging convenience: in practice, a single thread can be connected to the debugger, but the variable display is incorrect, and log checking is basically used during the development period.

Ease of use: simple language, few features, Web docking is very convenient, the code is concise

Hot updates: hot updates cannot be performed, the language cannot be compiled to DLL, and DLL loading is not supported (ignored by .so loading for linux platforms)

Crash handling: after a crash, the stack is printed on the command line, and any crash errors can be caught within the program and continue to run.

Difficulty in writing a network library: simple, simpler than C socket

Number of third-party network libraries and frameworks: less

C#

Development efficiency: VisualStudio can be used for development under Windows, and MonoDevelop can be used for other platforms, which is very convenient

Running efficiency: the performance optimization of JIT is in place and can adapt to 90% performance environment.

Ease of deployment: executable files for other platforms can be generated by cross-compilation and run through mono

Debugging convenience: both VisualStudio and MonoDevelop debugging are convenient and can be debugged remotely.

Hot updates: can be done through DLL

Crash handling: errors can be caught through try catch

Difficulty in compiling network library: in general, we should pay attention to the problem of gc

Number of third-party network libraries and frameworks: general

C++

Development efficiency: slow compilation, many files, few general libraries

Operating efficiency: native speed benchmarking

Ease of deployment: there is a high threshold for writing all kinds of make

Debugging convenience: Windows platform can be debugged through VisualStudio

Skill: skilled people with 2-3 years experience will still write crashes and leaked code.

Crash handling: SEH can be used to catch segment exceptions under Windows. Other platforms can only perform coredump analysis after a crash, and fault tolerance is very poor.

Difficulty in compiling network library: it is relatively simple to write based on asio, but on the whole, it is quite difficult.

Number of third-party network libraries and frameworks: more

In terms of language usage, Java,Erlang,C++ writes more servers, followed by Golang,JavaScript,C#.

For the old team, C++ 's server tool chain and framework are relatively mature, there is no need to change new languages, but when it is difficult to connect to sdk, you can try to develop mixed languages such as Golang, which have advantages over web. For new teams, development efficiency, hand-to-hand and deployment efficiency are preferred, and emerging languages such as CentralPhoneGolanggrad JavaScript will help you get twice the result with half the effort.

In general, however, the server development language is chosen according to the familiarity of the team.

So much for sharing about the language of the cloud server. I hope the above content can be helpful to you 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

Servers

Wechat

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

12
Report