January 2019
Intermediate to advanced
520 pages
14h 32m
English
Build and run the code using the cargo run subcommand. When the server starts use the curl command to send POST request with an image. You can find example of parameters for this preceding command.
For example, I requested the root path five times with a browser and sent a resizing request once. It stored resized message to the files folder. Yeah, it works! Now we can check that the logging actor adds records to syslog. Use this command to print logs:
journalctl
You can find the following records:
Jan 11 19:48:53 localhost.localdomain rust-microservice[21466]: total requests for '/' = 1Jan 11 19:48:55 localhost.localdomain rust-microservice[21466]: total requests for '/' = 2Jan 11 19:48:55 localhost.localdomain rust-microservice[21466]: ...
Read now
Unlock full access