You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "Flores, Paul A." <PA...@SAIC.COM> on 2016/03/16 16:51:34 UTC
Question: Synchronous processing anyone?
At a client site. Incorporating QPID as a solution to their messaging requirements. One of the existing requirements is to support a small set of synchronous processes.
Team has been in discussion if using the direct receive and/or send can satisfy this requirement.
The discussion has focused on the following:
path 1: use request/reply "framework" with requester explicitly listening for the reply, blocking processing until reply has been received.
path 2: using direct receive (i.e. proton example) accepting message only after processing has been completed.
Are there other "paths" to consider?
Is anyone using either of these "paths" for synchronous processing?
Insights, inputs and comments welcomed!
Regards,
Paul
Re: Question: Synchronous processing anyone?
Posted by Alan Conway <ac...@redhat.com>.
On Wed, 2016-03-16 at 20:16 +0000, Gordon Sim wrote:
> On 16/03/16 15:51, Flores, Paul A. wrote:
> >
> > The discussion has focused on the following:
> >
> > path 1: use request/reply "framework" with requester explicitly
> > listening for the reply, blocking processing until reply has been
> > received.
> This pattern is used a lot (including in all the management tools
> for
> the c++ broker).
>
> >
> > path 2: using direct receive (i.e. proton example) accepting
> > message only after processing has been completed.
> If I understand correctly, the idea here is to use message
> acknowledgement instead of an explicit reply message? If so, that
> only
> really works where the reply has no content
It also doesn't work if messages are queued on a broker or some other
intermediary since you'll get acknowledgement from the broker before
the real server has seen the message. It can work in a direct peer-peer
communication but path 1 is more robust.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Question: Synchronous processing anyone?
Posted by Gordon Sim <gs...@redhat.com>.
On 16/03/16 15:51, Flores, Paul A. wrote:
> The discussion has focused on the following:
>
> path 1: use request/reply "framework" with requester explicitly listening for the reply, blocking processing until reply has been received.
This pattern is used a lot (including in all the management tools for
the c++ broker).
> path 2: using direct receive (i.e. proton example) accepting message only after processing has been completed.
If I understand correctly, the idea here is to use message
acknowledgement instead of an explicit reply message? If so, that only
really works where the reply has no content other than indicating the
request succeeded. Note also that you don't necessarily need to use a
direct receive here, you can use an intermediary such as the dispatch
router that provides end-to-end acknowledgements.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org