Skip to content

degenSumi/distributed_key_value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Key-Value Store

This is a simple distributed key-value store with multiple nodes hosted on Render. Note: Since nodes are hosted on Render’s free tier, there is a 50-second bootup time after inactivity.

Instructions for Starting Your Own Node and Adding It to the Global Network

Follow these steps:

  1. Open the index.js file.
  2. In the add_node function, replace <fill_me> with your public IP address. This will add/sync the node with the distributed key-value store network.
  3. Start the server.

Current Deployed Nodes:

API Endpoints

GET:

Sample Request:

https://distributed-key-value-1.onrender.com/api/get?key=hey

POST:

Sample Request:

curl --location 'https://distributed-key-value.onrender.com/api/put' \
--header 'Content-Type: application/json' \
--data '{
    "hey": "there"
}'

High-Level Design

Distributed Key-Value Store Design


To fully utilize multiple threads, you can use PM2.

About

A distributed key value store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published