[
https://issues.apache.org/jira/browse/KAFKA-6690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16528109#comment-16528109
]
Nick Afshartous edited comment on KAFKA-6690 at 6/29/18 7:16 PM:
-----------------------------------------------------------------
This seems like it would require an API change. For example, if we added a new
class
{code}
TopicPriority(java.lang.String topic, int priority)
{code}
then there would be a new {{KafkaConsumer.subscribe}} method
{code}
public void subscribe(java.util.List<TopicPriority> topicPriorities)
{code}
Doe this capture then intent ?
was (Author: nafshartous):
This seems like it would require an API change. For example, if we added a new
class
{code}
TopicPrioritiy(java.lang.String topic, int priority)
{code}
then there would be a new {{KafkaConsumer.subscribe}} method
{code}
public void subscribe(java.util.List<TopicPriority> topicPriorities)
{code}
Doe this capture then intent ?
> Priorities for Source Topics
> ----------------------------
>
> Key: KAFKA-6690
> URL: https://issues.apache.org/jira/browse/KAFKA-6690
> Project: Kafka
> Issue Type: New Feature
> Components: streams
> Reporter: Bala Prassanna I
> Priority: Major
>
> We often encounter use cases where we need to prioritise source topics. If a
> consumer is listening more than one topic, say, HighPriorityTopic and
> LowPriorityTopic, it should consume events from LowPriorityTopic only when
> all the events from HighPriorityTopic are consumed. This is needed in Kafka
> Streams processor topologies as well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)