Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
271 views
in Technique[技术] by (71.8m points)

Processing of cloud functions Firebase Realtime database

I already asked this question to Firebase Support but they suggested to ask this question on community platforms. So I'm asking this question here in Stack Overflow.

  1. Suppose a user creates new data in Firebase realtime database node.
  2. This will trigger the onCreate cloud function, if added on that node.
  3. In that cloud function, we are processing the added data such as updating the data by adding a new child by translating the particular child into a particular language.
  4. While the onCreate cloud function is processing, suppose the user deletes the added data.
  5. At this time, data is deleted but the onCreate cloud function is still processing and as a result, we will have a single child at that firebase path which contains the language translated data. This data is useless as it is already deleted by the user.

The questions are:

  1. How can we solve this issue?
  2. What is the better approach to solving these kinds of issues?

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...