Registry / messaging / kafka-2-10

kafka-2-10

JSON →
library0.8.1javamavenunverified

Apache Kafka is a distributed streaming platform for building real-time data pipelines and streaming applications.

<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.8.1</version> </dependency>
INSTALL
IMPORT
SIG · KAFKA-2-10
K
kafka-2-10
messagingjavav0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KafkaProducer
org.apache.kafka.clients.producer.KafkaProducer

Sends a message to a Kafka topic using the producer API.

import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; import java.util.Properties; public class Main { public static void main(String[] args) { Properties props = new Properties(); props.put("bootstrap.servers", "localhost:9092"); props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer"); KafkaProducer<String, String> producer = new KafkaProducer<>(props); producer.send(new ProducerRecord<>("my-topic", "key", "value")); producer.close(); } }
Debug
Known issues
breakingVersion 0.8.1 is very old and lacks many features; consider upgrading to a newer version.
fix
Migrate to a recent Kafka version (e.g., 3.x) for better performance and security.
affects: <=0.8.1
Upgrade
Version history
0.8.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
kafka-2-10 — mvn dependency:get kafka-2-10 · libregistry