Is there a way to implement the logic on the Firebase side and not on the client side?
The question is, I want to implement an auto increment counter when sending messages to the Firebase database, I know that I can use transactions, but sometimes the counter does not update properly. That's why I want to know if there is a way to implement this logic inside Firebase so that it updates the counter as soon as the message arrives in the Firebase database.
After working with Firebase, I found that on the firebase server side, only the validation rule is executed, you cannot edit your data on the firebase server.
- ,
Firebase - (, AWS Google ..) - .
Source: https://habr.com/ru/post/1653739/More articles:Вызов события MongoDB после ввода данных в коллекцию mongoDB - javaIE11 incorrectly calculates parent flex container height - htmlPHP - получение последних операторов PK ID для использования во второй функции. Вставка выражения - functionThrow checked exceptions using CompletableFuture - javaHow to assign $ http.get response to AngularJS variable - javascriptMeaning of Observation - OpenAI Gym - pythonHow to prevent redeployment of a trawl? - continuous-integrationAdd item to Seq in scala - scalaПредоставляет ли ConcurrentMap.remove() предопределенное событие до того, как get() возвращает null? - javaJavascript Bitwise Operation - javascriptAll Articles