Hello.
I'm currentlu working on a p2p multiplayer game and want to find way to connect users to each other without using master servers and other similar solutions. The flow i designed is:
1. User starts game (set's player data value to mark it as ready to play or something similar, maybe add to some shared group) and starts continuour request sequence (1 per sec) to receive status.
2. Matchmaker (cloud script actually, called after join) search for nearby users (if it possible actually) and sets some data to both of them (who is master, ip's and ports and etc)
2.1 If no users found within 1st iteration range wait for a next iteration and increase search range.
2.2 if there were some users and pair were found go to p3.
3. Players connects to each other and play short p2p match.
4. On match end master client posts results to playfab.
So the main problem is to find logged in users with some specified flag near to each other.
The solution is can be in SharedGroups and its data to store waiting player with they login location data and iterate on every join, but idk if there some limitations of SharedGroupData size and players count.
Maybe there are some more elegant way to solve it?
If there are not, can i use Matchmaker API (custom implemented server) to use it as p2p matchmaker?