# Presence and concurrency lock 🔒

**URL:** <https://community.parseplatform.org/t/presence-and-concurrency-lock/1467>\
**Category:** JavaScript SDK\
**Created:** [March 17, 2021, 9:23pm UTC](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467 "2021-03-17T21:23:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadortun](https://community.parseplatform.org/user_avatar/community.parseplatform.org/sadortun/32/468_2.png) [@sadortun](https://community.parseplatform.org/u/sadortun)\
**Post date:** [March 17, 2021, 9:23pm UTC](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467/1 "2021-03-17T21:23:41Z")

</div>

Hi all,

We need to show when another user is viewing a certain object or editing in order to prevent concurrent editing.

It’s not that complicated, but is anyone aware of an existing package that would do this ?

Also, if not, is anyone interested in this, we could open source it once it works?

Have a nice day,  
Samuel

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [March 18, 2021, 10:29pm UTC](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467/2 "2021-03-18T22:29:39Z")

</div>

I’d try to use increment and decrement operations to a control field in the object to do that. You can use live query to have real-time update on that at the client.

---

<div class="post-metadata">

**Author:** ![Manuel](https://community.parseplatform.org/user_avatar/community.parseplatform.org/manuel/32/186_2.png) [@Manuel](https://community.parseplatform.org/u/Manuel)\
**Post date:** [March 19, 2021, 1:32pm UTC](https://community.parseplatform.org/t/presence-and-concurrency-lock/1467/3 "2021-03-19T13:32:22Z")

</div>

I agree with the suggested custom solution. There are many different concurrency lock management concepts and rules, from write before read, single/multi-read, exclusivity aspects, etc. I think a built-in solution would have a hard time satisfying many.
