![](/img/trans.png)
[英]Firebase Cloud Functions - How to call another function and return object
[英]Cloud functions: call a second function when the first has finished
第一個雲功能完成后如何執行第二個雲功能?
我想調用一個新的雲函數,而不是普通的 js 函數,以減少每個函數的執行時間。 我還需要串行執行,而不是並行執行(第二個函數查詢第一個更新的數據)
要解決您的問題,您需要一個協調器。 運行一個管道,調用你的第一個函數,然后調用第二個函數(然后隨便!!)
我的首選是https://cloud.google.com/workflows/docs/overview :無服務器,便宜,非常適合使用 Cloud Functions
或者您可以使用笨重且昂貴的Cloud Composer
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.