Я бы хотел переместить spring.kafka.streams.*
под spring.cloud.stream
- возможно ли это? Я думал о streams-properties
аналогично consumer-properties
или producer-properties
, но это не работает.
spring:
cloud:
config:
override-system-properties: false
server:
health:
enabled: false
stream:
bindings:
input_technischerplatz:
destination: technischerplatz
output_technischerplatz:
destination: technischerplatz
default:
group: '${spring.application.name}'
consumer:
max-attempts: 5
kafka:
binder:
auto-add-partitions: false
auto-create-topics: false
brokers: '${values.spring.kafka.bootstrap-servers}'
configuration:
header.mode: headers
consumer-properties:
allow.auto.create.topics: false
auto.offset.reset: '${values.spring.kafka.consumer.auto-offset-reset}'
enable.auto.commit: false
isolation.level: read_committed
max.poll.interval.ms: 300000
max.poll.records: 100
session.timeout.ms: 300000
header-mapper-bean-name: defaultKafkaHeaderMapper
producer-properties:
acks: all
key.serializer: org.apache.kafka.common.serialization.StringSerializer
max.in.flight.requests.per.connection: 1
max.block.ms: '${values.spring.kafka.producer.max-block-ms}'
retries: 10
required-acks: -1
kafka:
streams:
applicationId: '${spring.application.name}_streams'
properties:
default.key.serde: org.apache.kafka.common.serialization.Serdes$StringSerde
default.timestamp.extractor: org.apache.kafka.streams.processor.LogAndSkipOnInvalidTimestamp
state.dir: '${values.spring.kafka.streams.properties.state.dir}'