A->B: ask a questionis a good pattern for sequential computation (well I will explain) but may not be so for a call back pattern:
B->A: return an answer
A->B: passes a handlewhich may be done as a single conversation. This simplest form of extending call-return pattern can be extended to an unbounded callback pattern which may be useful for e.g. updates for auction:
B->A: calls that handle
A->B: says OK
A->B: passes a handlewhich may be done as many times as needed, all in a single conversation: here B is a server and each callback from B is an update of a bidding price.
B->A: calls that handle
A->B: says OK
B->A: invokes that handle
.....
Well a real auction may be abstracted in a slightly more complex pattern. In my next post --- perhaps a day or two later --- we shall present a little more complex example including those by Gary.