apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
13.94k stars 3.53k forks source link

[improve][fn] Make producer cache bounded and expiring in Functions/Connectors #22945

Closed lhotari closed 1 week ago

lhotari commented 1 week ago

Motivation

In Pulsar Functions and Pulsar IO Connectors, there's a Pulsar Producer cache, that doesn't expire the producers and doesn't have a maximum size. This is a problem for functions/connectors that produce to a large number of topics.

Modifications

Documentation

lhotari commented 1 week ago

There's also #22950 improving code and fixing bugs in this area.