Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Unide » Media types for Measurement and Message(introduce proper media types for the different message types)
Media types for Measurement and Message [message #1763643] Thu, 18 May 2017 09:59 Go to next message
Kai Hudalla is currently offline Kai HudallaFriend
Messages: 2
Registered: May 2017
Junior Member
Hi,

I would like to propose the definition of proper media types for the different message types so that infrastructure and processors can easily determine where to route the message to without the need to introspect the message first (in order to determine its type).

Many (if not most) transport protocols allow for (or explicitly encourage or require) setting a content-type header or message property when sending a message.

This would also make it easier for e.g. Eclipse Hono to route messages properly since Hono is designed to be payload agnostic and should not need to introspect messages (which also dramatically degrades performance from my experience).

I could imagine something like

application/vnd.eclipse.unide-measurement+json
application/vnd.eclipse.unide-message+json
Re: Media types for Measurement and Message [message #1763924 is a reply to message #1763643] Tue, 23 May 2017 05:45 Go to previous messageGo to next message
Henryk Fischer is currently offline Henryk FischerFriend
Messages: 3
Registered: March 2017
Junior Member
Hi Kai,

good idea.

Do you know any standard in naming these content-type strings? (e.g. Is "application" necessary and what does it stand for?, Is +- allowed? etc.)

Kind Regards,
Henryk
Re: Media types for Measurement and Message [message #1775534 is a reply to message #1763924] Tue, 31 October 2017 16:09 Go to previous message
Kai Hudalla is currently offline Kai HudallaFriend
Messages: 2
Registered: May 2017
Junior Member
Sure, Wikipedia has all the info for you incl. links to the corresponding RFCs:

https://en.wikipedia.org/wiki/Media_type

Regards,
Kai
Previous Topic:Welcome to Unide
Next Topic:Reusable structures
Goto Forum:
  


Current Time: Tue Apr 23 06:35:40 GMT 2024

Powered by FUDForum. Page generated in 0.02766 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top