We are going to do a team function similar to Arena of Valor, there are many rooms in the team. If the room is full of 3 people, you can form a team to match. It is required that the rooms of the same team can no longer be together.
currently uses Redis as the storage engine. Use an ordered collection of Redis as matching pool storage. The backend uses golang
Redis data structure: match_gid:20000 | roomid:33316
gid:20000, this is the team ID
roomid:33316, this is the room number.
ask everyone to come up with a better Redis plan. The same team"s room can be filtered when fetching data.