Answer the question
In order to leave comments, you need to log in
Optimal network game server architecture?
Good day.
Started making a simple online game. Made a server base on ASP.NET WebApi and SignalR and a client on node-webkit. While the last commit was pushing, I realized that I was doing everything completely wrong, as it should be, and everything had to be radically redone. From this a few questions arose:
Answer the question
In order to leave comments, you need to log in
pre-optimization is the EVIL of
KISS
You described well what you want to do, but didn't say a word about why you want it:
- what kind of interaction between the player and the server is planned?
- what loads are expected? Average, peaks...
Without knowing the answers to these questions, there is only one answer to your question: do as you please. Because there are no criteria for choosing an architecture.
Here is a universal decision rule: “Does X solve any problem? If it decides, we do X, if it doesn’t decide, we don’t do it.”
As for authorization, it is always easier to check some kind of authorization key. How to check login and password. But this is not critical.
It is better to store similar in OP. client id - key - role
Write in ASP.NET, it's not bad technology. Write better on it than on NodeJS if you study the last couple of months.
It would also be nice to have a separate server for statics or CDN.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question