Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Multiple monitored items in a single subscription vs multiple subscriptions with single item
March 7, 2014
9:26, EET
Avatar
janwe
New Member
Members
Forum Posts: 2
Member Since:
March 7, 2014
sp_UserOfflineSmall Offline

Hi,

I’m working on a system where we are currently creating one subscription per monitored item. Looking at the API and some other examples it seems to me we could have added monitored items for all the events and data items we are interested in to a single subscription instead.

Are there any recommended practices regarding this? E.g. how many items you should add to a subscription, whether there are any downsides/upsides to multiple items per subscription vs multiple subscriptions with a single item?

March 7, 2014
9:58, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, in practice, I would say that it’s better to minimise the number of subscriptions, since every one of them needs more infrastructure and checking in the server, especially. Also if you have several items in one subscriptions, their data changes will be packaged into the same data change notification message, which takes less communication bandwidth. Of course, very big subscriptions may lead to too big messages (but that means thousands of items). We have not really measured any performance differences, though. I suppose some balanced design would give the best overall performance.

Anyway, I would suggest that you design the client application according to the most suitable application logic and group items that are logically connected to the same subscription. If you notice any performance issues, then you can start optimising the design from that.

In general, the communication is very fast locally, and the optimisation may be more necessary, if you have a slow network connection between the applications.

March 10, 2014
12:14, EET
Avatar
janwe
New Member
Members
Forum Posts: 2
Member Since:
March 7, 2014
sp_UserOfflineSmall Offline

Thanks. This confirms some of our theories regarding server constraints and bandwidth problems we are already experiencing. We’ll look into grouping items into fewer subscriptions very soon.

March 10, 2014
12:32, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Fine. And please, if possible, report back here if you manage to improve your communication with this.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1