Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnadales/skid
SImple Key-value store, Impefect, but Distributed
https://github.com/dnadales/skid
Last synced: 15 days ago
JSON representation
SImple Key-value store, Impefect, but Distributed
- Host: GitHub
- URL: https://github.com/dnadales/skid
- Owner: dnadales
- License: bsd-3-clause
- Created: 2018-05-18T06:52:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-18T10:59:13.000Z (over 6 years ago)
- Last Synced: 2024-11-06T09:25:43.927Z (2 months ago)
- Language: Haskell
- Size: 17.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SImple Key-value store, Impefect, but Distributed
An exercise on implementing a distributed key-value store in Haskell.
This project can be built using [`stack`](https://docs.haskellstack.org/en/stable/README/).
To run a node without installing the binaries you can use `stack`:
```haskell
stack exec skid -- -i -p 3023
```The command above will spawn a node on the local-host, on port `3023`, and
start a REPL to interact with the key-value store. The following commands are
supported in this simple REPL:- `peers`: list the known peers.
- `get k`: get the value (if any) associated with the key `k`.
- `put k v`: add the pair `(k, v)` to the map.
- `q` or `quit`: quit the REPL. Note that this won't stop the node. Just use
Ctrl+C for that purpose.To run a node in non-interactive mode omit the flag `-i`.