Skip to content

Commit

Permalink
Config tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gAmUssA committed Feb 11, 2020
1 parent 5274359 commit 05d8039
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/application-cloud.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This profile will be used in CF environment
topic:
name: viktor-users
name: users
partitions-num: 6
replication-factor: 3
server:
Expand Down
18 changes: 17 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,20 @@ spring:
default-topic:
logging:
level:
root: info
root: info

# spring cloud streams
spring.cloud.stream.kafka.streams.binder.configuration.commit.interval.ms: 1000
spring.cloud.stream.kafka.streams:
binder.configuration:
default.key.serde: org.apache.kafka.common.serialization.Serdes$StringSerde
default.value.serde: io.confluent.kafka.streams.serdes.avro.SpecificAvroSerde
bindings.users.consumer.application-id: user-filter
spring.cloud.stream.bindings.users-filtered:
destination: users-filtered
producer:
useNativeEncoding: true
spring.cloud.stream.bindings.users:
destination: users
consumer:
useNativeDecoding: true

0 comments on commit 05d8039

Please sign in to comment.