yjshen opened a new pull request #5900: [pulsar-flink]Cache Pulsar client to 
make it shared among tasks in a process
URL: https://github.com/apache/pulsar/pull/5900
 
 
   ### Motivation
   
   In the current implementation, each source/sink task that talks to pulsar 
will create a PulsarClient of its own and create producer/consumer accordingly. 
Therefore, for processes with many Flink tasks running inside, we should make 
the client shared among tasks and avoid creating a new client for each of them. 
   
   ### Modifications
   
   This PR uses guavaCache to achieve PulsarClient sharing. 
   
   ### Verifying this change
   
   This change could be tested by setting flink taskmanager.numberOfTaskSlots 
bigger than 1 and check pulsar instance created.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): ( no)
     - The public API: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to