Why choose Golang to write mobile game server

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Choose Golang to do game server development

After six months of mobile game operation, maintenance, follow-up development, the next network game server-side development technology selection requirements are as follows: 1. System mature, there are large success stories 2. 3 Higher development efficiency. High performance, it is best to support parallel technology to make full use of multi-CPU resources 4. Code encryption Release 5. Development logic is simple, such as multi-threaded synchronization, locking, multi-process synchronization is more complex 6. Easy to learn and use, if it is new technology

Alternative technology comparison

I can choose the technical platform through some of my own analysis summarized as follows (one's own words):

golang
project nodejs python c++/ruby Erlang
system Mature 4 3 5 4 3
Development Efficiency 5 5 3 3 5
Performance 3 3 5 5 4
Encrypt publication 3 0 4 3 5
Logic Simple 5 5 3 4 5
Easy to learn 5 5 2 1 4
Cross-platform 5 5 5 5 5

In fact, smart readers, look at the above table, you already know that I am the most favorite Golang, yes! In fact, the above table is only a pretence, in fact, choose which kind can achieve the goal, at the same time I am optimistic about Erlang and Golang parallel development mode for game development, I began learning Erlang and Golang in 2011 years, once indulged, combined with their own conditions and team situation, I finally chose the Golang.

I like Python's Code style and development efficiency, but also used it for nearly two years of development, but its performance is relatively low. I was helpless to give up.

I am optimistic about the birth of Golang (three great Inventors), concise (the language of the Least keyword), pioneering (struct, interface, channel, goroutine), I focus on Golang two years, Until last year it released 1.0, and a growing number of project cases and developers, I think now can be used in production projects.

For Golanger.

I am honored that I have become one of you, I hope we can communicate more. My later Golang code does not involve part of the trade secret I will share with you and accept your help on github.com. I mainly use Golang to develop the application of TCP server class, such as game server.

(Transferred from: http://blog.5d13.cn/work/golang/2013/06/16/whyiusegolangtowritegameserver.html)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.