Registry / messaging / kafka-2-11

kafka-2-11

JSON →
library2.4.1javamavenunverified

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

<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>2.4.1</version> </dependency>
INSTALL
IMPORT
SIG · KAFKA-2-11
K
kafka-2-11
messagingjavav2.4.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

Minimal Kafka producer example sending a message to a topic.

import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; import java.util.Properties; public class KafkaExample { 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
breakingKafka 2.4.1 is outdated; consider upgrading to a newer version for security and performance improvements.
fix
Use Kafka 3.x series for better support and features.
affects: 2.4.1
Upgrade
Version history
2.4.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
kafka-2-11 — mvn dependency:get kafka-2-11 · libregistry