Hi. Imagine you created a shooter and now you want to convert it into MMO. The first thing to do is to save some of the data (player xp, items in inventory, other stuff) between server sessions, saving it (in the end of one session / on action) and loading in the beginning of another.
Seems to be the task after “Is Dedicated Server” branch node. But how exactly should communicate the dedicated server with the db saving these inter session data?
Options:
-
Standard REST api, when server sends POST requests to this api to add inventory item, add XP, etc. A proxy between dedicated server and database, which makes project more expensive and may require scaling with load (kubernetes, etc.)
-
A plugin / a module with the direct connection to the database, which is included only in server builds and creds are passed as env variables. No API proxy, but more danger with SQL injections, probably less comfortable way to work with.
-
…
Let’s discuss