# Can match state be accessed in parallel?

**URL:** <https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637>\
**Category:** Game Design\
**Created:** [May 12, 2021, 4:37pm UTC](https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637 "2021-05-12T16:37:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![2heavymental](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/2heavymental/32/614_2.png) [@2heavymental](https://forum.heroiclabs.com/u/2heavymental)\
**Post date:** [May 12, 2021, 4:37pm UTC](https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637/1 "2021-05-12T16:37:15Z")

</div>

Hi!  
Does the server order access to the match state objects?  
For example, can be MatchJoinAttempt called in parallel for the same state object  
or Nakama internally perform some sort of queuing?

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [May 12, 2021, 10:24pm UTC](https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637/2 "2021-05-12T22:24:19Z")

</div>

That’s a great question @2heavymental.

Internally Nakama sequences all executions that pass the match state into them. For example a match join attempt will be handled, followed by a match join, then the next match loop tick, etc, etc. You do not need to lock around the match state because changes will not be concurrently executed on it.

---

<div class="post-metadata">

**Author:** ![2heavymental](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/2heavymental/32/614_2.png) [@2heavymental](https://forum.heroiclabs.com/u/2heavymental)\
**Post date:** [May 13, 2021, 6:36am UTC](https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637/3 "2021-05-13T06:36:33Z")

</div>

Excellent! It simplifies a lot of things. Maybe this is described somewhere in the documentation? It will be cool to see the complete picture.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [May 13, 2021, 4:32pm UTC](https://forum.heroiclabs.com/t/can-match-state-be-accessed-in-parallel/1637/4 "2021-05-13T16:32:25Z")

</div>

@2heavymental It’s a good point. I’ll make a note about it for us to cover with our docs. 👍
