Closed mnorkin closed 5 years ago
It looks like its a breaking change as current version allows GroupConsumer to subscribe to multiple topics (via subscriptions
array).
@oleksiyk sorry, was not sure about that than I was refactoring. Will update tomorrow.
Should I add test for GroupConsumer to check for multiple topics?
@mnorkin Well actually it also breaks the Producer
too, which allows to send messages to any topic.
@oleksiyk I've rewritten the client to not break API. I'll make some performance comparisons for high number of topics to provide some evidence why this PR is important.
I'll make some performance comparisons for high number of topics to provide some evidence why this PR is important.
I do believe there is significant difference. However there must be tests added that verify that this PR really supports producing and consuming from multiple topics within the same instance of Producer
, SimpleConsumer
or GroupConsumer
. Otherwise I won't be able to merge it.
I'm adding more tests
@oleksiyk updated the description, build is green 🎉
@oleksiyk any updates?
@mnorkin Give me some time to check and try it, it is a big update and I don't want to break any existing code relying on this library.
@mnorkin Can you please make new PR, I accidentally merged this one while thinking I'm looking at other project page. Sorry about this.
And can you please revert the ability to run tests locally, without Doker.
Implement high performant metadata read from kafka cluster.
Previous implementation looped over all the topics, which it received from kafka cluster. Current implementation fetches only metadata by topic, so no loop over all topics is required.
npm run test