Stagger request times across multiple markets

Please post any questions regarding the program here.

Moderator: 2020vision

Stagger request times across multiple markets

Postby danjuma » Sun Mar 14, 2010 11:34 am

Hi Gary,

Just need a bit of clarity please. I have 4 markets being monitored at once. I have set the refresh rate to 2 secs if a market is not in-play, and 0.5 sec when the market goes in play. 2 markets will always go in-play at the same time, and sometimes, the other 2 markets will also go in-play while the first 2 markets are still in-paly. I have also set the throttle limit to 10 req/sec (as I have another instance of BA being used for another market). If I ticked the "Stagger request times across multiple markets" option in preferences, what exactly would this mean (apply in this case), or am I better off not ticking this option?

I know you mentioned this briefly in the following link, but I have had a look and I still do not fully understand.

http://gruss-software.co.uk/forum/viewt ... er+request

Many thanks.
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby GaryRussell » Sun Mar 14, 2010 1:00 pm

Every 5 minutes it will compare the last refresh time of each market with the same refresh rate. For example if you have 2 markets at 2 secs and 2 markets at 0.5 secs it will perform two adjustments if necessary. It will adjust the refresh times so that the 0.5 second refresh markets are refreshed 250ms apart and the 2 second refresh markets are refreshed 1 second apart.

To do the adjustment it will stop and re-start the refresh timers so there could be a slight delay to each refresh during this time. In theory this could delay your 0.5 second refresh by 250ms and your 2 second refresh by 1 second while this happens. You might want to disable this option if this concerns you.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Sun Mar 14, 2010 1:48 pm

Thanks for the reply Gary.

So if I disable this option, how would my markets now be refreshed? I am just basically trying to work out the best option, whether to enable or disable the option?

Thanks
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby GaryRussell » Sun Mar 14, 2010 2:11 pm

The markets will be refreshed as they have always done. I only added this option for instances where there are many markets and they don't need to be refreshed that often. Imagine 60 markets opened at the same time with a 60 second refresh. Because they were all opened at the same time their refresh timers will all fire at the same time so you get a huge demand on your bandwidth every 60 seconds. The stagger requests option would ensure that the 60 refreshes occurred evenly over 60 seconds, 1 every second.

In your case to avoid any confusion just disable the option, you don't really need it.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby danjuma » Sun Mar 14, 2010 2:15 pm

Many thanks Gary.
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby bustrofedico » Sun Mar 14, 2010 3:05 pm

this is pure genius, Gary! This is EXACTLY what I was thinking would be needed when logging different not so active markets. (still can't log different markets but will certainly succeed eventually, thanks to the many resources on this website)
bustrofedico
 
Posts: 5
Joined: Sun Mar 07, 2010 1:34 am
Location: Montreal, QC, Canada


Return to Help

Who is online

Users browsing this forum: No registered users and 40 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.