Workflows 是一項 Google Cloud 產品,可用於建立無伺服器工作流程,並按照您定義的順序,將一系列無伺服器工作串連在一起。結合 Google CloudAPI、Cloud Run functions 和 Cloud Run 等無伺服器產品的功能,並呼叫外部 API,即可建立彈性的無伺服器應用程式。
用途範例
自動處理低延遲的配送作業
舉例來說,下方的架構會實作工作流程,根據庫存量檢查是否可執行出貨作業。如果庫存量充足,就會要求配送。否則就使用供應商的公用 API 要求補貨。無論是哪一種情況,工作流程都會立即回覆呼叫者,告知是否接受該筆配送交易。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Firestore connector for Workflows\n=================================\n\n[Workflows](/workflows/docs/overview) is a Google Cloud product you can use to create serverless workflows that link series of serverless tasks together in an order you define. Combine functionality from Google Cloud's APIs, serverless products like Cloud Run functions and Cloud Run, and calls to external APIs to create flexible serverless applications.\n\n\u003cbr /\u003e\n\nExample use case\n----------------\n\n**Automating low-latency shipment processing**\n\nFor example, the architecture below implements a workflow that checks whether a\nshipment can be executed based on inventory levels. It requests the shipment if\nthe stock levels are sufficient. Otherwise, it requests replenishment from a supplier using\ntheir public API. In either case, the workflow immediately responds to\nthe caller about whether the shipment transaction will be accepted.\n\nFirestore connector for Workflows\n---------------------------------\n\nWorkflows supports a connector for Firestore.\nUse the connector to integrate Firestore into your workflows:\n\n- [Learn more about connectors.](/workflows/docs/connectors)\n- [See a sample workflow that uses Firestore.](/workflows/docs/reference/googleapis/firestore/Overview)\n\nWhat's next\n-----------\n\n- [See the Workflows quickstarts.](/workflows/docs/quickstarts)"]]