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

eventually-rs

> DevOps
开源

Rust 的事件源

596 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Rust 的事件源

Collection of traits and other utilities to help you build your Event-sourced applications in Rust.

Installation

⚠️ v0.5.0 is under active development: Breaking changes are expected. If you are using eventually as a git dependency you should use a pinned version!

Add eventually into your project dependencies:

toml
[dependencies]
eventually = { version = "0.5.0", features = ["full"], git = "https://github.com/get-eventually/eventually-rs" }

Note on semantic versioning

This library is actively being developed, and prior to v1 release the following Semantic versioning is being adopted:

  • Breaking changes are tagged with a new MINOR release
  • New features, patches and documentation are tagged with a new PATCH release

What is Event Sourcing?

Before diving into the crate's internals, you may be wondering what Event Sourcing is.

From eventstore.com introduction:

Event Sourcing is an architectural pattern that is gaining popularity as a method for building modern systems. Unlike traditional databases which only store and update the current state of data, event-sourced systems store all changes as an immutable series of events in the order that they occurred and current state is derived from that event log.

How does eventually-rs support Event Sourcing?

eventually exposes all the necessary abstraction to model your Domain Entities (in lingo, Aggregates) using Domain Events, and to save these Events using an Event Store (the append-only event log).

For more information, check out the crate documentation.

You can also take a look at the bank-accounting example, showcasing Event-sourced application for a generic (and simple) Bank Accounting bounded context.

Event Store backends

eventually-rs provides the necessary abstractions for modeling and interacting with an Event Store.

These are the following officially-supported backend implementations:

  • eventually::event::store::InMemory: simple inmemory Event Store implementation, using std::collections::HashMap,
  • eventually-postgres: Event Store and Aggregate Root Repository implementations for PostgreSQL databases.

Contributing

You want to contribute to eventually-rs but you don't know where to start?

First of all, thank you for considering contributing ❤️

You can head over our CONTRIBUTING section to know how to contribute to the project, and — in case you don't have a clear idea what to contribute — what is most needed needed from contributors.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in eventually-rs by you, shall be licensed as MIT, without any additional terms or conditions.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Rustaggregatecqrsdddevent-sourcing

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

> 工具信息

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

> 相关工具

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