This message was deleted.
# general
s
This message was deleted.
e
there is no API available out of the box
you can JMS if you prefer and you have some APIs
(there is a JMS API for Pulsar)
but I would implement it from scratch, it is easy, as you can set the name for a response topic in a message property
on the consumer you read the property and send the response to the address set by the producer
e
That makes sense, but how do you know which partition will receive the response? I need to keep the connection open on only one of the partitions.
e
you can target a specific parttion with a producer or a consumer
each partition IS a non-partitioned topic as a matter of fact
so you can produce to public/default/mytopic-partition-1
the same for consumers
on the producer you can implement a custom “Router” that forces the partition, as an alternative
e
Sorry, just trying to understand, so producer can target specific partition of the topic consumer?
might be asking stupid questions, trying to wrap my head around it
so I need Partition 1 to respond to P1 after request was sent from P1 to Partition 1
l
There is a RPC library on top of Pulsar in https://github.com/streamnative/pulsar-recipes/tree/main/rpc . It seems experimental. I haven't used it.
👀 1
m
@Evgeny It’s an actually supported library, it’s not experimental
👍 2
e
Thank you all!