差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
methodology:arch:changedevent [2016/09/29 23:35] tony [WebHook - Pub/Sub] |
methodology:arch:changedevent [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 7: | 行 7: | ||
在這種方法中,Client扮演著subscriber;Server則為publisher。Client會透過Server提供的介面去註冊某個有興趣的訊息,而Server當發生了事件後,會把訊息送給對應的subscriber。參考Jenkins Notification Plugin的UI設計: (圖片來自: [[https://wiki.jenkins-ci.org/display/JENKINS/Notification+Plugin|link]])\\ | 在這種方法中,Client扮演著subscriber;Server則為publisher。Client會透過Server提供的介面去註冊某個有興趣的訊息,而Server當發生了事件後,會把訊息送給對應的subscriber。參考Jenkins Notification Plugin的UI設計: (圖片來自: [[https://wiki.jenkins-ci.org/display/JENKINS/Notification+Plugin|link]])\\ | ||
{{:methodology:arch:jenkins_plugin_notification.png|}}\\ | {{:methodology:arch:jenkins_plugin_notification.png|}}\\ | ||
- | 以Jenkins的Plugin來說,User可以透過它的UI設定你的Client所接受的Format、Protocol(http、https、udp、tcp),有興趣的Event,還有要callback的URL。如果你的Server提供的介面是RestAPI,可以參考Google Drive的做法。 | + | 以Jenkins的Plugin來說,User可以透過它的UI設定你的Client所接受的Format、Protocol(http、https、udp、tcp),有興趣的Event,還有要callback的URL。如果你的Server提供的介面是RestAPI,可以參考Google Drive的做法。最重要的就在於User願意接受你所提出的格式。\\ |
\\ | \\ | ||
使用這方法的應用有: [[https://developers.google.com/drive/v3/web/push|Google Drive]]、[[https://azure.microsoft.com/en-us/documentation/articles/app-service-api-dotnet-triggers/|AZure]]、[[https://wiki.jenkins-ci.org/display/JENKINS/Notification+Plugin|Jenkins Plugin]]。 | 使用這方法的應用有: [[https://developers.google.com/drive/v3/web/push|Google Drive]]、[[https://azure.microsoft.com/en-us/documentation/articles/app-service-api-dotnet-triggers/|AZure]]、[[https://wiki.jenkins-ci.org/display/JENKINS/Notification+Plugin|Jenkins Plugin]]。 |