Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...