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

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.

主站蜘蛛池模板: 天柱县| 正安县| 新宾| 台前县| 定结县| 和顺县| 稷山县| 金川县| 洪洞县| 遵义县| 邵武市| 土默特左旗| 九龙城区| 西充县| 武川县| 郑州市| 会泽县| 柯坪县| 贵南县| 横山县| 夏河县| 岚皋县| 苍梧县| 佳木斯市| 吉水县| 昔阳县| 和政县| 米易县| 大埔县| 林西县| 布尔津县| 南康市| 错那县| 武夷山市| 韩城市| 正宁县| 麻栗坡县| 瑞安市| 石楼县| 肇州县| 泰安市|