Cache service example. It uses fasthttp as an http server and bigcache as the cache.
External benchmarks are provided.
go run main.go
Server listens on 8080 port.
To cache an entry PUT /cache/{key}
request with value in body needs to be send. To read it, GET /cache/{key}
.
Wrk2 is used here as benchmark tool. Therefore it needs to be installed in the first place. After it's done, below tests can be run.
./wrk -t1 -c100 -d10m -R5000 --latency -s putEntries.lua http://localhost:8080
Test configuration can be adjusted.
./wrk -t1 -c100 -d10m -R5000 --latency -s getRandomEntries.lua http://localhost:8080
Test configuration can be adjusted.
Results with latency distribution can be visualized on this site