簡體   English   中英

Firebase 雲 function:同一個 function(onCall)可以服務多少用戶? 它可以為他們提供多少資源?

[英]Firebase Cloud function: how many users can the same function (onCall) serve? With how many resources can it serve them?

大家好。 我只有一個“onCall” firebase function 但它被所有用戶多次調用。 如文檔所述,每個 function 每秒可以調用 3000 次。 由於我需要 5 秒,那么我每秒可以撥打 600 個電話嗎?

由於我的 function 操作圖像並且需要將它們存儲在服務器(或虛擬機)的 tmp 文件夾中。 我碰巧收到一條錯誤消息,告訴我我已經超出了 function 的允許 memory。 我修復了 function 試圖占用更少的 memory,現在它可以工作了。 My question is this: assuming the memory available for the function is X, and the call requires X / 2 memory, does that mean I can only have two simultaneous function calls (so as not to run out of X memory)?

另外,我不確定這個 X 是多少。 提前致謝。

Cloud Functions 自動擴展和縮減以滿足負載。

在 Cloud Functions 上,只有 function 的單個實例將在單個容器上並行運行。 因此,這確實意味着您的代碼每次運行時都擁有該容器的全部資源。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM