Hi,
I have a Solitaire Game, and I want to collect seeds (10 characters of a string ) from players. These seeds could create solvable games for other players. Now I need a place to store these seeds. I have seen the https://playfab.com/limits/ . The Title/Publisher Data does not have enough space to store many seeds.
Now I have a new plan to deal with the vast stores of seeds,
First, I create a player named "seedManager", which store:
1. SeedWarehouseIds - store a list of playfabIds. I plane to create 100 players and store their ID at here.
2. CurrentIndex - a int number. It marks the current which a warehouse to store seeds. When a warehouse is full, the CurrentIndex += 1.
Second, I create 100 players named "SeedWarehouse1","SeedWarehouse2" ... "SeedWarehouse100". And store theirs IDs in SeedWarehouseIds of "seedManager". These player are used to store seeds. I call them "SeedWarehouse". In it, I will store:
1.Every "SeedWarehouse" would have 1000 houses( "house1" to "house1000") and every house could store 1000 seeds. So one SeedWarehouse could store 1,000,000 seeds. If I have 100 SeedWarehouses, I could store 1 billion seeds. it is enough for me.
2.CurrentIndex- a int number. It marks the current which a house to store seeds. When a house is full, the CurrentIndex += 1.
When a player finishes a game, the client would post the seed to playfab by execute cloud script function "saveSeed". This function would get "seedManager"`s data and find out the current warehouse. Open the warehouse, and store the seed in the current house.
Do you have a better suggestion?
Finally, when are you going to support mongoDB?