- Mastering Microservices with Java
- Sourabh Sharma
- 447字
- 2021-07-02 13:03:34
Domain-driven design (DDD) fundamentals
An enterprise, or cloud application, solves business problems and other real-world problems. These problems cannot be resolved without knowledge of the particular domain. For example, you cannot provide a software solution for a financial system such as online stock trading if you don't understand stock exchanges and how they function. Therefore, having domain knowledge is a must for solving problems. Now, if you want to offer a solution such as software or an application, you need to have some domain knowledge to design it. Combining the domain and software design is a software design methodology known as DDD.
When we develop software to implement real-world scenarios offering the functionalities needed for a domain, we create a model of that domain. A model is an abstraction, or a blueprint, of the domain.
Designing this model is not rocket science, but it does take a lot of effort, refinement, and input from domain experts. This is the collective job of software designers, domain experts, and developers. They organize information, divide it into smaller parts, group them logically, and create modules. Each module can be taken up individually, and can be divided using a similar approach. This process can be followed until we reach the unit level, or until we cannot divide it any further. A complex project may have more such iterations; similarly, a simple project could have just a single iteration.
Once a model has been defined and well-documented, it can move onto the next stage—code design. So, here, we have a software design—a domain model and code design, and code implementation of the domain model. The domain model provides a high-level view of the architecture of a solution (software/application), and the code implementation gives the domain model a life, as a working model.
DDD makes design and development work together. It provides the ability to develop software continuously, while keeping the design up to date based on feedback received on the development. It solves one of the limitations of the agile and waterfall methodologies, making software maintainable, including its design and code, as well as keeping application minimum viable (minimum viable product—MVP).
Design-driven development involves a developer right from the initial stage, and software designers discuss the domain with domain experts at all meetings during the modeling process. This gives developers the right platform to understand the domain, and provides the opportunity to share early feedback on the domain model implementation. It removes the bottleneck that appears in later stages when stockholders wait for deliverables.
- 多媒體CAI課件設計與制作導論(第二版)
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Flask Web開發入門、進階與實戰
- Apache Spark 2.x for Java Developers
- Swift語言實戰精講
- Python Data Structures and Algorithms
- 好好學Java:從零基礎到項目實戰
- Processing創意編程指南
- 智能手機故障檢測與維修從入門到精通
- Learning Nessus for Penetration Testing
- IBM Cognos TM1 Developer's Certification guide
- Java EE 7 with GlassFish 4 Application Server
- JavaScript悟道
- MySQL數據庫應用實戰教程(慕課版)
- Java高手是怎樣煉成的:原理、方法與實踐