- Add the object of
globalEvent
to emit the events of client's and producer's status. - Use a producer pool to cache the producer with same kafka host, in other words, you will only create a single producer instance, when you instantiate diffrent
KafkaProducer
with the same kafka host.
- Remove the event of
EVENT_CLIENT_READY
EVENT_CLIENT_ERROR
EVENT_CLIENT_CLOSE
EVENT_PRODUCER_READY
EVENT_PRODUCER_ERROR
fromKafkaProducer
, these events mentioned above, are move to the objectglobalEvent
.
- Emit event when kafkaClient closed.
- Add the parameter of
prepareMiddleware
toKafkaProducer
.
- Remove the option of
zookeeperHost
formKafkaProducer
andKafkaConsumer
. - Remove the
manager
object. - Remove the function of
addDataDelay
formKafkaProducer
. - Remove the parameter of
topicList
fromKafkaProducer
. - The function
addData
ofKafkaProducer
returns a boolean value, which indicate whether the data to send is vaild.
- Bump the package
node-kafka
to 3.0.1.
- Resovle the issue of double stringify.
- Add parameter of
fromOffset
to KafkaConsumer.
- Add feature of emitting event of
KafkaProducer.EVENT_SEND_ERROR
.
- Use consumerGroup instead of consumer.
- Add the feature of using broker url to connect to the kafka client.
- Use HighLevelProducer instead of Producer.
- Add the feature of setting the groupId of consumer.
- Add the parameter of the count of messages published to the event of
EVENT_DELAY_MESSAGE_SEND_FINISHED
- Do code refactoring, create kafka client in the KafkaProducer and KafkaConsumer.
- Add feature of emitting event of
KafkaProducer.EVENT_CLIENT_READY
KafkaProducer.EVENT_CLIENT_ERROR
KafkaProducer.EVENT_PRODUCER_READY
KafkaProducer.EVENT_PRODUCER_ERROR
KafkaConsumer.EVENT_CLIENT_READY
KafkaConsumer.EVENT_CLIENT_ERROR
KafkaConsumer.EVENT_CONSUMER_ERROR
.
- Fxed the error of breaking down when call addKafkaSchedule twice with the same name.
- Add some testcases.
- Add the feature of emitting event of
KafkaProducer.EVENT_DELAY_MESSAGE_SEND_FINISHED
when delay message publish finished.
- Add feature f sending message delay.
- Add travis-ci.yml.