Code Monkey home page Code Monkey logo

igo-ddd's Introduction

go-ddd-multi

介绍

go-ddd-multi ,是实现ddd的多模块的案例。在业务开发中,会分common、biz1、biz2等;

├── common 公共模块,比如配置的读取,mysql的链接等
├── deploy 部署相关
│   ├── docker-compose 采用docker-compose的方式部署
│   ├── k8s 采用k8s的方式部署
├── system 系统服务,为具体的服务,可以有多个

igo-ddd's People

Contributors

jettjia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

igo-ddd's Issues

领域层的代码概念很赞,只是没有看到 factory 的概念,关于值对象我有点疑问

##下面是关于工厂的
或许项目小的时候不用考虑工厂的概念;
不过按照DDD的描述来设计项目的话,工厂的实现也是有必要的;
我之前有看到人家把工厂写在应用层的,也有看到把工厂写到聚合内的;

##下面是关于值对象的
值对象,按照DDD的描述应该放在领域内,而且保持小写,外面不可以访问,但是这里有个问题,我发现你代码里面的应用层下 assembler 和 dto 都要用到各种实体和值对象,这样的话,领域内的实体和值对象不就暴露了嘛?
我也有看到人家把值对象和实体写到基础设施层下面,作为共用的;

总体看下来,这个仓库的代码 有不少地方都可以参考和学习的,为作者点赞。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.