Hello everyone.
I'm doing some experiments in order to decide the new "streams" feature of rabbitmq can be useful for my use case.
I'm experiencing some weird behaviour I wish you could explain me.
I wrote a dummy producer which sends a fixed number of messages (i.e.: 1000) to a stream, with a dummy consumer which consumes from it.
I don't want to lose any message and I want to avoid to consume duplicates, so I set, producer side, "batchSize" to 1 and "maxUnconfirmedMessages" to 1.
On consumer side, instead, I set to commit the offset to the server every message.
The weird behaviour is that, with this configuration, I get on the stream more or less 1900 messages (for 1000 messages I sent); this overhead, I think is due to the offset commit, isn't it?
But if I set, producer side, "maxUnconfirmedMessages" to the default (10000), the final number of messages on the streams are more or less 1100 (a lot less!).
Why do I get this behaviour?
I'm using the Java client, last version.
Thanks