Skip to content
/ gddd Public

go ddd, 一个追求极致开发效率的 DDD 框架

License

Notifications You must be signed in to change notification settings

wuyazi/gddd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
xiandong
Jun 23, 2023
4b2e5fe · Jun 23, 2023

History

21 Commits
May 19, 2023
Sep 26, 2022
Jul 5, 2022
Jul 12, 2022
Sep 26, 2022
Apr 21, 2023
Jul 5, 2022
Jul 5, 2022
Jul 5, 2022
Sep 26, 2022
Apr 21, 2023
May 4, 2023
Jun 23, 2023
May 17, 2023
Jul 5, 2022
Oct 17, 2022
Jul 5, 2022
Jul 5, 2022
Mar 23, 2023
Jul 5, 2022
May 19, 2023
May 19, 2023
May 17, 2023
Jul 5, 2022
Jun 13, 2023

Repository files navigation

执行顺序

|              Command              |
|       Repository      | Aggregate |
|            | EventBus |
|       EventStore      |

Command(命令)

命令

Aggregate(聚合)

用于描述业务,并产生事件 定义实体,和事件,所有实体更改只能通过事件

Repository(仓库)

用于存储数据的接口

EventBus(事件总线)

用于传输事件

EventStore(事件存储)

用于存储事件,并可回溯(EventSourcing)

TODO

  • 事件消费
  • 事件归档:将每日的事件归档
  • 历史事件溯源
  • go-zero 适配
  • 唯一索引:创建用户时,邮箱唯一
  • 文档

About

go ddd, 一个追求极致开发效率的 DDD 框架

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages