You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Victoria Zuberman <vi...@imperva.com> on 2020/10/14 11:32:08 UTC

Number of topics to which provider sends

Hi,

Background: Java, Kafka 2.1.0

I have application that sends to two different topics.
In theory I can use the same provider.
Are there any advantages to having provider per topic?
I looked for best practices for this matter but didn’t find any...

Thanks,
Victoria
-------------------------------------------
NOTICE:
This email and all attachments are confidential, may be proprietary, and may be privileged or otherwise protected from disclosure. They are intended solely for the individual or entity to whom the email is addressed. However, mistakes sometimes happen in addressing emails. If you believe that you are not an intended recipient, please stop reading immediately. Do not copy, forward, or rely on the contents in any way. Notify the sender and/or Imperva, Inc. by telephone at +1 (650) 832-6006 and then delete or destroy any copy of this email and its attachments. The sender reserves and asserts all rights to confidentiality, as well as any privileges that may apply. Any disclosure, copying, distribution or action taken or omitted to be taken by an unintended recipient in reliance on this message is prohibited and may be unlawful.
Please consider the environment before printing this email.

Re: Number of topics to which provider sends

Posted by Liam Clarke-Hutchinson <li...@adscale.co.nz>.
Hi Victoria,

The obvious advantage is that you could configure producers differently.

For example, one may be sending small messages as fast as possible, while
another producer may be utilising batching with large batch sizes and a
long linger to send larger amounts of data more efficiently, but slower.

So it really depends on how you intend to use the two topics.

Kind regards,

Liam Clarke-Hutchinson

On Thu, 15 Oct. 2020, 12:32 am Victoria Zuberman, <
victoria.zuberman@imperva.com> wrote:

> Hi,
>
> Background: Java, Kafka 2.1.0
>
> I have application that sends to two different topics.
> In theory I can use the same provider.
> Are there any advantages to having provider per topic?
> I looked for best practices for this matter but didn’t find any...
>
> Thanks,
> Victoria
> -------------------------------------------
> NOTICE:
> This email and all attachments are confidential, may be proprietary, and
> may be privileged or otherwise protected from disclosure. They are intended
> solely for the individual or entity to whom the email is addressed.
> However, mistakes sometimes happen in addressing emails. If you believe
> that you are not an intended recipient, please stop reading immediately. Do
> not copy, forward, or rely on the contents in any way. Notify the sender
> and/or Imperva, Inc. by telephone at +1 (650) 832-6006 and then delete or
> destroy any copy of this email and its attachments. The sender reserves and
> asserts all rights to confidentiality, as well as any privileges that may
> apply. Any disclosure, copying, distribution or action taken or omitted to
> be taken by an unintended recipient in reliance on this message is
> prohibited and may be unlawful.
> Please consider the environment before printing this email.
>