This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line! See this thread for details.
I hope you are doing fine and you are ready to heare this challenging problem. I am designing a system to enable people to trade stocks virtually. When somebody wants to sell/buy stock he has the option of telling the system not to execute this transaction until the price of the stock reaches a certain threshold T, and he also specifies that a date limit D at which ( if the price have not reached the threshold, the transaction is canceled.)
With that in mind, in my application stock quotes are brought in using Yahoo RSS feed every second. and those kind of transactions are stored in the database with their status being set to pending along with their corresponding treshold and date limit.
What is the way to handle the event of the price changing to reach the given threshold quickly enough (not to loose it) and without making the server too busy ==> by at each time load all the transactions with incomplete for all users and check the prices of all stocks ??
I would love if you can point me in the right direction, and tell me whether there is a simple solution or should I use some frameworks or anything else. I have been stuck for a week with this provblem now.
I really appreciate your help, Thank you. [ April 19, 2007: Message edited by: Bear Bibeault ]
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, the permaculture playing cards