Broadleaf Microservices
  • v1.0.0-latest-prod

Broadleaf Micro Cloud Stream Binding Common

Overview

This library includes common utilities and components to support Spring CloudStream Binding configuration for Broadleaf Microservices.

Custom Suffix Bind Handler Usage Given the following explicity defined Spring Cloudstream Destination and Groups:

name: "topics/augmentationModified"
name: "topics/auth-message"
name: "topics/batchCompletion"
name: "topics/batchIndexRequest"
...

By including the following dependency:

<dependency>
<groupId>com.broadleafcommerce.microservices</groupId>
<artifactId>broadleaf-cloud-stream-binding</artifactId>
<version>[version]</version>
</dependency>

And defining the following configuration property:

broadleaf:
cloud:
stream:
bindings:
suffix: CUSTOMSUFFIX

All explicitly defined cloudstream binding properties will be modified with the specified suffix:

name: "topics/augmentationModified-CUSTOMSUFFIX"
name: "topics/auth-message-CUSTOMSUFFIX"
name: "topics/batchCompletion-CUSTOMSUFFIX"
name: "topics/batchIndexRequest-CUSTOMSUFFIX"
...