S
S
SKEPTIC2019-07-28 01:20:20
Python
SKEPTIC, 2019-07-28 01:20:20

Multithreading or asynchrony?

There is an online game. I create purely for myself, for practice. Written in Python, what is the server, what is the client.
The question is this.
I wanted many players to be able to connect to the same server. (Up to 10,000 players)
What is the best use here? Multithreading or asynchrony?
And how to store player data? How to get access to them? And it is desirable without different DB. That is, using Python.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tutuborg, 2019-07-28
@pro100chel

"Horses people mixed up in a bunch ..."
There are several different subtasks. They need to be divided. And programming separately. By different methods.
Divide your task into separate subtasks and ask separate questions .
If you are not able to do this, if you are not able to decompose questions, then you can quit programming right away.
For decomposition in programming is the most important aspect.
There are only 2 places where you can save data:
In RAM (temporarily)
On disk (permanently)

M
Muxauko, 2019-08-06
@Muxauko

You can use sql, or you can use python: a dictionary. Key value than not DB? I don't remember, but the csv format seems to fit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question