20:12, EET
February 21, 2014
A probably common task on a server is to set multiple related variable values in some kind of transaction (setting all values to guarantee consistent reads by any client). Is there a way to perform such task with the current SDK without falling back to complex dataTypes? Can eventually read services or monitoredItem updates by held back until all related variable values have been updated?
Kind regards, Hans-Uwe
PS: I understand that the client would have to read both values using the same readService. To extend the question above, does the server provide some transactional or synchronization guarantee for reading/writing attributes within the same service call?
7:56, EET
December 21, 2011
The complex data types are really meant for this, so there are currently no other means to synchronise variable values together. A good idea and I will need to give it some thinking if there would be a nice way to achieve this.
If you manage the data yourself with a custom node manager, then you of course get a full guarantee. Or you could perhaps use the IoManagerListener to intercept the read call yourself to do “manual” synchronisation. For subscriptions, though this is only possible via your own custom node manager, but that will not guarantee full synchronisation either.
6:42, EET
March 4, 2016
Hey, you wanted to give it some thinking, so is there any news on this topic? We have the same problem and want to avoid complex data types for the moment. It would be very helpful if at least multiple variables that are written within one write request were published at once.
Best regards
Sebastian
Most Users Ever Online: 1919
Currently Online:
24 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 729
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachusModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1