Question

I am being asked by my client for making instant notification to the bid winner when the bid expires.

Since the ending time is varying and set by users while registering bids, I am planning of setting cron jobs to run every 5 mins and check any finished bids without notification and notify all of them.

Do i have another good method to accomplish this task?

Was it helpful?

Solution

I would look into something for queueing tasks. Me personally... I would use Celery, because I love Python and Celery is freaking awesome.

If you are married to, or have to use PHP, then beanstalk looks promising.

OTHER TIPS

Instead of cron jobs, I prefer it integrate the job listings into my MVC. That way, upon every request it can check to see what jobs need to be preformed. Then I have a cron job call any link to my MVC so that jobs can be completed without the need of a request being sent.

Thats just me, you might be able to find a better alternative to fit your site.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top