MyGit

0.5.5

airtai/faststream

版本发布时间: 2024-05-09 19:47:00

airtai/faststream最新发布版本:0.5.28(2024-10-21 03:51:54)

What's Changed

Add support for explicit partition assignment in aiokafka KafkaBroker (special thanks to @spataphore1337):

from faststream import FastStream
from faststream.kafka import KafkaBroker, TopicPartition

broker = KafkaBroker()

topic_partition_fisrt = TopicPartition("my_topic", 1)
topic_partition_second = TopicPartition("my_topic", 2)

@broker.subscribe(partitions=[topic_partition_fisrt, topic_partition_second])
async def some_consumer(msg):
   ...

Full Changelog: https://github.com/airtai/faststream/compare/0.5.4...0.5.5

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-05-09发行的版本