Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kafkaQuickStart.adoc #1065

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/main/docs/guide/kafkaQuickStart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependency:micronaut-kafka[groupId="io.micronaut.kafka"]

== Configuring Kafka

The minimum requirement to configure Kafka is set the value of the `kafka.bootstrap.servers` property in `application.yml`:
The minimum requirement to configure Kafka is set the value of the `kafka.bootstrap.servers` property in `application.yml` or `bootstrap.yml` :

.Configuring Kafka
[configuration]
Expand All @@ -28,20 +28,33 @@ kafka:

TIP: You can also set the environment variable `KAFKA_BOOTSTRAP_SERVERS` to a comma separated list of values to externalize configuration.

If your broker needs to setup SSL, it can be configured this way:
You may also add any Apache Kafka configuration options directly under the kafka node. These configurations will apply to consumers, producers and streams:

.Configuring Kafka
[configuration]
----
kafka:
bootstrap:
servers: localhost:9092
reconnect.backoff.ms: 30000
retry.backoff.ms: 32000
----

If your broker needs to setup SSL, it can be configured this way:

.Configuring Kafka
[configuration]
----
kafka:
bootstrap:
servers: localhost:9093
ssl:
keystore:
location: /path/to/client.keystore.p12
password: secret
type: PKCS12
truststore:
location: /path/to/client.truststore.jks
location: /path/to/client.truststore.p12
password: secret
type: PKCS12
security:
Expand Down