Coder Social home page Coder Social logo

community-ddd-demo's Introduction

使用DDD实现社区服务系统示例代码

description

本工程用于演示如何使用DDD理论开发业务系统。通过“社区服务系统”典型场景的代码示例,讲解DDD的落地、实现方法等。对应DDD理论,本工程主要由四大块组成:

  • ui —— User Interface.门面层,对外以各种协议提供服务,该层需要明确定义支持的服务协议、契约等
  • application —— 应用服务层,组合domain层的领域对象和基础设施层的公共组件,根据业务需要包装出多变的服务,以适应多变的业务服务需求。
  • domain —— 业务领域层,是我们最应当关心的一层,也是最多变的一层,需要保证这一层是高内聚的。确保所有的业务逻辑都留在这一层,而不会遗漏到其他层。按照ddd(domain driven design)理论,主要有如下概念构成:entity、value object、domain service、factory、domain event、repository
  • infrastructure —— 基础设施层提供公共功能组件,供controller、service、domain层调用。比如:持久化相关组件、httpclent、validation、checkLogint、exceptionHanler、message resource等。

blog

通过业务系统的重构实践DDD

community-ddd-demo's People

Contributors

daoqidelv avatar

Watchers

James Cloos avatar Steven Liu avatar

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.