You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "JimmyBjorklund (via GitHub)" <gi...@apache.org> on 2023/11/14 13:29:38 UTC

[I] Question: Key Shared sample. [pulsar-client-node]

JimmyBjorklund opened a new issue, #350:
URL: https://github.com/apache/pulsar-client-node/issues/350

   Looking for a sample on how to setup a producer and consumers using key shared. Using the pulsar node client, the only samples i can find are using java and thy have a key attribute that is not in the node api what i can see.
   
   In the ProducerMessage there is a orderingKey, is this the corresponding key that will be used? When setting the ConsumerConfig.subscriptionType = KeyShared
   
   Thanks for any input.
   /J
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Question: Key Shared sample. [pulsar-client-node]

Posted by "shibd (via GitHub)" <gi...@apache.org>.
shibd commented on issue #350:
URL: https://github.com/apache/pulsar-client-node/issues/350#issuecomment-1811623676

   > In the ProducerMessage there is a orderingKey, is this the corresponding key that will be used? When setting the ConsumerConfig.subscriptionType = KeyShared
   
   Yes. You can refer to: https://pulsar.apache.org/docs/3.1.x/concepts-messaging/#key_shared
   
   It works with `orderingKey` or `partitionKey` .
   
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org