# Fleetmanager flow

**URL:** <https://forum.heroiclabs.com/t/fleetmanager-flow/5781>\
**Category:** Runtime Framework\
**Tags:** matches, server-framework\
**Created:** [November 7, 2024, 8:32am UTC](https://forum.heroiclabs.com/t/fleetmanager-flow/5781 "2024-11-07T08:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jell-o-fishi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jell-o-fishi/32/2269_2.png) [@jell-o-fishi](https://forum.heroiclabs.com/u/jell-o-fishi)\
**Post date:** [November 7, 2024, 8:32am UTC](https://forum.heroiclabs.com/t/fleetmanager-flow/5781/1 "2024-11-07T08:32:34Z")

</div>

This is my outline for using the fleet manager (note: not using the amazon gamelift implementation, custom implementation for Unity Game Services)

On unity side, a single instance can host multiple matches.  
Using the nakama matchmaker flow.  
During “MatchMakerMatched” a call to fleetmanager to either get or create the required server (according to available space for players on the server).

Here is my problem.  
If I call fm.Join during MatchMakerMatched I make sure that the operation is atomic and the next match will not try to reuse the free spots on a unity instance. But now, at least according to the fm interface, I do not have access to the generated session ids later in the match flow when i want to broadcast them to the users

If i call fm.Join during MatchLoop, i have access to the session ids and broadcast them to the players, but now the operation is not atomic and i cannot guarantee that i reserve the correct number of players on each server.

What am I missing here ?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [November 7, 2024, 11:44am UTC](https://forum.heroiclabs.com/t/fleetmanager-flow/5781/2 "2024-11-07T11:44:39Z")

</div>

Hello @jell-o-fishi,

If you’re creating the match inside the matchmaker matched callback, you should be able to pass the session IDs as a params to `MatchInit`.

Otherwise you could also just store temporarily in a storage object you retrieve inside of `MatchInit` or elsewhere in your flow.

---

<div class="post-metadata">

**Author:** ![jell-o-fishi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jell-o-fishi/32/2269_2.png) [@jell-o-fishi](https://forum.heroiclabs.com/u/jell-o-fishi)\
**Post date:** [November 7, 2024, 12:02pm UTC](https://forum.heroiclabs.com/t/fleetmanager-flow/5781/3 "2024-11-07T12:02:59Z")

</div>

that’s what i am doing, but i was thinking this should be part of the flowmanager interface since it’s data that is related to it.

thank you.
