Hi Sunil,


    Thank you very much! Let me see if I understand the publish/subscribe 
mechanism:






    1. First, the publisher create one topic like below:

          POST http(s)://{HOST:PORT}/topics/create        Content-Type: 
application/json

            {

               “topicName”:”com.abc.dmaap.mr.topicname”,

               ”description”:”This is a SAPTopic “, 

               “partitionCount”:”1”,

               ”replicationCount”:”3”,

               ”transactionEnabled”:”true”

            }




     2. Second, the publisher publish this topic out like below:

         POST http(s)://{HOST:PORT}/events/com.abc.dmaap.mr.topicname     
Content-Type: application/json         (Does this step have a HTTP body?)




     3.Last, the subscriber subscribe this topic like below:

        GET 
http(s)://{HOST:PORT}}/events/{topicname}/{consumegroup}/{consumerid}/{timeout=x}
      Content-Type: application/json     

                     (Also, does this step have a HTTP body? And the 
{consumegroup} should be de defined somewhere before these three steps?)




     It seems that this mechanism only allows the publisher to give the 
subscriber a notification event without transmitting data. For example, the 
publisher 

tell the subscriber I get a bread, but not tell its brand, price, taste etc. 
Plz correct me if my understanding is wrong, Sunil.







Thanks,





Wang




















原始邮件



发件人:UNNAVA,SUNIL <[email protected]>
收件人:[email protected] <[email protected]>王森枭10200860;KOYA, 
RAMPRASAD <[email protected]>
日 期 :2018年09月12日 22:01
主 题 :Re: [onap-discuss] How to use Dmaap to subscribe notification




Hi Wang,


 


Subscribers can subscribe to a topic by hitting the Message Router endpoint . 
Please refer the readthedocs for more details.


 


GET 
http(s)://{HOST:PORT}}/events/{topicname}/{consumegroup}/{consumerid}/{timeout=x}


 


https://onap.readthedocs.io/en/beijing/submodules/dmaap/messagerouter/messageservice.git/docs/offeredapis/offeredapis.html#subscribers


 


 


Thanks,


Sunil


 


From: [email protected] <[email protected]> On Behalf Of 
[email protected]
 Sent: Tuesday, September 11, 2018 11:07 PM
 To: KOYA, RAMPRASAD <[email protected]>
 Cc: [email protected]
 Subject: [onap-discuss] How to use Dmaap to subscribe notification


 


Hi, Ram


     Sorry to bother you. I just want to consult you how to use Dmaap to 
subscribe notifications? for example the SDNC want to subscribe notification 
which the ESR published. Do you have a demo?


 


thanks

 

 

 

 

 


王森枭 Wang  Senxiao


 


软件开发工程师 Software Development  Engineer
 软件平台南京开发一部/有线研究院/有线产品经营部 SDN Nanjing Development Dept. Ⅰ/Wireline  Product R&D 
Institute/Wireline Product Operation Division


 






 武汉市东湖高新技术开发区华师园路6号中兴通讯
 
 


ZTE Corporation, 6 Huashiyuan Rd, 


Donghu Hi-Tech Administrative area,Wuhan, P.R.China,430223


T: +86 027 51811060 M:+86  15988865324


E: [email protected] 
 www.zte.com.cn












-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12419): https://lists.onap.org/g/onap-discuss/message/12419
Mute This Topic: https://lists.onap.org/mt/25520872/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to