Crates.io | tokio-cqrs-es2-store |
lib.rs | tokio-cqrs-es2-store |
version | 0.3.0 |
source | src |
created_at | 2021-08-30 04:01:43.14614 |
updated_at | 2021-09-22 23:59:04.261663 |
description | Async implementation of the cqrs-es2 store. |
homepage | |
repository | https://github.com/brgirgis/tokio-cqrs-es2-store |
max_upload_size | |
id | 443997 |
size | 192,902 |
Async implementation of the cqrs-es2 store.
Provides async interfaces to different database implementations for the CQRS system store.
The main components of this library are:
IEventDispatcher
- an interface for async events listenersIEventStore
- an interface for async event storesIQueryStore
- an interface for async query storeswith-postgres
- async Postgres storewith-mysql
- async MySQL storewith-sqlite
- async SQLite storewith-all-sql
- all SQL driverswith-mongodb
- async MongoDB storewith-all-doc-db
- all doc DBs driverswith-redis
- async Redis storewith-all-kv-db
- all key-value DBs driverswith-all-async
- all async drivers (default)To use this library in an async application, add the following to
your dependency section in the project's Cargo.toml
:
[dependencies]
# logging
log = { version = "^0.4", features = [
"max_level_debug",
"release_max_level_warn",
] }
fern = "^0.5"
# serialization
serde = { version = "^1.0.127", features = ["derive"] }
serde_json = "^1.0.66"
async-trait = "^0.1"
# CQRS framework
cqrs-es2 = { version = "*"}
# Sync postgres store implementation
tokio-cqrs-es2-store = { version = "*", default-features = false, features = [
"with-postgres",
] }
# sqlx
sqlx = { version = "0.5.6", features = [
# tokio + rustls
"runtime-tokio-rustls",
# PostgresSQL
"postgres",
"uuid",
"json",
# misc
"macros",
"chrono",
"tls",
] }
tokio = { version = "1", features = [
"rt-multi-thread",
"time",
"fs",
"macros",
"net",
] }
Full async store example applications:
A complete history of the change log can be found here
An up-to-date list of development aspirations can be found here