go-ddd-multi ,是实现ddd的多模块的案例。在业务开发中,会分common、biz1、biz2等;
├── common 公共模块,比如配置的读取,mysql的链接等
├── deploy 部署相关
│ ├── docker-compose 采用docker-compose的方式部署
│ ├── k8s 采用k8s的方式部署
├── system 系统服务,为具体的服务,可以有多个
go DDD 实践
##下面是关于工厂的
或许项目小的时候不用考虑工厂的概念;
不过按照DDD的描述来设计项目的话,工厂的实现也是有必要的;
我之前有看到人家把工厂写在应用层的,也有看到把工厂写到聚合内的;
##下面是关于值对象的
值对象,按照DDD的描述应该放在领域内,而且保持小写,外面不可以访问,但是这里有个问题,我发现你代码里面的应用层下 assembler 和 dto 都要用到各种实体和值对象,这样的话,领域内的实体和值对象不就暴露了嘛?
我也有看到人家把值对象和实体写到基础设施层下面,作为共用的;
总体看下来,这个仓库的代码 有不少地方都可以参考和学习的,为作者点赞。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.