Skip to content

Simple Todo Backend Application made with Rust and Actix for performance benefits

License

Notifications You must be signed in to change notification settings

pbajno/rust-actix-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Actix & Postgres API

Simple Todo Backend Application made with Rust and Actix for performance benefits source.

Installation

You need to install cargo package available for your system.

Database

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

Usage

Running development version in command line

cargo run

Building for production

cargo build --release

Performance benchmarks

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

Contributing

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.

License

MIT

About

Simple Todo Backend Application made with Rust and Actix for performance benefits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages