- Microservices Development Cookbook
- Paul Osman
- 271字
- 2021-07-16 17:48:25
Decomposing by business capability
In the early stages of product development, monoliths are the best suited to delivering features to users as quickly and simply as possible. This is appropriate, as at this point in a products development you do not have luxury problems of having to scale your teams, code bases or ability to serve customer traffic. Following good design practices, you separate your applications concerns into easy-to-read, modular code patterns. Doing so allows engineers to work on different sections of the code autonomously and limits the possibility of having to untangle complicated merge conflicts when it comes time to merge your branch into the master and deploy your code.
Microservices require you to go a step further than the good design practices you've already been following in your monolith. To organize your small, autonomous teams around microservices, you should consider first identifying the core business capabilities that your application provides. Business capability is a business school term that describes the various ways your organization produces value. For example, your internal order management is responsible for processing customer orders. If you have a social application that allows users to submit user-generated content such as photos, your photo upload system provides a business capability.
When thinking about system design, business capabilities are closely related to the Single Responsibility Principle (SRP) from object-oriented design (OOD). Microservices are essentially SRP extended to code bases. Thinking about this will help you design appropriately sized microservices. Services should have one primary job and they should do it well. This could be storing and serving images, delivering messages, or creating and authenticating user accounts.
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- 解析QUIC/HTTP3:未來(lái)互聯(lián)網(wǎng)的基石
- INSTANT PhpStorm Starter
- OpenLayers Cookbook
- JBoss EAP6 High Availability
- 通信簡(jiǎn)史:從信鴿到6G+
- 大話社交網(wǎng)絡(luò)
- Learning Swift(Second Edition)
- 6G無(wú)線網(wǎng)絡(luò)空口關(guān)鍵技術(shù)
- 無(wú)線傳感器網(wǎng)絡(luò)定位技術(shù)
- 網(wǎng)絡(luò)空間全球治理觀察
- 物聯(lián)網(wǎng)與智慧農(nóng)業(yè)
- Guide to NoSQL with Azure Cosmos DB
- 小型局域網(wǎng)組建
- NB-IoT原理和優(yōu)化