what is event header in Context

2 posts / 0 new
Last post
Offline
Last seen: 8 years 12 months ago
Joined: 04/16/2015
Posts: 11
what is event header in Context

When we publish an event, whether there is an common event header attached on each event. 

Gerardo Pardo's picture
Offline
Last seen: 3 weeks 1 day ago
Joined: 06/02/2010
Posts: 601

Hello,

All data published by DDS has a common header called the SampleInfo which contains things like the timestamp, sequence number, indetification of the source, etc. See SampleInfo. Beyond this there is no "event header per se". However in DDS you get to define the data-types so when you define the event type you can define any "header fields" you see fit. 

Note also that unlike other pub-sub messaging technologies DDS can do content filtering / routing on the whole body of the message, so there is no real differentiation between putting things on a "message header" versus the body. This is a powerful concept because you do not need to anticipate at design-time which things belong to the "header" or the "body" just define the event type with all the information you need.

Gerardo