Monday, August 15, 2022
HomeiOS Developmentios - Is a Firestore cloud operate a extra dependable approach to...

ios – Is a Firestore cloud operate a extra dependable approach to carry out duties atomically than on the shopper?

[ad_1]

I am utilizing Firebase for my cellular app’s complete backend and I used to be questioning which of the 2 is a extra dependable manner of performing the duty of making a person after which a batch of paperwork.

  1. Create the Firebase person (utilizing Firebase Auth) on the shopper and if it succeeds then carry out a Firestore batch write additionally on the shopper to create the paperwork.
  2. Name a Firebase cloud operate from the shopper to carry out the above process.

My reliability concern has to do with the community. If the person is created on the shopper however is unable to create the paperwork then, effectively, that is not good. But when the shopper is ready to invoke a cloud operate then I really feel like community reliability is just not a difficulty within the cloud setting. If the duty is to fail within the cloud it will likely be due to violating an error that I’ve management over (i.e. unhealthy e-mail format, weak password). Which of the 2 is extra dependable for my functions?

[ad_2]

RELATED ARTICLES

Most Popular

Recent Comments