Answer the question
In order to leave comments, you need to log in
Server on Flask, is it worth it?
Any online game requires a server.
The game is not dynamic, there are no constant requests to the server, it will be written in Unity.
Hosting is not bad, it will withstand the load 8 times more than expected.
Expected online 200-800 people.
The server decided to write in Python.
Choice of WebSockets or Flask.
I love Flask, it's simple and easy to use.
A colleague of WebSockets suggests using.
I don't know how to work with WebSockets in Python.
WebSockets or Flask?
What is more convenient to work with in Unity?
What about performance?
What is safer?
What are the pitfalls?
Answer the question
In order to leave comments, you need to log in
> WebSockets or Flask?
If you need realtime - websockets, if you don't need it - http. Flask is heavy, better look at fastapi.
In addition to websocket for realtime, you can find either or make your own protocol on udp
> What is more convenient to work with in Unity?
Equal
> What's the performance?
Maintaining a persistent websocket connection is more resource intensive, but if realtime is needed, there is no choice
> What is safer?
Equally
> What are the pitfalls?
Individual, you will find your own rake
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question