Skip to content

Communication between App Services #196

Closed Answered by lenny-goodell
vijay-hcl-epl asked this question in Q&A
Discussion options

You must be logged in to vote

@vijay-hcl-epl , you can send data to other App service in multiple ways. #1 or #2 are the prefered was. Choosing which one depends on how your data it processed. If fully process in the function pipeline, then chose #1. If combined and processed in background then choose #2.

  1. Use SetResponseData to publish the data to the MessageBus using a specific topic (from config) which the other App Service is subscribed. If your data has been transformed to a custom type the other App Service must know that type and set TargetType.
    https://docs.edgexfoundry.org/3.1/microservices/application/sdk/api/AppFunctionContextAPI/#setresponsedata
    https://docs.edgexfoundry.org/3.1/microservices/application/s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vijay-hcl-epl
Comment options

Answer selected by vijay-hcl-epl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants