Skip to content

Possibility of using manual partition assignment instead of consumer groups in KafkaBroker #1338

Answered by Lancetnik
andrijadukic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! We are planning to add this option in #1319 for confluent and aio-kafka brokers both

It should looks like

@broker.subscriber(partitions=[
    TopicPartition(topic="some-topic", partition=0, offset=OFFSET_END),
    TopicPartition(topic="some-topic", partition=1, offset=OFFSET_END),
])
def handle2(message: str):
    do_something()

We are using @broker.subscriber specific options for all ways to subscribe on events

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrijadukic
Comment options

Answer selected by andrijadukic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants