# Stream DSL

## 8. Stream DSL

本节介绍 Stream DSL 简介中未介绍的  [Stream DSL introduction](https://docs.spring.io/spring-cloud-dataflow/docs/2.1.0.RELEASE/reference/htmlsingle/#spring-cloud-dataflow-stream-intro-dsl) 的其他功能。

### 8.1. Tap a Stream

可以在 Stream 中的不同生产者处创建 Tap（用户点击事件收集）。有关更多信息，请参见 [Tapping a Stream](https://dataflow.spring.io/docs/feature-guides/streams/taps/)。

### 8.2. Using Labels in a Stream

当一个 Stream 由多个同名的 Applications 组成时，必须使用标签对它们进行限定。有关详细信息，请参阅   [Labeling Applications](https://dataflow.spring.io/docs/feature-guides/streams/labels/) 。

### 8.3. Named Destinations

您可以使用指定的 Destinations ，而不是引用source 或 sink Application,。有关详细信息，请参阅 [Named Destinations](https://dataflow.spring.io/docs/feature-guides/streams/named-destinations/) 。

### 8.4. Fan-in and Fan-out

通过使用命名目标，您可以支持Fan-in and Fan-out 用例。有关详细信息，请参阅 [Fan-in and Fan-out](https://dataflow.spring.io/docs/feature-guides/streams/fanin-fanout/) 。


---

# 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://cxz.gitbook.io/spring-cloud-date-flow/streams/stream-dsl.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.
