G'day,
I'm trying to use nanomsg to do some remote procedure calls (replacing CORBA)
and I found that this is more painful than I expected.
The rep/req protocol cannot be used, as it serializes the calls at the server
and overwrites outstanding calls at the client end.
A client process must be able to call a remote function several times,
concurrently. Also, there will be several clients.
At the client the call should look synchronous.
I suspect the pair1 with "Polyamorous Mode" would be the correct basis. But
then I'd need to add wrappers at both end with some message counters, I guess.
Is this assumption correct?
Has it been done?
Is this even included in the distribution?
Would nng_device help in some way that I do not understand?
Would I have to write an entire protocol?
Should I abandon this and use a library that actually does RPC? (I am familiar
with native Microsoft-RPC)
BTW, I need other messaging than RPC, too, therefore the attempt to use a
generic messaging library.
Jörn