https://github.com/mopp/brownie
Hobby Distributed Key-Value Store
https://github.com/mopp/brownie
distributed-systems elixir hobby-project kvs
Last synced: 8 months ago
JSON representation
Hobby Distributed Key-Value Store
- Host: GitHub
- URL: https://github.com/mopp/brownie
- Owner: mopp
- Created: 2019-05-04T03:27:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-06T16:08:37.000Z (about 7 years ago)
- Last Synced: 2025-01-20T10:48:55.914Z (over 1 year ago)
- Topics: distributed-systems, elixir, hobby-project, kvs
- Language: Elixir
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brownie
Hobby Distributed Key-Value Store
# Requirements
- elixir
- docker-compose
# How to test
```console
make run
```
On another console:
```console
make attach
iex(one@brownie1.com)> Brownie.Coordinator.request({:create, "abc", "def"})
:ok
iex(one@brownie1.com)> Brownie.Coordinator.request({:read, "abc"})
{:ok, "def"}
iex(one@brownie1.com)> Brownie.Coordinator.request({:update, "abc", "xyz"})
{:ok, "xyz"}
iex(one@brownie1.com)> Brownie.Coordinator.request({:delete, "abc"})
:ok
iex(one@brownie1.com)> Brownie.test false
```