Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created September 15, 2021 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ereshzealous/1c59e14557f1d5952ca3eba6f99d10e7 to your computer and use it in GitHub Desktop.
Save ereshzealous/1c59e14557f1d5952ca3eba6f99d10e7 to your computer and use it in GitHub Desktop.
server:
port: 9081
spring:
cloud:
schema-registry-client:
endpoint: http://${SCHEMA_REGISTRY_HOST:localhost}:${SCHEMA_REGISTRY_PORT:8081}
stream:
kafka:
binder:
brokers: ${KAFKA_HOST:localhost}:${KAFKA_PORT:29092}
auto-add-partitions: true
min-partition-count: 3
bindings:
users-in-0:
destination: com.spring.kafka.avro.newuser
content-type: application/*+avro
group: eventServiceGroup
consumer:
use-native-encoding: true
ack-mode: RECORD # setting it explicitly as suggest in https://githubmemory.com/repo/spring-cloud/spring-cloud-stream-binder-kafka/issues/1079
management:
endpoints:
web:
exposure.include: beans, env, health, info, metrics, mappings
endpoint:
health:
show-details: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment