question

Versial avatar image
Versial asked

Does playfab server support connecting and disconnecting continuosly

Hi,

We are building a social network game where several thousands of players can come and join together in a single match without having to choose a particular server.

So we are thinking of a solution:

- divide the map into sections

- each section will be hosted by a Playfab server

- players who stand in a section will see each other as a result

- when players move to the other sections, they are disconnected from the previous one and connected to the current one
- To avoid lagging experience when the switching server process happens, a player is always connected to 8 sections around him, plus the section he is standing in.

Can Playfab support this idea?
Thank you.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

According to your description, I think your game requires the server to run for a long time. While the PlayFab Multiplayer Server is a session-based service, it is not designed for long time running. In common scenario, a server is for some players to play a match and it should be shut down after the match is over.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Versial avatar image Versial commented ·

@gosen-gao how if the match will not be ended? Or we could create a new session if it's ended?
The most important thing I want to know is, could a player connect to multiple sessions at one time?
Thank you.

0 Likes 0 ·
Gosen Gao avatar image Gosen Gao Versial commented ·

As it is not designed for long-time running, running the server for a long time may cause it unstable or other unknown issues.

In common scenario, the server will be removed after terminated and a new server will be created in its place to replace the one that was terminated. For more info, you can refer to Lifecycle of a multiplayer server - PlayFab | Microsoft Docs.

The way to connect to PlayFab servers is not different from other servers, we will provide you the IP and PORT info when you request a server, and you should be able to connect multiple servers as long as you have their IPs and PORTs.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.