Background script

Hello! First of all, sorry for my poor english

So question is:

I develope penny auction, from front-end I pool every second request for fresh data about auctions on the page.

And then i realized that what if nobody open site page, how this all should work? Maybe I need some sort of background script

which will be handle all active auctions - close lots, open lots, set auto bids if they are and so on.

Next what I am think about - write some script do that job and run it with cron job.

But

1)Cron job running minimum only one per minute. So what if I need to open auction (or smth similar action) somewhere between two minutes?

2)And next that i thinking of - that script will not run 1 minute exactly, mb more mb less and this causing that another cron script coming into play! That is very bad!

So what you can advice me in this situation? What would be the better choice using poor PHP + JQuery(Ajax) + MySQL? Asking just about approach and your experience.

Many thanks!

It’s hard for me to know what to answer, since I am not sure how a penny auction works.

I’d probably start by seeing how some other PHP auction scripts work.

Sponsor our Newsletter | Privacy Policy | Terms of Service