A Matchmaking System Spanning Across All Servers

I am making a matchmaking system. It is suspiciously similar to that of League Of Legends’ matchmaking system. For each match, there is a maximum amount of 5 players. For example, if a group of 3 friends started a lobby, they would get paired up with either another group of 2 friends or just 2 other single players. At first, I thought of pairing groups within the same server, but as you’d expect that would create a situation in which no pairs are found and you’d have to wait until other people leave the server and hope for a complementary pair, which is potentially very time consuming (for the player/s).

I could solve this using a table that can be viewed across all running servers so a pair can be instantly matched and be teleported to the same Place (where the arena is), but I feel that using MessagingService would be risky, considering if two different servers were to detect a pair at once, they would both attempt to match the same group and create a bunch of problems. Is there other way? Or maybe you’ve already seen such a system described in the title? Please advise me.

You should use MemoryStore actually. I don’t have much experience but try to use it.

It even says that you can do global matchmaking.

1 Like

You are a saviour! Thank you! I had no idea this existed and I was sure the only other way was using Datastore, not a completely faster and more volatile system.

1 Like

NP, always there to help! If you have doubts, you can ask me anytime, I’ll try to help regarding this :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.