Pub/Sub - statefulness|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Pub/Sub - statefulness
Avatar
Annie Wu
Member
Members
Forum Posts: 8
Member Since:
09/04/2017
sp_UserOfflineSmall Offline
1
04/01/2018 - 20:33
sp_Permalink sp_Print

Hi,

I have a question about Pub/Sub.

Does Pub/Sub implement with 'statefulness'?

Thanks.

Avatar
Randy Armstrong
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
04/02/2018 - 07:34
sp_Permalink sp_Print

What are you calling statefulness?

The entire point of PubSub is to allow publishers to send data without knowing who the subscribers are.

Avatar
Annie Wu
Member
Members
Forum Posts: 8
Member Since:
09/04/2017
sp_UserOfflineSmall Offline
3
04/03/2018 - 02:59
sp_Permalink sp_Print

According to my understanding, it needs to create a session or keep the connection steps to implement statefulness.

If Pub/Sub implement as broker-base form, would publisher keep some information when connect to a broker?

Avatar
Randy Armstrong
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
04/03/2018 - 04:04
sp_Permalink sp_Print

Again, it depends on what you are calling 'state'.

The publisher will have to have some sort of session with the broker and the amount of state associated with that session is broker specific. In most cases, the publisher can open and close the session each time it sends the message if performance is not a concern.

That said, those protocol details are not what people are usually concerned about with state. In client/server the server needs to maintain a list of subscriptions for each client connected. This state creates challenges when building servers that support large numbers of clients. Publishers do not have this overhead since the same message is sent to all subscribers.

Avatar
Paul Hunkar
Cleveland, Ohio, USA
Moderator
Members

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-COM
Forum Posts: 109
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
5
04/03/2018 - 15:11
sp_Permalink sp_Print

To continue a little on what Randy posted, the publisher in some cases might have a session to a broker, but the broker will handle the fan-out to all of the subscribers and the publisher may have no knowledge about the list of subscribers.  In broker-less system there is no state of any type to a subscriber.

Paul Hunkar - DSInteroperability

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Pavel Seibert
Guest(s) 25
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1341
Posts: 4545