Este conteúdo não está disponível no idioma selecionado.
Chapter 45. Kafka
Sent and receive messages to/from an Apache Kafka broker.
45.1. What’s inside Copiar o linkLink copiado para a área de transferência!
-
Kafka component, URI syntax:
kafka:topic
Please refer to the above link for usage and configuration details.
45.2. Maven coordinates Copiar o linkLink copiado para a área de transferência!
Create a new project with this extension on code.quarkus.redhat.com
Or add the coordinates to your existing project:
<dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-kafka</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-kafka</artifactId>
</dependency>
45.3. Usage Copiar o linkLink copiado para a área de transferência!
45.3.1. Quarkus Kafka Dev Services Copiar o linkLink copiado para a área de transferência!
Camel Quarkus Kafka can take advantage of Quarkus Kafka Dev services to simplify development and testing with a local containerized Kafka broker.
Kafka Dev Services is enabled by default in dev & test mode. The Camel Kafka component is automatically configured so that the brokers
component option is set to point at the local containerized Kafka broker. Meaning that there’s no need to configure this option yourself.
This functionality can be disabled with the configuration property quarkus.kafka.devservices.enabled=false
.
45.4. Additional Camel Quarkus configuration Copiar o linkLink copiado para a área de transferência!
Configuration property | Type | Default |
---|---|---|
If |
|
|
Configuration property fixed at build time. All other configuration properties are overridable at runtime.