I stumbled a bit over the documentation in https://api.playfab.com/docs/custom-game-servers
[...]As such, an enabled build will always have at least one server available, so that a player attempting to join a session does not have to wait on server spin-up time.[...]
[...]It is also important to make certain that your server build exits once the last player leaves the session, for two reasons. First, the game server hosting service in PlayFab does not terminate game server instances explicitly.[...]
I am not sure how I am supposed to implement these requirements as they seem to be contradictory.
I assume that we can let the server running for a certain time when no player is present, because otherwise the server would shut down immediately after launch (since there are no clients connected yet). What time frame is acceptable in this scenario?
And how do I check on the server side how many servers are currently running? I have to somehow let the server know it is the last one so it doesn't shut down, but rather waits for players to join up.
Am I thinking about this the wrong way?
Thanks in advance,
Patrick