Answer the question
In order to leave comments, you need to log in
How to organize the project architecture?
I have a game project in which game data and site data are currently in a common database. Realtime socket game with your client. All communication with data between the site and the game takes place by means of database queries to a specific table. It seems to me that this is wrong and that these are 2 independent resources that should not go to each other for data. I was considering switching to a microservice architecture via the JSON API. I wanted to fit all services into one API with public and private API. I already undertook to do it, but I was repulsed by the need to establish a connection every time and the need to get the data of some tables in full. Invent your own socket layer? Tell me how such problems are solved?
Answer the question
In order to leave comments, you need to log in
All communication with data between the site and the game takes place by means of database queries to a specific table. It seems to me that this is wrong and that these are 2 independent resources that should not go to each other for data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question