百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

SuperSafeBank

> 数据库
开源

使用 .NET Core 的示例事件源实现

588 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 .NET Core 的示例事件源实现

SuperSafeBank

This repository shows how to implement Event Sourcing, CQRS and DDD in .NET Core, using a Bank as example.

The code has been used as example accompaining a few series of articles on my personal blog:

  • https://www.davidguida.net/event-sourcing-in-net-core-part-1-a-gentle-introduction/
  • https://www.davidguida.net/event-sourcing-on-azure-part-1-architecture-plan/
  • https://www.davidguida.net/event-sourcing-on-azure-part-2-events-persistence/
  • https://www.davidguida.net/event-sourcing-on-azure-part-3-command-validation/
  • https://www.davidguida.net/event-sourcing-on-azure-part-4-integration-events/
  • https://www.davidguida.net/my-event-sourcing-journey-so-far/
  • https://www.davidguida.net/event-sourcing-things-to-consider/

An ASP.NET Core API is used as entry-point for all the client-facing operations:

  • create customers
  • create accounts
  • deposit money
  • withdraw money

Infrastructure

The Cloud can be hosted on Azure, using Azure Functions, Storage Table to persist Events and Materialized Views, and ServiceBus to broadcast the Events.

An "on-premise" version is available as well, which uses

  • Kafka to broadcast the integration events
  • MongoDb to store the QueryModels used by the API or SQLServer can be used as persistence layer for aggregates.
  • several options are available for the Persistence layer to store aggregates:
    • SQLServer
    • EventStore
    • EvenireDB

The on-premise infrastructure can be spin up by simply running docker-compose up from the root folder.

Give a Star! ⭐️

Did you like this project? Give it a star, fork it, send me a PR or sponsor me!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#azureazure-functionsazure-service-buscosmosdb

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库