VRV
Convex Community7mo ago
10 replies
VR

Is there a problem if I use cronjob as a server "tick"

So I wanted to try using convex for making a board game where you have different rooms with specific logic and events etc.. but i want most of my logic to be on server side so the way I am doing this right now is using a cronjob to trigger every 1 sec "my tick" and update what is required. Actually it does work very well, but I was just wondering is this okay and is there better way to do it?

Doing it on the server reduces the amount of calls if we need to make same calls on every user and like that we make calls every second but only from server side, yes clients have some actions as well but not that much. Also this allows me to create "bots" and do more automation that makes the game more interesting.

Would love some feedback if thats okay or something else will be better. Of course I can use another technology but I want to do this with convex and like I said I already have done it and it does work.

Also currently I am doing this on cloud but eventualy I would like maybe to do self hosted or I will have some limitations there, still have not checked that?
Was this page helpful?