Multi threaded? Is betangel?
Multi-threading allows an application to do more than one thing at the same time. E.g. A multi-threaded trading application can draw the screen and respond to mouse clicks, while retrieving new market prices from betfair, while placing a new bet and updating Excel.
Bet Angel has been multi-threaded since its creation and we’ve updated the threading model a number of times during the evolution of the product. Some applications limit themselves to one thread for betting, one for cancellations, one for updates etc.; Bet Angel manages a dynamic pool of threads and can allocate them as necessary. For instance, if the betfair API is performing slowly one day and bets are taking a long time to place, then Bet Angel will automatically assign multiple threads to bet placement so that you don’t have to wait for one bet to be processed before you can place a second bet.
All of the Guardian activity takes place using multiple background threads so again even if betfair is running slowly it is able to update a number of markets each second. All the threads are monitored to ensure the call rate doesn’t exceed betfair’s threshold of 20 calls per second.
Bet Angel has been multi-threaded since its creation and we’ve updated the threading model a number of times during the evolution of the product. Some applications limit themselves to one thread for betting, one for cancellations, one for updates etc.; Bet Angel manages a dynamic pool of threads and can allocate them as necessary. For instance, if the betfair API is performing slowly one day and bets are taking a long time to place, then Bet Angel will automatically assign multiple threads to bet placement so that you don’t have to wait for one bet to be processed before you can place a second bet.
All of the Guardian activity takes place using multiple background threads so again even if betfair is running slowly it is able to update a number of markets each second. All the threads are monitored to ensure the call rate doesn’t exceed betfair’s threshold of 20 calls per second.
I have linked Guardian to Excel. Excel is running on a BetAngel VPS with the Server Edition of BetAngel.
I think there is a problem with Multi-Threading. Every so often, 2 identical bets are triggered (instead of one). I thought that perhaps, the spreadsheet was slow to updated the unmatched bets counter. (I do not place any bets when the counter is greater than Zero).
I can only assume that the mutli-threading is queuing multiple bets before sending back the correct unmatched bets value to Excel.
Do you have any suggestions for preventing this problem
I think there is a problem with Multi-Threading. Every so often, 2 identical bets are triggered (instead of one). I thought that perhaps, the spreadsheet was slow to updated the unmatched bets counter. (I do not place any bets when the counter is greater than Zero).
I can only assume that the mutli-threading is queuing multiple bets before sending back the correct unmatched bets value to Excel.
Do you have any suggestions for preventing this problem