3.7 KiB
What is EchoVault?
EchoVault is a highly configurable, distributed, in-memory data store and cache implemented in Go. EchoVault aims to provide a rich set of data structures and functions for manipulating data in memory. These data structures include, but are not limited to: Lists, Sets, Sorted Sets, Hashes, and much more to come soon.
EchoVault provides a persistence layer for increased reliability. Both Append-Only files and snapshots can be used to persist data in the disk for recovery in case of unexpected shutdowns.
Replication is a core feature of EchoVault and is implemented using the RAFT algorithm, allowing you to create a fault-tolerant cluster of EchoVault nodes to improve reliability. If you do not need a replication cluster, you can always run EchoVault in standalone mode and have a fully capable single node.
EchoVault aims to not only be a server but to be importable to existing projects to enhance them with EchoVault features, this capability is always being worked on and improved.
Features
Some key features offered by EchoVault include:
- TLS and mTLS support with support for multiple server and client RootCAs
- Replication clustering using RAFT algorithm
- ACL Layer for user Authentication and Authorization
- Distributed Pub/Sub functionality with consumer groups
- Sets, Sorted Sets, Hashes
- Persistence layer with Snapshots and Append-Only files
We are working hard to add more features to EchoVault to make it much more powerful. Features in the roadmap include:
- Eviction Policies to reduce memory footprint
- Encryption for Snapshot and AOF files
- Streams
- Transactions
- Bitmap
- HyperLogLog
- JSON
- Improved Observability
Installing
Homebrew
To install via homebrew, run:
brew tap echovault/echovaultbrew install echovault/echovault/echovault
Once installed, you can run the server with the following command:
echovault --bind-addr=localhost --data-dir="path/to/persistence/directory"
Next, install the client via homebrew.
Binaries
You can download the binaries by clicking on a release tag and downloading the binary for your system.
Configuration
Checkout the configuration wiki page for the possible configuration flags
Clients
EchoVault uses RESP, which makes it compatible with existing Redis clients.
Development Setup
Pre-requisites:
- Go
- Docker
- Docker Compose
- x86_64-linux-musl-gcc cross-compile toolchain as the development image is built for an Alpine container
Steps:
- Clone the repository.
- If you're on MacOS, you can run
make build && docker-compose up --buildto build the project and spin up the development docker container. - If you're on another OS, you will have to use
go buildwith the relevant flags for your system.
Contribution
Contributions are welcome! If you're interested in contributing, feel free to clone the repository and submit a Pull Request.
Join the Discord server if you'd like to discuss your contribution and/or be a part of the community.