Hello, I see the following advice from the streaming API docs:
It is preferable to use coarse grain subscriptions (subscribe to a super-set) rather than fine grain (specific market ids).
If you find yourself frequently changing subscriptions you probably want to find a wider super-set to subscribe to
First question is why is this? Is there a performance impact? Is it something that impacts the exchange server side or the client?
Now, I want to subscribe to all UK horse races plus all UK Premier League football matches. I can't see a way to get this without listing MarketIds or alternatively subscribing to all football matches globally, since I'd have to add both eventTypeIds (1, 7). I can't see a way to filter by competition but even if I could there would also have to be competitions that describe the horse races that I want.
An alternative would be to manage two sessions with the two distinct subscriptions. When might that be appropriate?
Thanks.
It is preferable to use coarse grain subscriptions (subscribe to a super-set) rather than fine grain (specific market ids).
If you find yourself frequently changing subscriptions you probably want to find a wider super-set to subscribe to
First question is why is this? Is there a performance impact? Is it something that impacts the exchange server side or the client?
Now, I want to subscribe to all UK horse races plus all UK Premier League football matches. I can't see a way to get this without listing MarketIds or alternatively subscribing to all football matches globally, since I'd have to add both eventTypeIds (1, 7). I can't see a way to filter by competition but even if I could there would also have to be competitions that describe the horse races that I want.
An alternative would be to manage two sessions with the two distinct subscriptions. When might that be appropriate?
Thanks.


Comment