Simple Todo Backend Application made with Rust and Actix for performance benefits source.
You need to install cargo package available for your system.
Run docker-compose (in background):
docker-compose up -d
Command to populate postgres db:
psql -h 127.0.0.1 -p 5432 -U rust rust < database.sql
cargo run
cargo build --release
Homepage:
ab -n 10000 -k -c 30 -q http://localhost:8080/
Todos page (includes postgres reads):
ab -n 10000 -k -c 30 -q http://localhost:8080/todos
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.