Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create topic by specifying topic id #48

Closed

Conversation

giuseppelillo
Copy link

No description provided.

@giuseppelillo giuseppelillo force-pushed the feat/create-topic-with-topic-id branch from d11ac44 to fa5ebbc Compare February 15, 2024 08:47
@giuseppelillo giuseppelillo changed the base branch from 3.6.1-2024-01-24 to 3.6.1-2024-02-06 February 15, 2024 08:47
Comment on lines +57 to +58
{ "name": "Id", "type": "uuid", "tag": 0, "taggedVersions": "5+", "versions": "5+", "ignorable": true,
"about": "Optional topic id."}

Choose a reason for hiding this comment

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

issue: We need to consider what happens if upstream adds a tagged field to this model. Would there be a graceful upgrade path in that case?

As an alternative, would it be feasible to use an entirely separate API, by copying this schema and somehow mapping it to the same internal endpoint? API key is a signed field so we could potentially use a negative value.

Copy link
Author

Choose a reason for hiding this comment

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

We need to consider what happens if upstream adds a tagged field to this model. Would there be a graceful upgrade path in that case?

We would then need to update the API to increment the tag of the Id field. I don't think there's any other way around.

would it be feasible to use an entirely separate API, by copying this schema and somehow mapping it to the same internal endpoint?

I tried to implement it, but unfortunately this feature would then impact many more parts of the codebase. I think we cannot go through this route.

Another option would be to just leave the APIs intact, and instead add the topic id as a special config that will be interpreted as the topic id instead of a normal topic config. In this way we would then be safe from all possible future API changes.

On the other side, CreateTopics didn't receive any update since 2021, when topic id were introduced, and I don't seem to find any relevant KIP that would change the API in the near future.

@giuseppelillo giuseppelillo force-pushed the feat/create-topic-with-topic-id branch from fa5ebbc to 184c44d Compare March 5, 2024 13:10
@giuseppelillo
Copy link
Author

Closing in favour of #50

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.

3 participants