- Microservice Patterns and Best Practices
- Vinicius Feitosa Pacheco
- 247字
- 2021-06-30 19:02:50
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.
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- 計(jì)算機(jī)網(wǎng)絡(luò)原理與應(yīng)用技術(shù)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- C/C++串口通信:典型應(yīng)用實(shí)例編程實(shí)踐
- 網(wǎng)絡(luò)環(huán)境中基于用戶視角的信息質(zhì)量評(píng)價(jià)研究
- 網(wǎng)管工具使用與技巧大全
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- 移動(dòng)物聯(lián)網(wǎng):商業(yè)模式+案例分析+應(yīng)用實(shí)戰(zhàn)
- 物聯(lián)網(wǎng)基礎(chǔ)及應(yīng)用
- Web用戶查詢?nèi)罩就诰蚺c應(yīng)用
- 小型局域網(wǎng)組建
- 智慧城市中的物聯(lián)網(wǎng)技術(shù)
- 移動(dòng)互聯(lián)網(wǎng)環(huán)境下的核心網(wǎng)剖析及演進(jìn)