You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a single connection pool (a transport) for all the communication with our Kafka cluster. So I create a kafka.Transport and pass it into kafka.Writer. So far so good, however, when I try to do the same for kafka.Reader there is no configuration field.
Can you explain me what am I missing?
Is it possible that consumers are "always connected" thus connection pooling does not make any sense for them?
Is it safe to create a single dialer and share it similarly to transport?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I would like to create a single connection pool (a transport) for all the communication with our Kafka cluster. So I create a
kafka.Transport
and pass it intokafka.Writer
. So far so good, however, when I try to do the same forkafka.Reader
there is no configuration field.Can you explain me what am I missing?
Is it possible that consumers are "always connected" thus connection pooling does not make any sense for them?
Is it safe to create a single dialer and share it similarly to transport?
Here is my code:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions