Skip to content

Add partition support to Kafka topic creation#56

Merged
martypitt merged 1 commit intomainfrom
allow-kafka-partitions
Aug 26, 2025
Merged

Add partition support to Kafka topic creation#56
martypitt merged 1 commit intomainfrom
allow-kafka-partitions

Conversation

@martypitt
Copy link
Contributor

  • Add optional partitions parameter to producer DSL (defaults to 1)
  • Implement explicit topic creation using Kafka AdminClient
  • Handle multiple producers for same topic by using max partition count
  • Create topics before starting producers to ensure proper partitioning

Closes #55

🤖 Generated with Claude Code

@martypitt martypitt requested a review from Copilot August 26, 2025 05:28
@netlify
Copy link

netlify bot commented Aug 26, 2025

Deploy Preview for orbital-nebula canceled.

Name Link
🔨 Latest commit 48d0c9b
🔍 Latest deploy log https://app.netlify.com/projects/orbital-nebula/deploys/68ad475c19869a000887b98f

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds partition support to Kafka topic creation in the Nebula DSL framework. It implements explicit topic creation using Kafka AdminClient before starting producers to ensure proper partitioning configuration.

  • Adds optional partitions parameter to producer DSL with default value of 1
  • Implements topic creation using AdminClient with partition count handling for duplicate topics
  • Updates data structures to include partition information

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
KafkaExecutor.kt Adds AdminClient-based topic creation logic with partition support and error handling
KafkaDsl.kt Updates producer DSL to include partitions parameter and modifies data structures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

- Add optional partitions parameter to producer DSL (defaults to 1)
- Implement explicit topic creation using Kafka AdminClient
- Handle multiple producers for same topic by using max partition count
- Create topics before starting producers to ensure proper partitioning

Closes #55

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@martypitt martypitt force-pushed the allow-kafka-partitions branch from 6855cf5 to 48d0c9b Compare August 26, 2025 05:34
@martypitt martypitt merged commit df8c926 into main Aug 26, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Kafka component to declare the number of partitions for a given topic

2 participants