Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These write/read streams are from Vertx implementation, and are very coupled to Vertx KafkaProducer. Spring Kafka Template could not implement all contract methods of Write stream, so we will need to more deeply test this functionality.

Next steps

Currently some our modules close Kafka producers, some not, that can trigger different memory leaks. 

Also regarding Vert Kafka documentation: When you are done with the producer, just close it, when all shared producers are closed, the resources will be released for you.

The new story has been created to address this:

Jira Legacy
serverSystem Jira
serverId01505d01-b853-3c2e-90f1-ee9b165564fc
keyMODDATAIMP-557
, so based on these words, when there are active threads, Vertx keeps producer open and does not invoke physical close() method that is desired for us(some sort of connection pooling).

In some future we need conversation when to migrate our modules to Kafka streams or using Spring Kafka Template, that described in this spike