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

Identifying the fat domains

In many cases, the microservices perform more tasks than they should. Apparently all is well and deployment is simplified, but in fact, the domain is fat. Microservices do not have that name because they are a small application, but because they have a small and simple business domain. When a microservice has limitations in certain fields, it means that the application was initially constructed on a small monolith.

Thinking about our application, the news portal, a good candidate for a microservice is users. It makes perfect sense to build a microservice administering user data. However, usually, in a monolithic application, the layer on the users has a strong connection with AAA (Authentication, Authorization, and Accounting).

When it comes to microservice data, users, and AAA are an undesired coupling. This is mainly because the whole process of AAA is not restricted only to end users, but for clients such as mobile, frontend, and consumer APIs. In this case, the User microservice represents a fat domain.

The division of this fat domain can be held in two parts; the first part is AAAService and the second is UserService. Another approach is the AAA responsibility for a gateway API. The functional scalability and features of implementation with these separate domains is much more interesting for the growth of the product as a whole.

Understanding the size and limits of the domains is clearly critical to the growth and scalability of the final product.

主站蜘蛛池模板: 绥化市| 中西区| 永清县| 泸溪县| 高碑店市| 邹城市| 莱芜市| 古蔺县| 湟中县| 莱西市| 南汇区| 浑源县| 玉溪市| 新闻| 香格里拉县| 象州县| 格尔木市| 二手房| 红原县| 山阳县| 吉安县| 米林县| 丰原市| 云浮市| 五原县| 大悟县| 平定县| 邯郸县| 行唐县| 大安市| 磐安县| 宁城县| 高陵县| 金川县| 山阴县| 思南县| 天长市| 茂名市| 霍林郭勒市| 江孜县| 自贡市|