posted 16 years ago
Hello everybody,
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 ]