Section IV - starting the service
We are now ready to start the microservice that will listen for data on the genesis
topic and stash it in the S3 bucket, then send it downstream to the next topic which is dynamically built based on the metadata of the DaaSDocument.
There are 2 ways to start the service.
Running using
cargo run
command while developing (local service testing)
IMPORTANT: Run the executable in a new terminal so that you can have the sourcing and the genesis services running in parallel.
NOTE: we provide the argument
--bin myapp_genesis
because there are now multiple executables and must specify which one to run.
To stop the service, use ctrl
+ c
.
2. Running using the executable.
Whenever you use the cargo build
command, it places the created executable in the target/debug directory with the same name that was defined in the Cargo.toml
manifest.
Since it is an executable, simple run the executable from the command terminal.
Last updated
Was this helpful?