- Home /
Using networking solutions with AWS or Playfab servers with databases
I'm planning a multiplayer action game(like for honor) for my school project with using Mirror-Networking or photon pun 2 but i need a dedicated server like AWS or Playfab. And also i need to use database like mysql. I just have two question. 1- In this situation databases conneting with servers right? and how? 2- Which combination should i use pun-aws, mirror-aws, pun-playfab, mirror-playfab
edit: or more options for networking and server?
Answer by GetLitGames · Dec 23, 2020 at 12:45 PM
You wouldn't want the client machines to access the MySQL, but they could if you don't care about security since you would have to embed the connection string/password into the unity code for the machines.
If you just wanted the server to use the MySQL (which would be the correct usage) then you just don't open the port in your firewall, and the MySQL should only allow local connections. In that case, any code reading/writing to the DB should have an IF statement preventing client code from trying to use it, and you need to think about this.
Playfab has GameServers 2.0 which is a spawned server instance and probably not what you think it is. Playfab's typical use is for authentication, virtual currency, and you can store player data for an authenticated user similar to using a database - this is the main Playfab functionality and not related to the GameServers 2.0 feature.
I think you want to use AWS which allows you to run a Windows server, run your dedicated instance of your game, and install MySQL on it.
It seems like a lot of work for a school project, and not sure if you understand how much work it takes to build all of that. Just becoming familiar with the multiplayer networking will take time.
oh okay then i should use AWS with photon i guess or mirror. And also yes it is a lot of work for a school project but i have a 6 month for the deadline so i guess i can handle it. And i just want to use database for player datas so if AWS allows as you said then I'll use it. Thank you so much for your help!
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
How to make a host-client server? 0 Answers
Unity Photon Network - Text Mesh Sync 1 Answer
Does Unity's Matchmaking/hosting service require Unity Networking? 0 Answers