Minor Tunings

This commit is contained in:
Jay Ehsaniara
2021-06-30 08:13:29 -07:00
parent ff1c5c9177
commit 145736c8fe
3 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ version: '3'
services:
kafka:
image: wurstmeister/kafka
container_name: kafka-mc
container_name: kafka
ports:
- "9092:9092"
environment:

View File

@@ -66,6 +66,9 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<configuration>
<layers>
<enabled>true</enabled>
</layers>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>

View File

@@ -30,11 +30,12 @@ spring.cloud.stream:
binder:
brokers: localhost:9092 # just to use it in the service app, Its already 'localhost:9092' by default
autoAddPartitions: true
minPartitionCount: 6
configuration:
application.id: ${spring.application.name}
state.dir: ${spring.application.name}${server.port} # to give a unique dir name in case you run multiple of this app on the same machine
state.dir: state-${spring.application.name}-${server.port} # to give a unique dir name in case you run multiple of this app on the same machine
default.key.serde: org.apache.kafka.common.serialization.Serdes$UUIDSerde
default.value.serde: org.apache.kafka.common.serialization.Serdes$StringSerde
commit.interval.ms: 1000
commit.interval.ms: 100
auto.offset.reset: latest
logging.level.com.ehsaniara.scs_kafka_intro: debug