# Dataflow

Sedai recommends optimizations for Dataflow resources to improve both cost and resource efficiency. Recommendations for Dataflow could include adjustments to any of the following:

* **CPU Allocation**: Sedai adjusts CPU allocation to ensure your data processing tasks run smoothly without unnecessary over-provisioning.
* **Memory Allocation**: Sedai adjusts memory allocation to match the specific requirements of your data processing workloads, minimizing both underutilization and overallocation
* **Initial Worker Count:** Sedai analyzes your workloads and sets the initial worker count to ensure your data processing tasks start efficiently and avoid resource wastage
* **Max Worker Count**: Sedai defines an appropriate maximum worker count to scale your resources as needed, ensuring that you never pay for more resources than required, especially during peak workloads
* **Machine Type**: Sedai determines the appropriate machine type based on recommended CPU and Memory configuration changes.

{% hint style="info" %}
To view optimization opportunities for Dataflow, go to Optimization > Opportunities and select the Streaming tab.
{% endhint %}


---

# 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.sedai.io/get-started/platform/optimization/gcp/dataflow.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.
