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

eventsourcing-java-example

> DevOps
开源

银行领域事件源实现的一个简化(在内存中)示例。

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

银行领域事件源实现的一个简化(在内存中)示例。

Event sourcing example in Java

A simplified (in memory) example of Event Sourcing implementation in Java for banking domain. Repository is splitted into exercises adding step by step more functionality towards good design of event sourcing with CQRS. You can play around and try to implement exercises or You can check out solution branches.

Step 1 - In memory iplementation of event sourcing

  • Provide simple in-memory implementation of Event Store
  • Make all test passing using event sourcing

soultion

  • branch exercise_1_solution

Step 1a (optional) - Unit of work pattern

  • Implement Unit of Work pattern where events are stored outside of aggregate

soultion

  • WIP

Step 1b (optional) - Projections

  • Implement Projections on Account to get number of transactions performed on account
  • eventStore.store() method shoud accept Event playload instead of domain Events
  • what should be api of eventStream()?

soultion

  • WIP

Step 2 (optional) - Optimistic locking

  • add optimistic locking

soultion

  • WIP

Step 3 - new Aggregate extraction

  • Refactor to move all money transfer related stuff to separate aggregate
  • New aggregate will be also using Event Store

soultion

  • WIP

Step 4 - adding CQRS

  • Apply CQRS rule and separate the command and reading side
  • Solution will use Eventual Consistency approach

soultion

  • WIP

Step 5

  • Provide additional (not transient) implementation of Event Store. (https://geteventstore.com/)

soultion

  • WIP

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Javadddddd-sampleevent-sourcing

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理