I'm helping somebody code an auction system, and I've run into some problems in terms of how the timing works.
The auctions are started by the website users, and they can set their own time limits. The problem is when do I decide that the auction is finished and start processing?
I could run a cron every minute or so but I don't think that would be so efficient.
Are there any other solutions to this?
I was thinking I could just use a timestamp, and check against that every time somebody refreshes a page. The load is then spread out among the users and over time, not all in one go each time the cron is run, but still... It doesn't sound very efficient either
