Simple Authentication Web Service for Performance Comparisons
This project was written to enable performance comparisons for a micro-service 'simple-auth' written in akka-http, ZIO and Actix-web (rust). The results were presented on Friday 21st at ZIOWorld conference.
The main performance results are summarized in this image; the full presentation is available in the /docs directory.
Start postgres database called db
on port 5435 in docker container postgres-simple-auth
:
cd db
./run_db.sh
cd akka-http
sbt run
cd akka-http
./rebuild-img.sh
cd zio
sbt run
cd zio
./rebuild-img.sh
(change .env values)
cd actix-web
cargo run
<or>
cargo run --release
cd actix-web
docker-compose up
(change .env values)
curl https://localhost:8781/token -X POST -d '{"username":"[email protected]","password":"TopSecret0!"}' -H 'Content-Type: application/json'
wrk -s post-token.lua -d60 -t50 -c50 https://localhost:8781/token