January 2019
Intermediate to advanced
520 pages
14h 32m
English
Let's build and run the server and worker of the application. You should start a container with a RabbitMQ instance, as we did in this chapter in the Bootstrap message broker for testing section. Then, use cargo build to build all the parts.
When compilation has finished, start a server instance:
RUST_LOG=rabbit_actix_server=debug ./target/debug/rabbit-actix-server
Also, start a worker instance with the following command:
RUST_LOG=rabbit_actix_worker=debug ./target/debug/rabbit-actix-worker
When both parts have started, you can explore RabbitMQ with the rabbitmqctl command and explore your queues:
docker exec -it test-rabbit rabbitmqctl list_queues
It prints both the queues that were created by the actors:
Timeout: 60.0 seconds ... ...
Read now
Unlock full access