官术网_书友最值得收藏!

Go

Go is a compiled programming language and has great performance. No doubt it is one of the languages that has seen growing popularity in recent years. Go is a language with the imperative paradigm, although very few developers understand that there is some level of OOP. The ecosystem's main characteristic is a standard robust library, making frameworks in some cases unnecessary. But the ecosystem is not perfect, with problems in simple things like version control. Go has simple and easily readable syntax. The main feature of the Go syntax is the convenience that it applies and how it handles concurrent programming.

To make it easier to compare, we will use the following chart as support:

In the case of our news portal, these are the languages that will be applied:

  • SportNewsService, PoliticsNewsService, and FamousNewsService: These microservices make use of Python. It is the typical scenario where language applies very well. The lower performance of Python will not be a problem even if the portal receives many hits.
  • RecommendationService: This application also uses Python. This choice is fully related to a connection between performance and practicality in using other tools that will make the stack of our microservices. A microservice like this does not have the requirement of being real time; we can use something that has simplified APIs and is not as disruptive to the rest of the ecosystem.
  • UserService: These microservices apply Go. UserService is a microservice that interacts with users as well as providing information to other application microservices.

The fact is that there is no perfect tool for everything. All languages have shown positive and negative points. With the great technological plurality that we can apply to the microservices architecture, managing the stack that best applies in each scenario is our role in this case.

主站蜘蛛池模板: 商城县| 工布江达县| 新闻| 增城市| 黔西县| 木兰县| 台南县| 中江县| 荣成市| 安新县| 确山县| 萝北县| 定远县| 勐海县| 疏附县| 乌拉特中旗| 小金县| 温宿县| 逊克县| 亚东县| 盱眙县| 平定县| 永仁县| 梁平县| 榆林市| 霍城县| 广州市| 天祝| 铅山县| 若羌县| 新巴尔虎左旗| 游戏| 芒康县| 莆田市| 江津市| 建宁县| 阿城市| 屏山县| 太仆寺旗| 闻喜县| 新乐市|