Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non - blocking RPC invocation, using gSoap

Is this even possible?

I know, I can make a one-way asynchronous communication, but I want it to be two-way.

In other words, I'm asking about the request/response pattern, but non-blocking, like described here (the 3rd option)

Related to Asynchronous, acknowledged, point-to-point connection using gSoap - I'd like to make the (n)acks async, too

like image 269
Kiril Kirov Avatar asked May 10 '13 12:05

Kiril Kirov


1 Answers

You need a way to associate requests with replies. In normal RPC, they are associated by a timeline: the reply follows the response before another response can occur.

A common solution is to send a key along with the request. The reply references the same key. If you do this, two-way non-blocking RPC becomes a special case of two one-way non-blocking RPC connections. The key is commonly called something like request-id or noince.

like image 70
Cort Ammon Avatar answered Oct 27 '22 00:10

Cort Ammon