# Deployment

The final step is to deploy the registered feature for execution on your cluster.

### Raw Batch Feature Deployment

* First, deploy the registered raw feature. Refer to [this piece of code](https://github.com/Yugen-ai/gru/blob/995ba59b346ea98429ff54bd5292eb7d52dad70a/gru/examples/create_raw_feature.py#L77-L79).
* Once deployed, you can view the logs on your data-plane Airflow web UI.

![Raw Feature deployment in airflow](/files/xugNo6TAORPn2KovMAyH)

### Derived Batch Feature Deployment

* Next, deploy the derived feature on top of the two deployed raw features. The system will check the successful deployment of the referenced raw features. If both raw features are successfully deployed, the derived feature will proceed; otherwise, it will fail.

![Derived Feature deployment in airflow](/files/ZUdXvBLGJ6Sbt9nil22Y)

### Streaming Feature Deployment

* To Deploy the streaming feature refer to [this piece of code](https://github.com/Yugen-ai/gru/blob/995ba59b346ea98429ff54bd5292eb7d52dad70a/gru/examples/kafka_feature.py#L67-L69).
* You can trace the logs in your dataplane ArgoCD.

![Streaming Feature deployment in argoCD](/files/JhhLQ6pIskljiycIb0P8)

### Notes

* For detailed explanation purposes, feature scripts are divided into multiple parts across several markdown files. However, the standard practice is to create a script containing objects of data sinks, sources, or features, and then register and deploy them all at once.
* There is one way to view the logs: through the UI, with Airflow for batch features and ArgoCD for streaming features. However, you can also view the logs from the terminal using the command `kubectl logs -f <pod-name> -n <namespace>`. The namespace should be the one where the pods running your feature DAGs are located.


---

# 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://docs.canso.ai/guides/deploy-feature.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.
