<@U078Y59KC3B> can i use ReconsumeLater with key ...
# ask-ai
r
@RunLLM can i use ReconsumeLater with key shared subscriptions? do i have challenges?
r
Yes, you can use
ReconsumeLater
with Key_Shared subscriptions in Apache Pulsar. However, there are some challenges and considerations to be aware of. According to the Pulsar documentation, the retry letter topic is enabled in Shared subscription types, and it is more suitable for messages that require a large number of retries with a configurable retry interval. The Key_Shared subscription type allows multiple consumers to attach to the same subscription, but messages with the same key are delivered to only one consumer, which can complicate message redelivery if not managed properly. Additionally, the Pulsar GitHub issue highlights that using
ReconsumeLater
can lead to a large number of producers being created for each consumer per partition, which can exceed limits and cause performance issues. Therefore, while it is possible to use
ReconsumeLater
with Key_Shared subscriptions, careful management of resources and understanding of the subscription's behavior is necessary to avoid potential challenges. Would you like more detail on how to manage these challenges effectively? Sources: - Pulsar documentation - Pulsar GitHub issue 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.