I need some help with my logic/approach please. I am wanting to create a gaming server list. So people can add their server by entering in
title, IP, port, about.
However on the homepage I also want to display how many players and whether it is online or not. If its offline I dont want to display it. Now for this I can query an api which returns a string like.
{"players_online":22,"max_players":150,"gametype":"TNT"}
These values will change every 60 seconds usually.
What is the best approach to merge the 2 together? I want to store the server basic info in the db but things like players_online and whether the server is up needs to be checked at least every 60 seconds.