Using a topic with multiple keys

2 posts / 0 new
Last post
Last seen: 2 years 4 months ago
Joined: 12/07/2019
Posts: 1
Using a topic with multiple keys


I've read that the maximal amount of keys in a single topic is 4 (can't find the source unfortunately), and recently I've encountered a need for 5 keys in a single topic. My question is what would happen if I do mark 5 fields as keys? Will the last one be ignored? Is the outcome definitive? or am I missinformed about the limitations

I've failed to find answers online, and would appreciate some help.


RTI DDS Ver: 5.0.0

Thanks in advance!

Howard's picture
Last seen: 3 days 15 hours ago
Joined: 11/29/2012
Posts: 567

Sorry, I think you've misread.  RTI Connext DDS doesn't have a limitation on the number of fields that forms the key of a data type/Topic.  Have you tried and encountered problems?

What is your use case?  Although it should be supported, I haven't encountered many use cases in which you need 5 fields to define an instance of a Topic.  What are you doing and why do you need 5 members for a key?