# Implementing distributed user counters

**URL:** <https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270>\
**Category:** Questions\
**Tags:** distributed, phoenixtracker, pheonix-presence\
**Created:** [June 13, 2025, 8:02am UTC](https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270 "2025-06-13T08:02:14Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Schultzer](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/schultzer/32/4339_2.png) [@Schultzer](https://forum.elixirforum.com/u/Schultzer)\
**Post date:** [June 14, 2025, 7:26pm UTC](https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270/22 "2025-06-14T19:26:34Z")

</div>

Have you consider prototyping this in mnesia, it would give you everything out of the box for something this simple.

Obviously you could build your own leveraging ets, global and etc. but feels like mnesia would be a better fit for this. Just my 50 cent after a cursory read.

There are also [atomics — OTP 29.0.2 (erts 17.0.2)](https://www.erlang.org/doc/apps/erts/atomics.html) and [counters — OTP 29.0.2 (erts 17.0.2)](https://www.erlang.org/doc/apps/erts/counters)

Anyways, my recommendation is always to look into OTP with these kind of questions, since they likely have been solved before! Best of luck!

---

_[View the full topic](https://forum.elixirforum.com/t/implementing-distributed-user-counters/71270)._
