Skip to content

Refuse an incoming message? #1371

Answered by Lancetnik
GitHK asked this question in Q&A
Apr 15, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

About "refusing" you should search for decision in Acknowledgement your broker section. It is all about your broker behavior, FastStream just provides you with suitable API.

About blocking consuming: some broker like Kafka/Nats are working this way already. You can also take a look at your broker mechanism (like max qos for RMQ) or just use asyncio.Lock.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by GitHK
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