Kafka
The Devprime platform natively supports Apache Kafka, a streaming platform developed by the Apache Software Foundation. The project aims to provide a unified, high-capacity, low-latency platform for real-time data processing.
Apache Kafka can be used on-premise, cloud, docker, kubernetes, and managed platforms such as Confluent Cloud, Azure Event Hub, and others.
Setting Up Stream with Kafka
The configuration example below demonstrates the use of Apache Kafka defined with the Alias “Stream1” and as the default for sending events. By enabling the “Subscribe” item, we are subscribing to this topic and receiving events in the Stream Adapter Hub.
|
|
In the example below, we’re detailing the default Adapter settings and Kafka-specific settings.
General | — |
---|---|
Enable | Enable the Stream adapter (True/False) |
Alias | Defines a unique name to identify the service |
Default | Sets as default to the centary of having more than one Stream (True/False) |
StreamType | Sets the Stream type (RabbitMQ |
HostName | Configure the Kafka |
User | Configure the user |
Password | Configures the user’s password |
Port | Configure the port |
Retry | Configure the number of retries |
Fallback | Configures a State for automatic resitence in case of failure |
Subscribe | Set up Kafka |
Example in the application log with this configuration:
|
|
YAML example with application settings:
|
|