Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mcolomerc/spring-kafka-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-kafka-consumer

Spring Kafka consumer with update config endpoint

Provides an endpoint to update the Kafka config and restarts the Spring container.

Implemented only with:

 security.protocol = SASL_SSL 
 sasl.mechanism = PLAIN 

Update Configuration:

curl -X POST http://localhost:8080/kafka/config/update \
-H "Content-Type: application/json" \
-d '{
"groupId": "spring-kafka-consumer",
"topics": ["topic_11"],
"bootstrapServers": "pkc-zpjg0.eu-central-1.aws.confluent.cloud:9092",
"saslJaasConfig": "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"API_KEY\" password=\"API_SECRET\";"
}'

About

Spring Kafka consumer with update config endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages