# 简介

本节将更详细地介绍如何创建 Streams ，这些 Streams 是  [Spring Cloud Stream](https://cloud.spring.io/spring-cloud-stream/) 应用程序的集合。涵盖的主题包括创建和部署 Streams 等。

如果您刚刚开始使用 Spring Cloud Data Flow ，那么在开始阅读本节之前，您可能应该先阅读 [入门指南](https://docs.spring.io/spring-cloud-dataflow/docs/2.1.0.RELEASE/reference/htmlsingle/#getting-started) 。

Stream 是long-lived（长期存在）的多个 [Spring Cloud Stream](https://cloud.spring.io/spring-cloud-stream/) applications的集合，它们通过消息中间件相互通信。通过 text-based DSL （文本形式的DSL）定义了应用程序之间的配置和数据流。虽然为您提供了许多各种情况下的 applications 的例子，但是您还是需要创建定制的 Spring Cloud Stream applications来实现定制的业务逻辑。

Stream的一般生命周期是：

1. 注册 applications。
2. 创建 Stream 定义。
3. 部署 Stream。
4. 取消部署或销毁 Stream。
5. 升级或回滚 Stream 中的 applications。

要部署 Stream，必须配置 Data Flow Server 服务，将部署委托给 Spring Cloud 生态系统中名为 [Skipper](https://cloud.spring.io/spring-cloud-skipper/) 的新服务。

此外，您还可以配置Skipper将applications部署到一个或多个 Cloud Foundry 的组织和空间、Kubernetes集群上的一个或多个名称空间，或本地机器。在数据流中部署流时，可以指定在部署时使用哪个平台。

Skipper 还为 Data Flow 提供了对已部署 Stream 执行更新的能力。更新 Stream 中的 applications 的方法有很多，但最常见的例子之一是使用新的自定义业务逻辑升级 applications ，而不使用现有的source 和 sink applications 。


---

# 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/jian-jie.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.
