# Google Cloud Composer

**Google Cloud Composer** 是 Google Cloud 推出的一项全托管工作流编排服务，构建于 [Apache Airflow](https://www.edgepedia.org/zh/apache-airflow) 开源项目之上，让团队能够使用 Python 在混合云和多云环境中编写、调度、监控和管理数据管道。<sup>[1](https://cloud.google.com/blog/topics/developers-practitioners/what-cloud-composer/)</sup> 该服务于 2018 年 5 月 1 日进入公开测试版<sup>[2](https://techcrunch.com/2018/05/01/google-launches-cloud-composer-a-new-workflow-automation-tool-for-developers/)</sup>，并于 2018 年 7 月 19 日正式发布。<sup>[3](https://groups.google.com/g/gcp-release-notes/c/vm53hs0xf6I)</sup> 此后，Google 将该产品更名为 Managed Service for Apache Airflow，但计费 SKU 仍沿用 Cloud Composer 这一名称。<sup>[4](https://cloud.google.com/products/managed-service-for-apache-airflow)</sup><sup> • </sup><sup>[5](https://www.getorchestra.io/blog/airflow-alternatives)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次公开测试版 | 2018 年 5 月 1 日<sup>[2](https://techcrunch.com/2018/05/01/google-launches-cloud-composer-a-new-workflow-automation-tool-for-developers/)</sup> |
| 正式发布 | 2018 年 7 月 19 日<sup>[3](https://groups.google.com/g/gcp-release-notes/c/vm53hs0xf6I)</sup> |
| 基础 | Apache Airflow，由 Google 全托管；工作流以 Python 编写为 DAG 定义文件<sup>[1](https://cloud.google.com/blog/topics/developers-practitioners/what-cloud-composer/)</sup> |
| 目标工作负载 | 数据驱动的批处理工作流，尤其是 ETL/ELT，可容忍任务之间数秒的延迟<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup> |
| 集成 | Airflow Operator 和 Sensor；仅针对 Google Cloud 服务就有超过 150 个 Operator<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup> |
| 任务间数据传递 | 每个 XCom 48 KB<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup> |
| 当前名称 | Managed Service for Apache Airflow（原名 Cloud Composer），预览版支持 Apache Airflow 3<sup>[4](https://cloud.google.com/products/managed-service-for-apache-airflow)</sup> |
| 第三代定价 | 每 DCU-小时 $0.06（含 1 年承诺使用折扣为 $0.054），另加数据库存储每吉比字节小时 $0.000232877<sup>[7](https://cloud.google.com/composer/pricing)</sup><sup> • </sup><sup>[5](https://www.getorchestra.io/blog/airflow-alternatives)</sup> |

## 用途与工作原理

在数据分析中，工作流是一系列用于摄取、转换、分析或使用数据的任务。在 Airflow 中（因而也在 Cloud Composer 中），工作流被定义为有向无环图（DAG）：即按依赖关系组织的任务集合，写在 Python 文件中，指定任务、任务顺序及其错误处理方式。<sup>[1](https://cloud.google.com/blog/topics/developers-practitioners/what-cloud-composer/)</sup> 每个任务几乎可以代表任何事情，例如为数据摄取做准备、监控 API、发送电子邮件或运行管道。<sup>[8](https://cloud.google.com/composer/docs/concepts/overview)</sup>

Cloud Composer 环境是一个基于 Google Kubernetes Engine（GKE）的自包含 Airflow 部署，通过 Airflow 内置的连接器与其他 Google Cloud 服务协同工作。<sup>[8](https://cloud.google.com/composer/docs/concepts/overview)</sup> 创建环境大约需要 25 分钟。<sup>[9](https://docs.cloud.google.com/composer/docs/composer-2/create-environments?hl=en)</sup> 除了按计划运行外，DAG 还可以手动触发，或响应 Cloud Storage 存储桶变更等事件触发。<sup>[8](https://cloud.google.com/composer/docs/concepts/overview)</sup>

由于该服务是全托管的，Google 负责 Airflow 的安装、打补丁和备份，近期版本还支持针对突发执行模式工作负载的自动扩缩容。<sup>[1](https://cloud.google.com/blog/topics/developers-practitioners/what-cloud-composer/)</sup>

## 历史

Google 于 2018 年 5 月 1 日推出首个公开测试版，将该服务定位为团队实现工作流自动化标准化的方式，而非维护临时拼凑的脚本集合，并强调开源 Airflow 基础意味着没有锁定：工作流可以跨本地工具和多个云迁移。<sup>[2](https://techcrunch.com/2018/05/01/google-launches-cloud-composer-a-new-workflow-automation-tool-for-developers/)</sup> 发布时，该服务包括 Google Developer Console 和 SDK、云身份感知代理、Stackdriver 日志记录和监控、身份与访问管理，以及简化的 DAG 管理。<sup>[10](https://devops.com/google-looks-to-simplify-building-of-workflows)</sup>

发布说明记录了 2018 年快速的迭代节奏：Python 3 支持于 2018 年 10 月进入测试版，2019 年 2 月正式发布；多版本 Apache Airflow 支持从测试版（2018 年 10 月）转为正式发布（2019 年 2 月）；2018 年 7 月 19 日的正式发布本身新增了 IAM 角色并改进了 Stackdriver Logging。<sup>[3](https://groups.google.com/g/gcp-release-notes/c/vm53hs0xf6I)</sup> 当时有分析师指出，Cloud Composer 填补了 [Google Cloud Platform](https://www.edgepedia.org/zh/google-cloud-platform) 的一项空白——该平台此前缺乏连接其分析服务的工具，而 AWS 和 [Microsoft Azure](https://www.edgepedia.org/zh/microsoft-azure) 多年来一直提供工作流工具。<sup>[11](https://www.techtarget.com/it-infrastructure/news/252440739/Google-tips-open-source-cloud-tools-so-customers-can-be-free)</sup>

此后，该产品历经了 Google 指南中记录的三代环境（第一代、第二代和第三代），Google 将服务更名为 Managed Service for Apache Airflow，并预览支持 Apache Airflow 3。<sup>[4](https://cloud.google.com/products/managed-service-for-apache-airflow)</sup><sup> • </sup><sup>[8](https://cloud.google.com/composer/docs/concepts/overview)</sup>

## Composer 与 Workflows 的对比

Google 自己的指南将 Cloud Composer 与 Cloud Workflows 区分开来，后者是该平台上的另一种编排选项。Workflows 将基于 HTTP 的服务编排为持久、有状态、无服务器的工作流，执行延迟为毫秒级，按执行步骤计费。Cloud Composer 面向数据驱动的批处理工作流，尤其是 ETL/ELT，此类场景可接受任务执行之间数秒的延迟；其执行延迟以秒计，扩缩容模式为预配置而非无服务器（因此不像 Workflows 那样可以缩容到零），计费基于预配置容量。<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup>

两者在机制上也不同。Workflows 使用 YAML 或 JSON 语法，采用命令式流控制，通过变量在步骤之间传递最多 512 KB 数据；而 Composer 使用声明式 Python DAG，自动解析依赖关系，通过 XCom 在任务之间传递最多 48 KB 数据，并提供 Workflows 所缺乏的数据处理功能，例如回填和重新运行 DAG 的能力。<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup>

## 定价

Managed Service for Apache Airflow（第三代）按数据计算单元（DCU）计费，DCU 是一种抽象计量单位，代表环境在某一时间点预配置的计算资源。在列出的区域中，标准费率为每 DCU-小时 $0.06，含 1 年承诺使用折扣降至 $0.054，含 3 年折扣降至 $0.048；数据库存储按每吉比字节小时 $0.000232877 计费，网络数据传输遵循 VPC 网络费率。环境按实际运行时间计费，因此一个保留 6.5 小时的环境会产生 6.5 小时的费用。<sup>[7](https://cloud.google.com/composer/pricing)</sup> 第三方对比列出了相同的每 DCU-小时 $0.06 价格，并指出更名后计费 SKU 仍保留 Cloud Composer 名称。<sup>[5](https://www.getorchestra.io/blog/airflow-alternatives)</sup>

## 在编排市场中的定位

Cloud Composer 与 AWS 上的 [Amazon MWAA](https://www.edgepedia.org/zh/amazon-mwaa) 以及 Astronomer Astro 等独立托管 Airflow 服务同属托管 Airflow 服务之列，各类对比一致将其定位为 GCP 原生选择，尤其适合大量使用 BigQuery 的团队。<sup>[12](https://tasrieit.com/blog/managed-airflow-services-compared-2026)</sup><sup> • </sup><sup>[5](https://www.getorchestra.io/blog/airflow-alternatives)</sup> 在 Google Cloud 内部，它在服务编排方面与更轻量的无服务器 Workflows 产品竞争，在数据和 AI 管道部署方面与声明式、基于 YAML 的 Orchestration Pipelines 框架竞争。<sup>[6](https://cloud.google.com/workflows/docs/choose-orchestration)</sup><sup> • </sup><sup>[13](https://docs.cloud.google.com/orchestration-pipelines/overview?hl=en)</sup>

## References

1. [What is Cloud Composer? Google Cloud Blog (Priyanka Vergadia and Filip Knapik, September 21, 2021)](https://cloud.google.com/blog/topics/developers-practitioners/what-cloud-composer/)
2. [Google launches Cloud Composer, a new workflow automation tool for developers, TechCrunch (May 1, 2018)](https://techcrunch.com/2018/05/01/google-launches-cloud-composer-a-new-workflow-automation-tool-for-developers/)
3. [Google Cloud Composer Release Notes, Google Groups](https://groups.google.com/g/gcp-release-notes/c/vm53hs0xf6I)
4. [Managed Service for Apache Airflow (formerly Cloud Composer), Google Cloud](https://cloud.google.com/products/managed-service-for-apache-airflow)
5. [The 12 Best Apache Airflow Alternatives in 2026, Orchestra](https://www.getorchestra.io/blog/airflow-alternatives)
6. [Choose Workflows or Cloud Composer for service orchestration, Google Cloud Documentation](https://cloud.google.com/workflows/docs/choose-orchestration)
7. [Managed Service for Apache Airflow pricing, Google Cloud](https://cloud.google.com/composer/pricing)
8. [Managed Airflow overview, Google Cloud Documentation](https://cloud.google.com/composer/docs/concepts/overview)
9. [Create Managed Service for Apache Airflow environments, Google Cloud Documentation](https://docs.cloud.google.com/composer/docs/composer-2/create-environments?hl=en)
10. [Google Looks to Simplify Building of Workflows, DevOps.com (May 3, 2018)](https://devops.com/google-looks-to-simplify-building-of-workflows)
11. [Google tips open source cloud tools so customers can be free, TechTarget (May 8, 2018)](https://www.techtarget.com/it-infrastructure/news/252440739/Google-tips-open-source-cloud-tools-so-customers-can-be-free)
12. [Managed Airflow Services Compared: 6 We Tested in 2026, Tasrie IT Services](https://tasrieit.com/blog/managed-airflow-services-compared-2026)
13. [Orchestration Pipelines overview, Google Cloud Documentation](https://docs.cloud.google.com/orchestration-pipelines/overview?hl=en)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data platforms and frameworks

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/google-cloud-composer

English original: https://www.edgepedia.org/google-cloud-composer
