Skip to content

idarlington/complex

Repository files navigation

Complex

Why make it simple when it can be complex ... 10x dev

This project creates a distributed key-value store using various akka clustering technologies. An akka http server is used as the interface to the key-store which is stored on the cluster.

Currently, key-value stores have been created with

Running the application

All implementations can be started in the same way:

  • start the seed nodes
  • start the http server

Starting the seed nodes

Cluster Sharding

sbt clusterSharding/runMain com.idarlington.clusterSharding.NodeApp 2551 2552

Distributed Data

sbt distributedData/runMain com.idarlington.distributedData.NodeApp 2551 2552

Start the http server

Cluster Sharding

sbt clusterSharding/runMain com.idarlington.clusterSharding.ComplexApp

Distributed Data

sbt distributedData/runMain
com.idarlington.distributedData.ComplexApp

Using the key value store

Posting values

curl -d '{"key": "country", "value": "Nigeria"}' -H "Content-type: application/json" -X POST http://localhost:8080/store

Accessing stored values by key

curl http://localhost:8080/store/country

Releases

No releases published

Packages

No packages published

Languages