简体   繁体   English

GCP 云作曲家和工作流有什么区别?

[英]What is the difference between GCP cloud composer and workflow?

The cloud workflow doesn't come with a scheduling feature.云工作流不附带调度功能。 Apart from that, what are all the differences between these two services in terms of features?除此之外,这两种服务在功能方面有什么区别? In which use case should we prefer the workflow over composer or vice versa?在哪个用例中,我们应该更喜欢工作流程而不是作曲家,反之亦然?

There are some key differences to consider when choosing between the two solutions:在两种解决方案之间进行选择时,需要考虑一些关键差异:

A Composer instance needs to be in a running state to trigger DAGs and you'll also need to size your Cloud Composer instance based on your usage, You do not need to do this in Cloud Workflows as it is a Serverless service and you pay for anytime a workflow is triggered Composer 实例需要在运行的 state 中才能触发 DAG,您还需要根据使用情况调整 Cloud Composer 实例的大小,您不需要在 Cloud Workflows 中执行此操作,因为它是一项无服务器服务并且您需要付费任何时候触发工作流

Another key difference is that Cloud Composer is really convenient for writing and orchestrating data pipelines because of it's internal scheduler and also because of the provided Operators, You can interact with any Data services inside of GCP.另一个关键区别是 Cloud Composer 非常方便编写和编排数据管道,因为它是内部调度程序,还因为提供了 Operator,您可以与 GCP 内部的任何数据服务进行交互。
However, Cloud Workflows interacts with Cloud Functions, wich is a task that Composer cannot do really well.但是,Cloud Workflows 与 Cloud Functions 交互,这是 Composer 无法完成的任务。

Both Composer and Workflows support orchestrating multiple services and can handle long running workflows. Composer 和 Workflows 都支持编排多个服务,并且可以处理长时间运行的工作流。 Despite there being some overlap in the capabilities of these products, each has differentiators that make them well suited to particular use cases.尽管这些产品的功能存在一些重叠,但每个产品都有差异化,使它们非常适合特定的用例。

Composer is most commonly used for orchestrating the transformation of data as part of ELT or data engineering . Composer 最常用于编排数据转换,作为ELT 或数据工程的一部分。 Workflows, in contrast, is focused on the orchestration of HTTP-based services built with Cloud Functions, Cloud Run, or external APIs.相比之下,工作流专注于编排使用 Cloud Functions、Cloud Run 或外部 API 构建的基于 HTTP 的服务

Composer is designed for orchestrating batch workloads that can handle a delay of a few seconds between task executions. Composer 设计用于编排批处理工作负载,可以处理任务执行之间的几秒钟延迟 It wouldn't be suitable if low latency was required in between tasks, whereas Workflows is designed for latency sensitive use cases.如果任务之间需要低延迟,则它不适合,而 Workflows 专为延迟敏感的用例而设计。

While you don't have to worry about maintaining Airflow deployments in Composer, you do need to specify how many workers you need for a given Composer environment.虽然您不必担心在 Composer 中维护 Airflow 部署,但您确实需要指定给定 Composer 环境需要多少工作人员。 Workflows is completely serverless;工作流是完全无服务器的; there is no infrastructure to manage or scale.没有需要管理或扩展的基础设施。

For further information refer to this google blog article and this one .有关详细信息,请参阅谷歌博客文章和这篇文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GCP 云作曲家 PythonOperator 挂起 - GCP cloud composer PythonOperator hanging Cloud Build 和 Cloud Deploy 有什么区别? - What is the difference between Cloud Build and Cloud Deploy? GCP 中的服务帐户和服务代理有什么区别 - What is the difference between service account and service agent in GCP Google Cloud Dataflow 和 Google Cloud Dataproc 有什么区别? - What is the difference between Google Cloud Dataflow and Google Cloud Dataproc? GCP Cloud Composer:将 Dag 的状态从 Apache Airflow 审计到 BigQuery - GCP Cloud Composer : Audit the status of the Dags from Apache Airflow into BigQuery Cloud Firestore 和 Firebase 实时数据库有什么区别? - What's the difference between Cloud Firestore and the Firebase Realtime Database? 如何在本地安装与在 GCP 上的 Cloud Composer Airflow 环境中安装的相同的 pip 依赖项? - How do I install the same pip dependencies locally as are installed in my Cloud Composer Airflow environment on GCP? 从 BigQuery 查询和使用 Cloud Storage 的结果加载文件之间的费用差异是多少? - What is the cost difference between querying from BigQuery and loading a file with the results from Cloud Storage? 调用 GCP Cloud Scheduler 创建作业所需的所有权限 - What all the PERMISSION required to call GCP Cloud Scheduler Create Job Vertex AI GCP 中特征存储和数据集的区别 - Difference between Feature Store and Datasets in Vertex AI GCP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM