You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/09/21 02:27:49 UTC
[GitHub] daisy-ycguo commented on a change in pull request #273: add
architecture docs
daisy-ycguo commented on a change in pull request #273: add architecture docs
URL: https://github.com/apache/incubator-openwhisk-package-kafka/pull/273#discussion_r219368400
##########
File path: docs/arch/README.md
##########
@@ -0,0 +1,66 @@
+## MessageHub Trigger Provider Architecture
+
+### Create Trigger Feed
+
+
+**Scenario:** User wants to create a trigger `trigger1` for MessageHub service instance `instance1`, using Credentials `Credential-1` and use rule `rule1` to invoke action `action1` with messages from topic `topic1`.
+
+1. Developer creates a MessageHub service `instance1`
+2. Developer creates topic `topic1` in MessageHub service `instance1`
+3. Developer creates Credential key `Credential-1` for MessageHub `instance1`
+4. Developer creates trigger `trigger1` on OpenWhisk, the trigger stores the annotation `feed` with the feedAction name from system package or binded package.(`/whisk.system/messagingWeb/messageHubFeed`).
+5. Developer invokes action feedAction to create trigger feed passing input parameters (lifeCycle:`CREATE`, trigger1, Credentials1, Options:`topic1`)
+6. The feedAction invokes feedWebAction forwarding input parameter.
+7. The feedWebAction inserts trigger feed doc into DB for worker group 0 (feedWebActions protects DB credentials)
Review comment:
use singular format: feedWebActions => feedWebAction
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services