Answer the question
In order to leave comments, you need to log in
How to organize the storage of an object with a timer on a server without a DBMS?
Good afternoon, the task is as follows: there is a certain object with a countdown timer, a functionality similar to a chat where there is a message (our object) with a timer. That is, the user (client) sends a new object through the server to all active clients and the countdown begins. Everything would be fine and the timer could work for the client.
What to do with newly connected clients or reconnect.
How to organize the storage of such objects on the server with a timer and give the client an object and the remaining time on a new session
Answer the question
In order to leave comments, you need to log in
I don't know exactly how your system is implemented, but if without a DBMS, then the first thing that comes to mind is to store in the memory of the server process the date and time the "object" was received by the server. Naturally, the timer will be lost when the server is restarted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question