I'm creating an auction website. Auctions can run for up to 30 minutes...
So it seems, I need process running for each auction for the duration of the auction to update bids etc...
I have 2 solutions so far:
1) Run a cron job every 5 mins to see if an auction should start.
If so create and instance of the Auction manager that will exist for the duration (up to 30 mins).
2) Run a cron every minute that will update the auction details and refresh the auction room.
The first seems more logical and less programatically intensive... Both however require dedicated servers and I had hoped to start off on a VPS.
Does anyone have any ideas of how to get around this? It seems like it may well be impossible to track something that lasts 30 minutes on a server where you can only run a script for 30 seconds.
Do my approaches sound reasonable or does anyone have any better suggestions?