← ClaudeAtlas

kora-kafka-producerlisted

Kora Kafka producers — @KafkaPublisher interface (KafkaModule), typed .Topic contracts, send signatures, @Json serializers, transactional sends. Use when publishing domain events or configuring kafka.producer.
kora-projects/kora-skills · ★ 1 · AI & Automation · score 72
Install: claude install-skill kora-projects/kora-skills
# Kora Kafka Producer > **Kora sub-skill — obey the [kora-v1 meta rules](../../SKILL.md) on every task:** **R0** ensure `.kora-agent/` docs+examples are cloned · **R1** read this sub-skill before writing code · **R2** Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · **R3** journal any incorrect Kora usage. Add comments/Javadoc only if asked. Kora generates a Kafka `Producer` implementation at compile time from an interface annotated with `@KafkaPublisher`. You declare the contract; the annotation processor wires the `KafkaProducer`, serializers, and telemetry. Read this first when: - declaring a typed publisher with `@KafkaPublisher`, - choosing a send signature (sync, `RecordMetadata`, async, `ProducerRecord`), - selecting serializers with `@Json` or `@Tag`, - sending atomically with `TransactionalPublisher`. For Kafka consumers (`@KafkaListener`), use the `kora-kafka-consumer` skill. --- ## Quick Start ### 1. Dependencies ```groovy dependencies { koraBom platform("ru.tinkoff.kora:kora-parent:1.2.19") annotationProcessor "ru.tinkoff.kora:annotation-processors" // KSP for Kotlin: ksp "ru.tinkoff.kora:symbol-processors" implementation "ru.tinkoff.kora:kafka" implementation "ru.tinkoff.kora:json-module" // only if you publish @Json payloads } ``` All `ru.tinkoff.kora:*` artifacts inherit their version from the `kora-parent` BOM — never pin them individually. ### 2. Enable the module ```java @KoraApp public interf