# Section IV - starting the service

We are now ready to start the RESTful service that will listen for data that needs to be sourced and feeds it to the event flow.

&#x20;There are 2 ways to start the service.

1. Running using `cargo run` command while developing (local service testing)

> NOTE: we provide the argument `--bin myapp_sourcing` because there are now multiple executables and must specify which one to run.

```
ArchConfWorkshopUser:~/environment/rust-daas (master) $ cargo run --bin myapp_sourcing
   Compiling rust-daas v0.1.0 (/home/ec2-user/environment/rust-daas)
    Finished dev [unoptimized + debuginfo] target(s) in 11.71s
     Running `target/debug/myapp_sourcing`
```

To stop the service, use `ctrl` + `c`.

&#x20;  2\. Running using the executable.

```
ArchConfWorkshopUser:~/environment/rust-daas (master) $ cargo build
   Compiling rust-daas v0.1.0 (/home/ec2-user/environment/rust-daas)
    Finished dev [unoptimized + debuginfo] target(s) in 7.23s
```

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.

```
ArchConfWorkshopUser:~/environment/rust-daas (master) $ ./target/debug/myapp_sourcing 
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://davidsietz.gitbook.io/daas-workshop/module-04/section-iv-starting-the-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
