You can create a new topic for each of your client which comes online. If
your client has some sort of identifier like SessionId,
you can create a topic with sessionId as 'prefix/suffix' and send  messages
to that client. Once your client closes / goes offline,
delete that topic using AdminClient.

On Fri, Nov 3, 2017 at 3:41 AM, Tarik Courdy <tarik.cou...@gmail.com> wrote:

> Good afternoon -
>
> I am investigating using Kafka as a way to communicate directly with
> clients that will periodically come online.
>
> For example, I'm thinking of using a single topic and creating a new
> partition on that topic as the messaging channel for that specific client.
> And then if someone wanted to send client specific messages to clients 1,
> 3, 5, and 7 then they would place a message on the partitions that those
> clients are listening on.
>
> Is this an appropriate use case for Kafka?  Is it possible for the number
> of partitions on a single topic to scale to tens of thousands?
>
> Thank you very much for your time.
>
> -Tarik
>

Reply via email to