Replies: 3 comments 6 replies
-
I received this out-of-band and I suggested starting a discussion. The suggestion is to add an option to consume the main and retry topics from a single container. |
Beta Was this translation helpful? Give feedback.
-
That's interesting, and looks not that hard to implement. Might require some refactoring in the code though, mainly in the We do make a few changes in the container properties for the retry topics that might not be desirable for the main one, such as adjusting the In general, looks like it'd be a better use of the resources, since currently the backed off containers only keep polling the broker for the heartbeat. If I understand correctly, we'd just need to set all topics to the same We'd probably also have to look at how this would interfere with other features, such as the Looks good to me, we can discuss it further here, or maybe open an issue already. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thank you both for the quick reply! Just thinking of options and flexibility - Would be better to have 2 consumers, 1 for the main topic and 2 for all the retries and DLT? So we don't affect the behaviour or block the main topic (although this might not be an issue) Happy to open an issue! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Currently there is one consumer per topic. If an app consumes from multiple topics which will implement multiple retries and there are multiple instances of this application deployed, then the number of consumers created will be quite large.
e.g. If we have 3 topics, each with 3 retries and 1 DLT. Then we will have 3*4= 12 consumers and if we have 50 instances then thats 12 * 50 = 600 consumers.
@tomazfernandes - Is this possible? or is there a way round this?
Beta Was this translation helpful? Give feedback.
All reactions