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

Identifying microservice domains for the business

This is the time to understand the business domain that will be developed in the book. The domains are contained in our monolithic application. Let's recap how it is composed. Our monolithic Django is organized into three Django apps that are as follows:

  • News
  • Recommendations
  • Users

It is important to understand that in this context, because of how Django is designed, Users and AAA are coupled, and we have seen that this is not good when it comes to microservices.

Another point is that news will not necessarily result in a single microservice; we can create microservices-varied news with the type of news. This would facilitate the targeting of APIs  and scalability for each different type of news content. On our portal, we have sports, politics, and celebrity news. If a new theme is developed, a new News microservice will be created for this theme. This approach enables something like z-axis scalability for that part of the application.

At first, our domains will be divided into the following categories:

  • SportNewsService
  • PoliticsNewsService
  • FamousNewsService
  • RecomendationService
  • UsersService
  • AAAService (Optional)

Of course, new fields can be added and others can be removed; limiting the view of this microservice is our big target.

主站蜘蛛池模板: 大宁县| 靖宇县| 涡阳县| 东乡族自治县| 万年县| 府谷县| 长子县| 宽城| 曲靖市| 慈溪市| 永清县| 平武县| 进贤县| 庐江县| 什邡市| 潞城市| 嘉荫县| 会东县| 德安县| 天峻县| 赞皇县| 齐河县| 龙口市| 信阳市| 泸定县| 凉城县| 赣榆县| 佛冈县| 龙州县| 偏关县| 六盘水市| 城市| 凤凰县| 社旗县| 桃园市| 象山县| 姜堰市| 札达县| 曲阜市| 莎车县| 中西区|