Hi All, I have a space game. I need to:
- Scan every player, 7,000 records
- See if their shields need to increase as they’ve taken damage, and update their health
Seems simple right? But I want this to run while the user is AFK and computer offline. This all has to be done on the server.
Right now, I have a Meteor.SetInterval( find.("all_starships)) and process that data, but it is not scalable.
So I’d like to at startup, load a reactive variable in to memory on the server. Then, when someones shields change as they’ve taken damage, I will be able to take an action on that paticular player.
How can this be achieved?