Skip to content

dddplus/dddplus-demo

Repository files navigation

Archived

Please visit new demo.

Demo of DDDplus

演示如何使用DDDplus实现一套订单履约中台OMS

Requirement DDDplus version

OMS业务入门

目录

Terms explained

  • bp
    • Business Partner
    • 业务前台
  • cp
    • Central Platform
    • 中台
  • isv
    • Independent Software Vendors
  • ka
    • Key Account
    • 关键客户
  • oc
    • Order Center
    • 订单中心

如何运行该演示

git clone https://github.com/dddplus/dddplus-demo.git
cd dddplus-demo
mvn package
java -jar order-center-cp/cp-oc-main/target/dddplus-demo.jar
#java -jar order-center-cp/cp-oc-main/target/dddplus-demo.jar 9090 plugin

# in another terminal
curl -XPOST http://localhost:9090/order             # submit an order
curl -XPOST http://localhost:9090/reload?plugin=isv # plugin hot reloading

演示代码入口

代码快速入门

代码结构

依赖关系

订单履约中台,通过spec jar为业务前台赋能,输出中台标准,并提供扩展机制。

订单履约中台本身的个性化业务,即个性化的业务模式包。

订单履约中台的多个业务前台

KA,关键客户的个性化业务通过扩展点的实现完成。

ISV,独立软件开发商的个性化业务通过扩展点的实现完成。

Fresh,生鲜业务前台的个性化业务通过扩展点的实现完成。

这个业务BP,被中台要求不能使用Spring框架开发,不能在业务扩展包里使用AOP等Spring机制,只能严格实现中台定义的扩展点。

为了演示,ISV和KA这2个业务前台BP在开发业务扩展包时,可以使用Spring框架。

支撑域

如何快速搭建中台工程骨架

使用 dddplus-archetype,可以快速搭建中台的工程骨架。