Are you an LLM? You can read better optimized documentation at /guide/extensions/kafka.md for this page in Markdown format
Kafka
The Kafka extension provides support for Kafka, implementing CommandBus, DomainEventBus, and StateEventBus.
Installation
kotlin
implementation("me.ahoo.wow:wow-kafka")groovy
implementation 'me.ahoo.wow:wow-kafka'xml
<dependency>
<groupId>me.ahoo.wow</groupId>
<artifactId>wow-kafka</artifactId>
<version>${wow.version}</version>
</dependency>Configuration
- Configuration class: KafkaProperties
- Prefix:
wow.kafka.
| Name | Data Type | Description | Default Value |
|---|---|---|---|
enabled | Boolean | Whether to enable | true |
bootstrap-servers | List<String> | Kafka server addresses | |
topic-prefix | String | Topic prefix | wow. |
properties | Map<String, String> | Common configuration | |
producer | Map<String, String> | Producer configuration | |
consumer | Map<String, String> | Consumer configuration |
YAML Configuration Example
yaml
wow:
command:
bus:
type: kafka
kafka:
bootstrap-servers: localhost:61530
topic-prefix: 'wow.'