MIT License

项目介绍

charlessolar/TodoMVC-DDD-CQRS-EventSourcing 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 257 个 Star、31 次 Fork。

仓库全名
charlessolar/TodoMVC-DDD-CQRS-EventSourcing
开源许可证
MIT License
Star 数
257
Fork 数
31

README 摘要

Instructions Start Source Code! Being this project has such a small domain context there are only a couple source files which contain real logic. Other files are helpers, extensions, or setup. Important backend files: Domain Command Handler Domain Todo Aggregate Read Model Projector Web Request Handler Domain Handler Tests Event Handler Tests Web frontend from TodoMVC-React What is EventSourcing? EventSourcing is a…

完整内容见 GitHub 原始 README 或本页 。

常见问题

TodoMVC-DDD-CQRS-EventSourcing 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 257 个 Star。

TodoMVC-DDD-CQRS-EventSourcing 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 TodoMVC-DDD-CQRS-EventSourcing 的源码?

可以直接克隆仓库:git clone https://github.com/charlessolar/TodoMVC-DDD-CQRS-EventSourcing.git,默认分支为 master;安装与运行步骤见仓库 README。

TodoMVC-DDD-CQRS-EventSourcing 最近还在维护吗?

仓库最近一次更新为 2023年1月9日,当前没有未关闭的 Issue;Star 数为 257,可作为社区活跃度的参考。

关于

Implementation of basic Todo app via tastejs/todomvc in C#/Typescript with eventsourcing, cqrs, and domain driven design

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

C#
Dockerfile
HTML
JavaScript
Shell

README

Instructions

Start

docker compose build
docker compose up

Source Code!

Being this project has such a small domain context there are only a couple source files which contain real logic. Other files are helpers, extensions, or setup.

Important backend files:

Web frontend from TodoMVC-React

What is EventSourcing?

EventSourcing is a process of representing domain objects (Orders, Invoices, Accounts, etc) as a series of separate events.

Your application ends up being 1 long audit log which records every state-changing event that occurs. The advantage of this approach is other processes can read this event log and generate models that contain only the information the process cares about. There is also additional information available that other services perhaps don’t record themselves.

Imagine a shoppign cart which fills with items to buy. The warehouse only cares about the final order of the stuff the customer actually agreed to purchase -

but the marketing team might care more about the items the customer removed from their cart without buying.

Using eventsourcing correctly you can generate models which contain both sets of information to satisfy both departments with only 1 set of data.

What is CQRS

CQRS stands for Command and Query Responsibility Segregation

In a nut shell - commands are everything that want to change the application state. Queries are anything that want to read application state. There is no overlap

Commands do not return any data other than if they were Accepted or Rejected. Accepted meaning the change was saved and read models will be updated. Rejected meaning the command failed validation or was not valid to be run at this time. (One example would be trying to invoice a sales order which has already been invoiced)

Architecture Overview

Commands Processing

Good reads

EventStore Management

{host}:2113

RabbitMq Management

{host}:15672

评论

暂无评论