OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

amqp-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [amqp-comment] amqp over http draft


When I have a multiplexing endpoint that accepts regular messages for one-way flows and that also responds to HTTP requests, I know that I have an HTTP request only when the HTTP request tells me that it is one. You appear to be advocating for my application having to use all sorts of hints to infer for a message to be an HTTP request, and the design in place makes a clear statement about it. If the core of your objection is about simplicity, I don't see how omitting a clear indicator is helping simplicity or how moving that indicator into a property that's aimed at the middleware layer will help simplicity.

This doesn't seem to be awfully hard:

If (msg.properties.subject.startswith(HTTP_REQUEST_PREFIX) )
{
       var method = msg.properties.subject.substring(HTTP_REQUEST_PREFIX_LENGTH);
       switch (method) 
       {
            .... handlers ....
       }
}


-----Original Message-----
From: Gordon Sim <gsim@redhat.com> 
Sent: Freitag, 24. Mai 2019 11:12
To: amqp-comment@lists.oasis-open.org
Subject: Re: [amqp-comment] amqp over http draft

On 24/05/2019 8:13 am, Clemens Vasters wrote:
> The projected mode is specifically designed to preserve HTTP semantics 
> at the request-level, and if I have an endpoint that accepts HTTP 
> requests but then also accepts other messages, I need to distinguish 
> the two kinds of messages.

Why? At the point you are accepting HTTP you know it is HTTP. At the point you are handling the AMQP message, the details of that messages should be sufficient. It has the target address, any headers, the method etc and can be converted back to HTTP if needed by the ultimate recipient.

> Polluting the application-properties is not optimal, because that's 
> where all the HTTP headers go that aren't otherwise explicitly mapped 
> and since we aim to be transparent, I can't really reserve a name in 
> that section.

To me it is not necessary in the application-properties either, but is is much less optimal to have it as a prefix in the subject where it infects every AMQP application involved. That will really limit the appeal of this spec.

What about defining a message-annotation that you can add if you want to know the protocol that caused the generation of the message?


-- 
This publicly archived list offers a means to provide input to the
OASIS Advanced Message Queuing Protocol (AMQP) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: amqp-comment-subscribe@lists.oasis-open.org
Unsubscribe: amqp-comment-unsubscribe@lists.oasis-open.org
List help: amqp-comment-help@lists.oasis-open.org
List archive: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.oasis-open.org%2Farchives%2Famqp-comment%2F&amp;data=02%7C01%7Cclemensv%40microsoft.com%7Cdc29d618fb194df57b4108d6e027f441%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636942859561200403&amp;sdata=jGFSXr3LiAxFBfd06sivSoFJRL2ZoxwRb8kxHCgKhEo%3D&amp;reserved=0
Feedback License: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oasis-open.org%2Fwho%2Fipr%2Ffeedback_license.pdf&amp;data=02%7C01%7Cclemensv%40microsoft.com%7Cdc29d618fb194df57b4108d6e027f441%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636942859561200403&amp;sdata=kKe7z%2B3QxeRllC9xlT925OyyLW8Z%2BDHjchY5WZ%2BBIR4%3D&amp;reserved=0
List Guidelines: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oasis-open.org%2Fmaillists%2Fguidelines.php&amp;data=02%7C01%7Cclemensv%40microsoft.com%7Cdc29d618fb194df57b4108d6e027f441%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636942859561200403&amp;sdata=OC6d%2FHofhPoNeAUZhcflYWLugfVAmAUAIcvtm%2FE0nO0%3D&amp;reserved=0
Committee: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oasis-open.org%2Fcommittees%2Famqp&amp;data=02%7C01%7Cclemensv%40microsoft.com%7Cdc29d618fb194df57b4108d6e027f441%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636942859561200403&amp;sdata=fSZMC8%2F0taH2EgJs8iVEhaKYBkDwqabcQN7G0meKfRs%3D&amp;reserved=0
Join OASIS: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.oasis-open.org%2Fjoin%2F&amp;data=02%7C01%7Cclemensv%40microsoft.com%7Cdc29d618fb194df57b4108d6e027f441%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636942859561200403&amp;sdata=IRnIs7rg35yBhG6IzoirEtqN16L48ASALixRDTfuxaI%3D&amp;reserved=0



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]