Skip to content

Commit

Permalink
feat: Switch to Redis as the default MessageBus for template service (#…
Browse files Browse the repository at this point in the history
…811)

closes #810

Signed-off-by: lenny <[email protected]>
  • Loading branch information
Lenny Goodell authored May 6, 2021
1 parent 366815e commit 89c75ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app-service-template/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.15

require (
github.com/edgexfoundry/app-functions-sdk-go/v2 v2.0.0-dev.14
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.64
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.78
github.com/google/uuid v1.2.0
github.com/stretchr/testify v1.7.0
)
Expand Down
14 changes: 7 additions & 7 deletions app-service-template/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ RetryWaitPeriod = "1s"

[Trigger]
Type="edgex-messagebus"
SubscribeTopics="events, edgex/events"
SubscribeTopics="edgex/events/#"
PublishTopic="event-xml" #TODO: remove if service is NOT publishing back to the message bus
[Trigger.EdgexMessageBus]
Type = 'zero'
Type = 'redisstreams'
[Trigger.EdgexMessageBus.SubscribeHost]
Host = 'localhost'
Port = 5563
Protocol = 'tcp'
Port = 6379
Protocol = 'redis'
[Trigger.EdgexMessageBus.PublishHost] # TODO: Remove if service is NOT publishing back to the message bus
Host = '*'
Port = 5564
Protocol = 'tcp'
Host = 'localhost'
Port = 6379
Protocol = 'redis'

# TODO: If using mqtt messagebus, Uncomment this section and remove above [Trigger] section,
# Otherwise remove this commented out block
Expand Down

0 comments on commit 89c75ca

Please sign in to comment.