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.