Event-Sourced autonomous services for rust. An implementation of Eventide using Message DB.
WARNING: this project is in active development and not yet functional.
It is expected that you have a MESSAGE_STORE_URL
environment variable. If you do not want to set this globally, https://direnv.net/ can be useful for setting things like this per project.
A convenience script is included for quickly setting up and running message-db with docker. ./scripts/provision-db.sh
. Re-running this script will remove the previous container, so it can be used to "reset" back to an empty state. The name of the container is evt-pg
. So after running once, you can stop it with docker stop evt-pg
and start it again with docker start evt-pg
.
If you use the docker image, this is the connection string: export MESSAGE_STORE_URL="postgres://message_store:message_store@localhost:5432"
envlogger
is used in development, which somewhat matches the features of the eventide ruby logger. See documentation on how to control output via RUST_LOG
.