Command Palette

Search for a command to run...

Назад к скиллам
скилл № 07904

data-streaming

Use when the user asks to stream database changes with Debezium into Kafka, CDC, Kafka topic and partition design, Flink or Kafka Streams processing…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить data-streaming в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Data Streaming

Purpose

Design streaming data pipelines with Kafka topic architecture, Flink/Kafka Streams processing, schema evolution, and reliability guarantees.

Agent Protocol

Trigger

Exact user phrases: "streaming", "Kafka", "Flink", "Kinesis", "stream processing", "event stream", "real-time", "CDC", "change data capture", "message queue", "stream architecture", "Kafka topic", "Kafka consumer", "stream processing pipeline", "exactly-once", "schema registry", "Avro", "Debezium", "ksqlDB".

Input Context

Before activating, verify:

  • Streaming platform (Kafka, Kinesis, Pulsar)
  • Processing framework (Flink, Kafka Streams, ksqlDB, Spark Streaming)
  • Source systems (database CDC, application events, IoT, logs)
  • Target systems (warehouse, lake, search index, cache)
  • Throughput and latency requirements
  • Data volume and retention requirements
  • Security and compliance needs
  • Team expertise with streaming technologies

Output Artifact

Streaming pipeline design with topic model, processing logic, reliability config as YAML and SQL.

Response Format

# Topic topology
# Partition strategy
# Consumer group config
-- ksqlDB query
// Flink job skeleton

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Topic model defined with partition count and retention
  • Schema Registry configured with evolution rules
  • Stream processing job with exactly-once semantics
  • CDC pipeline from source database configured
  • Error handling with DLQ defined
  • Monitoring and lag alerting configured
  • Security configured (TLS, auth, ACLs)
  • Data retention and compaction strategy defined

Max Response Length

300 lines of code and configuration.

Kafka Architecture

Brokers and Clusters

A Kafka cluster consists of multiple brokers. Each broker is a server that stores topic partitions and serves produce/consume requests. Brokers are identified by a unique ID. A cluster typically has 3-7 brokers for production. Controller broker handles partition leadership and cluster metadata. Brokers should have sufficient disk (RAID 10, SSDs) and network bandwidth for the expected throughput.

Topics and Partitions

A topic is a logical stream of messages. Each topic has multiple partitions for parallelism. Messages within a partition are ordered and assigned an offset. Partitions are distributed across brokers for fault tolerance. Partition count determines the maximum parallelism for consumers. Keyed messages go to the same partition (hash(key) % partition_count). Partitions are the unit of parallelism and replication.

Replication and ISR

Each partition has a leader (handles all reads/writes) and followers (replicate from leader). In-Sync Replicas (ISR) are followers that are fully caught up with the leader. The min.insync.replicas config sets the minimum number of replicas that must acknowledge a write. acks=all means the leader waits for all in-sync replicas to acknowledge. If a follower falls behind (replication lag > replica.lag.time.max.ms), it is removed from the ISR.

Consumer Group Rebalancing

A consumer group divides topic partitions among its members. When a consumer joins, leaves, or fails, the group rebalances. Eager rebalancing stops all consumers and reassigns all partitions (causes a pause). Cooperative rebalancing reassigns incrementally (minimal pause). Static group membership (group.instance.id) provides stable assignment across restarts. Monitor rebalance frequency — >10 rebalances per hour indicates instability.

Exactly-Once Semantics in Kafka

Producer Semantics

acks=0: fire-and-forget, no acknowledgment, possible data loss. acks=1: leader acknowledges, possible leader failover loss. acks=all (with min.insync.replicas): leader + ISR acknowledge, no loss. Enable enable.idempotence=true to prevent duplicate produces within a session. Set transactional.id for exactly-once across partitions.

Consumer Semantics

At-most-once: commit offset before processing (message may be lost on failure). At-least-once: commit offset after processing (message may be reprocessed on failure). Exactly-once: process and commit offset atomically via transactional API. Use isolation.level=read_committed to only read committed messages. Combine with idempotent sinks (upsert, idempotent operations) for pragmatic exactly-once.

Transactional API

producer.initTransactions();
try {
    producer.beginTransaction();
    producer.send(record1);
    producer.send(record2);
    producer.sendOffsetsToTransaction(offsets, consumerGroup);
    producer.commitTransaction();
} catch (Exception e) {
    producer.abortTransaction();
}

Kafka Streams / ksqlDB

Kafka Streams

Kafka Streams is a lightweight library for stream processing within a Java application. It processes one record at a time. State sto

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/exactly-once.md
  • references/flink-streaming.md
  • references/kafka-architecture.md
  • references/merged-backend-data-streaming.md
  • references/merged-data-kafka-event-streaming.md
  • references/pulsar-patterns.md
  • references/stream-processing.md
  • references/streaming-architecture-2.md
  • references/streaming-architecture.md
  • references/streaming-databases.md
  • references/streaming-fundamentals.md
  • references/streaming-monitoring.md
  • references/streaming-operations.md
  • references/streaming-patterns.md
  • references/streaming-security.md
  • references/streaming-testing.md

FAQ

Что делает скилл data-streaming?

Use when the user asks to stream database changes with Debezium into Kafka, CDC, Kafka topic and partition design, Flink or Kafka Streams processing, exactly-once, watermarks or Kinesis. Produces streaming architecture, topic design and processing jobs with delivery guarantees. Not for batch pipelines (use data-etl-pipeline) or app messaging (use backend-message-queue).

Как установить скилл data-streaming?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-streaming запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-streaming с