https://github.com/anasmirza534/elixir-kv-server
KV distributed server implementation in Elixir
https://github.com/anasmirza534/elixir-kv-server
elixir elixir-lang keyvalue kv
Last synced: 18 days ago
JSON representation
KV distributed server implementation in Elixir
- Host: GitHub
- URL: https://github.com/anasmirza534/elixir-kv-server
- Owner: anasmirza534
- License: mit
- Created: 2026-01-14T00:02:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-14T01:00:03.000Z (5 months ago)
- Last Synced: 2026-01-14T03:51:55.569Z (5 months ago)
- Topics: elixir, elixir-lang, keyvalue, kv
- Language: Elixir
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KV
[](https://github.com/anasmirza534/elixir-kv-server/actions/workflows/elixir.yml)
A distributed key-value store built with Elixir, featuring TCP server interface and pub/sub capabilities for distributed nodes.
## Manual testing for distributed nodes
shell 1
```sh
NODES="foo@anas-mac-mini,bar@anas-mac-mini" PORT=4040 iex --sname foo -S mix
```
shell 2
```sh
NODES="foo@anas-mac-mini,bar@anas-mac-mini" PORT=4041 iex --sname bar -S mix
```
in shell 1
```ex
:erpc.call(:"bar@anas-mac-mini", KV, :create_bucket, ["shopping"])
KV.lookup_bucket("shopping")
```
shell 3
```sh
telnet 127.0.0.1 4040
GET shopping milk
PUT shopping milk 10
```
shell 4
```sh
telnet 127.0.0.1 4041
GET shopping milk
SUBSCRIBE shopping
```
now in shell 3 (in telnet shell)
```sh
PUT shopping egg 12
```
now you will see in shell 4, new message coming in
```sh
output: egg SET TO 12
```