Site Tools


message_queue_mq_-_publish_subscribe_message

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
message_queue_mq_-_publish_subscribe_message [2016/11/04 09:33]
jihwanseo
message_queue_mq_-_publish_subscribe_message [2017/05/17 00:31]
6londe
Line 29: Line 29:
  
 =====C++ API Usages===== ​ =====C++ API Usages===== ​
-1. Discovery Topics (subsriber ​-> broker, publisher -> broker) ​+===1. Discovery Topics (subscriber ​-> broker, publisher -> broker)===
  
 Since target topic is needed for subscribing or publishing on a MQ broker. Since target topic is needed for subscribing or publishing on a MQ broker.
Line 63: Line 63:
 </​code>​ </​code>​
  
-2. Subscribe Topic (subsriber ​-> broker)+===2. Subscribe Topic (subscriber ​-> broker)===
  
 If you want to subscribe some topic which discovery from MQ broker, If you want to subscribe some topic which discovery from MQ broker,
Line 102: Line 102:
 </​code>​ </​code>​
  
-3. Create Topic (subsriber ​-> broker, publisher -> broker) ​+===3. Create Topic (subscriber ​-> broker, publisher -> broker)=== 
  
 Since there are no specific rule that who can create topic between publisher or subcriber. Since there are no specific rule that who can create topic between publisher or subcriber.
Line 150: Line 150:
 </​code>​ </​code>​
  
-4. Publish Topic (publisher -> broker)+===4. Publish Topic (publisher -> broker)===
  
 publisher can inform broker of their change. we provide publish api called **publishMQTopic(..)** publisher can inform broker of their change. we provide publish api called **publishMQTopic(..)**
Line 175: Line 175:
 </​code>​ </​code>​
  
-5. Request to start Publish (subsriber ​-> publisher)+===5. Request to start Publish (subscriber ​-> publisher)===
  
 If there is no subcriber to want to get publish information for some topic. If there is no subcriber to want to get publish information for some topic.
 For having a transmission about publishing, it must be a waste of time and network resource. For having a transmission about publishing, it must be a waste of time and network resource.
 +
 If Publisher know someone who want to get topic information it has. If Publisher know someone who want to get topic information it has.
 And it can start publish to broker. we can save time and network resource. And it can start publish to broker. we can save time and network resource.
 +
 Please refer detailed sequence diagram in https://​wiki.iotivity.org/​message_queue_mq_for_publish-subscribe_interactions Please refer detailed sequence diagram in https://​wiki.iotivity.org/​message_queue_mq_for_publish-subscribe_interactions
 We provide the API called **requestMQPublish(..)** for this function. We provide the API called **requestMQPublish(..)** for this function.
message_queue_mq_-_publish_subscribe_message.txt ยท Last modified: 2017/05/17 00:31 by 6londe