Golang actual combat use gin+ new WeChat public number racing source build Go language web framework Rest

Source: Internet
Author: User
Tags php framework

Contact Information: qq:2747044651 website
2017 Contact: qq:2747044651 website company needs to quickly iterate a contact: qq:2747044651 URL products, when contact: qq:2747044651 URL, our team's back-end framework is spring MVC, the framework is clearly structured , get started fast, but because our product iteration speed fast, the underlying database operation interface changes frequently, causes the service layer workload to be huge, patience. In addition, with the development of the project, the code volume is increasing, the project starts more and more slowly, which seriously affects the development debugging speed.

In this case, we want to find a new framework or programming language, we expect him to have simple debugging, Quick Start, fast startup speed, high confidentiality, and suitable for high concurrency and web programming, superior performance and other advantages. At that time, the alternative frame has spring boot and Golang, a comprehensive comparison, in the great regret, we chose the Springboot, related selection reference information as follows.

1, from the functional satisfaction of the comparison

In the launch of the product development, we combed their own needs, mainly in three aspects, one is to support the high-performance RESTful API services, the second is to support the Web page services, third, support rapid fall generation. Both spring boot and GOLANBG are supported for restful interfaces and performance, and the performance difference is small. In terms of page services, spring boot encapsulates the SPRINGMVC, is relatively mature, and because of the long-term accumulation of a large number of Javaer, the framework is very mature, and go lang, there is also a molded framework, such as Beego, but the framework is not highly used. The reason is because Beego does not form a PHP framework like the ecology, such as the industry PHP Open source framework thinkphp, currently based on the framework has formed a large number of CMS, mall, ERP, management and other software, which is why I write the book reason, I hope by writing the book, Let more people realize the go language, and participate in the Golang ecological construction. Return to the point, functional satisfaction, spring boot is better.

2. Study Cost

We need to take into account the team's learning costs, when the team is already very familiar with the Spring MVC framework, if you switch spring boot, the learning cost is almost zero, but if you switch to Golang, the learning cost is relatively high. In addition, the network on the Golang framework, the recommendation is not much, such as Gin,decho, and Beego, we focus on the Beego framework, there is a lot of controversy. All of this gives us some discount on whether to use the go language or not.

3. Project Migration Cost

We also consider our integration costs when choosing a framework. Our objective situation is: The company's technology stack and the accumulation of these technology stacks of projects, almost all Java, if we switch to Golang, then the product operation and maintenance costs will be relatively high, in addition to the current industry class Golang practitioners less, if we adopt go, It will be very difficult for our project team to build artificially.

4. Community activity

Go language Community activity is not high, specific can see the following aspects

L Baidu Search Index

is Golang and Java and PHP search index, the recent period of time, Golang concern has been declining, has reached the daily average of 1000PV, if golang do not hatch ecological circle, will face elimination. In fact, the search for Golang on Baidu, many of them are 2014 old.

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.