Key-Value server in Go, JSON file disk persistence, non-blocking concurrent operations
You'll need to install:
Using go:
go run . -releaseSend a key-value pair {"1":"1"}:
curl -s -X POST http://localhost:8080/key/1 -d "1"Retrieve the value for key /key/1:
curl -s http://localhost:8080/key/1Delete the value for key /key/1:
curl -X DELETE -s http://localhost:8080/key/1Using go:
go buildUsing go:
go test Using K6
k6 run --vus 200 ./testdata/k6_get_loadtest.js --duration 60s
k6 run --vus 200 ./testdata/k6_post_loadtest.js --duration 60s
k6 run --vus 200 ./testdata/k6_delete_loadtest.js --duration 60s