This commit is contained in:
Muyao Feng 2022-02-21 17:21:45 +08:00
Родитель e02e750d33
Коммит f8b5ff8460
1 изменённых файлов: 16 добавлений и 10 удалений

Просмотреть файл

@ -531,8 +531,10 @@ When the batch-consumer mode is enabled, the specific headers of batched message
NOTE: When publish messages, all the above batch headers if exist will be removed from the messages to send.
===== Multi Binders Support
Step 1. To use multiBinders of EventHubs, we need to configure below properties in application.yml
===== Multi Binder Support
This sample takes connection string as example. Credentials of service priciple and MSI are also supported, users can set related properties in each binder's environment settings.
Step 1. To use multiple binders of EventHubs, we need to configure below properties in application.yml
[source,yaml]
----
spring:
@ -562,11 +564,12 @@ spring:
cloud:
azure:
eventhubs:
namespace: ${EVENTHUB_NAMESPACE_01}
connection-string: ${EVENTHUB_NAMESPACE_CONNECTION_STRING_01}
processor:
checkpoint-store:
container-name: ${CHECKPOINT_CONTAINER}
container-name: ${CHECKPOINT_CONTAINER_01}
account-name: ${CHECKPOINT_STORAGE_ACCOUNT}
account-key: ${CHECKPOINT-ACCESS-KEY}
eventhub-2:
type: eventhubs
default-candidate: false
@ -575,11 +578,12 @@ spring:
cloud:
azure:
eventhubs:
namespace: ${EVENTHUB_NAMESPACE_02}
connection-string: ${EVENTHUB_NAMESPACE_CONNECTION_STRING_02}
processor:
checkpoint-store:
container-name: ${CHECKPOINT_CONTAINER}
container-name: ${CHECKPOINT_CONTAINER_02}
account-name: ${CHECKPOINT_STORAGE_ACCOUNT}
account-key: ${CHECKPOINT-ACCESS-KEY}
eventhubs:
bindings:
consume1-in-0:
@ -1007,8 +1011,10 @@ See the <<si-sb-headers, Service Bus message headers>> for the basic message hea
NOTE: When setting the partiton key, the priority of message header is higher than Spring Cloud Stream property. So `spring.cloud.stream.bindings.<binding-name>.producer.partition-key-expression` will take effect only when none of the headers of `ServiceBusMessageHeaders#SESSION_ID`, `ServiceBusMessageHeaders#PARTITION_KEY`, `AzureHeaders#PARTITION_KEY` is configured.
===== Multi Binders Support
Step 1. To use multiBinders of ServiceBus, we need to configure below properties in application.yml
===== Multi Binder Support
This sample takes connection string as example. Credentials of service priciple and MSI are also supported, users can set related properties in each binder's environment settings.
Step 1. To use multiple binders of ServiceBus, we need to configure below properties in application.yml
[source,yaml]
----
spring:
@ -1037,7 +1043,7 @@ spring:
cloud:
azure:
servicebus:
namespace: ${SERVICEBUS_NAMESPACE_01}
connection-string: ${SERVICEBUS_NAMESPACE_CONNECTION_STRING_01}
servicebus-2:
type: servicebus
default-candidate: false
@ -1046,7 +1052,7 @@ spring:
cloud:
azure:
servicebus:
namespace: ${SERVICEBUS_NAMESPACE_02}
connection-string: ${SERVICEBUS_NAMESPACE_CONNECTION_STRING_02}
servicebus:
bindings:
consume1-in-0: