brainlag / JavaNSQClient

Fast Java client for NSQ
MIT License
90 stars 57 forks source link

Is it possible implement a RMI call style in NSQ client? #19

Closed vincentruan closed 8 years ago

vincentruan commented 8 years ago

Hi, As the title said, I wanna use NSQ to implement a simple service bus, it is very easy ti find that the pub/sub and queue way have already implemented in NSQ, but how to get return object in a NSQProducer? Or do you have any kindly subjection?

Best regards.

brainlag commented 8 years ago

I'm not 100% sure what you mean, but if you think to implement Remote-Procedure-Call over NSQ then this is really not a good idea.

vincentruan commented 8 years ago

RMI means R(remote) M(method) I(invoke), see as below image, the second line is my question.

vertical cross functional template-20160419

brainlag commented 8 years ago

Ok so we are talking about the same thing. Like I said before this is not a good idea to do with NSQ. NSQ does not support it, this library does not support it and I would not try to implement it on top of NSQ.

vincentruan commented 8 years ago

Got it, thank you.