[英]GCP Cloud Functions - Stateful Saving
I have GCP
Math FaaS
s, as well as an intermediary Proxy
FaaS.我有
GCP
Math FaaS
以及中间Proxy
FaaS。
I would like the Proxy to save the answer to a database
, containing an ID and Value.我希望代理将答案保存到包含 ID 和值的
database
中。
I understand Cloud
functions are supposedly Stateless
.我了解
Cloud
函数应该是Stateless
。 How do I go about this?我该如何 go 关于这个?
Update: I am following along with this https://cloud.google.com/sql/docs/mysql/connect-functions更新:我正在关注这个https://cloud.google.com/sql/docs/mysql/connect-functions
Will let you know how it goes会告诉你这件事的进展的
You can use statefull services: Cloud SQL or Datastore/Firestore.您可以使用 statefull 服务:Cloud SQL 或 Datastore/Firestore。
All depends the number of read/write and the query complexity that you want to achieve.一切都取决于您想要实现的读/写次数和查询复杂性。 Have a close look to the pricing and to the query limitation of Firestore and Datastore.
仔细查看 Firestore 和 Datastore 的定价和查询限制。 If you still have doubt, don't hesitate to add detail, your existing code, errors,....
如果您仍有疑问,请毫不犹豫地添加详细信息、现有代码、错误......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.