-
Notifications
You must be signed in to change notification settings - Fork 1.7k
GH-4189 : Modify Topic Assignment Docs of @KafkaListener #4204
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
Conversation
3d62b5f to
b942c4b
Compare
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
b942c4b to
7a43432
Compare
| == Topic Partition Assignment | ||
|
|
||
| You can also configure POJO listeners with explicit topics and partitions (and, optionally, their initial offsets). | ||
| You can configure the topic for `@KafkaListener` in three ways. You must configure the topic in one of these ways. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one sentence per line.
| ---- | ||
|
|
||
|
|
||
| You can simply configure the topic directly by name. In this case, you can also configure the multiple topics like `topics = {"myTopic1", myTopic2"}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one sentence per line.
|
|
||
| You can also configure topics using topicPattern, which enables topic subscription based on a regular expression. | ||
|
|
||
| When you configure topics using either of these ways (topic or topic pattern), Kafka automatically assigns partitions according to the consumer group. Alternatively, you can configure POJO listeners with explicit topics and partitions (and, optionally, their initial offsets). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one sentence per line.
Signed-off-by: moonyoungCHAE <xpf_fl@naver.com>
|
@sobychacko I changed it. Thanks! |
Previously, the documentation only described manual topic partition assignment for @KafkaListener. I added information on how to configure it using by topics and topicPartitions. Thanks.
resolve: #4189