I am currently making an online multiplayer chess game. I was wondering if it would be appropriate to user triggers to log in every movement.
Then, using nodejs I would repetitively check the trigger table and update the visual for both players & observers.
Since I only need to make changes in the database, the visual aspect would follow up automaticly (using the recurring function to check changed data in the database). The goal of this would be to seperate the visuals from the logic involved to make the game.
Would any of you recommend this technique or its simply a no go?
You describe a possible technical solution for your task. But i strongly recommend NOT to do so.
This will not scale very well - it adds a lot of overhead and load to both your database and application server.
There are other lightweight possibilities that scale much better:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With