title: What is the maximum number of retries for Firebase transaction before failing
body: <p>I have a node under Firebase for different restaurants which contains a list of active and past visitors. This node is named <code>listvisitors</code>. Under the restaurant node, i want a counter for all the visitors. Here is where I want to use Firebase transactions. </p>
  
  <p>The idea is to increment the counter when a person opens the restaurant page. As there would be contention, transaction seems like a good option.</p>
  
  <p>A popular restaurant can have loads of visitors simultaneously visiting thus leading to contention. Can transactions scale to handle this?</p>
  
  <p>If so, what is the maximum retries that transaction can handle before failing with the max retries error. (Essentially the max simultaneous updates assuming all users log in at the same time)</p>
  
  <p>If not. Is there an efficient alternative to essentially count the number of current children under lists and get the correct number?</p>