Can I just send uninterpreted binary messages with AMPS?

Follow

Yes.  Starting in AMPS 4.0, AMPS includes a binary message type. This type allows you to send any type of content in the message payload. AMPS does not interpret the payload, so functions such as content filtering, SOW storage, aggregation, and so forth are not supported with this message type.

Message recording and replication are supported, so long as no content filter is applied to the topic. AMPS does not need to interpret the payload to provide these services unless filtering is requested.

To configure the binary message type, you first load the module that contains the message type:

<Modules>
  <Module>
    <Name>binary</Name>
    <Library>libamps_binary_message_type.so</Library>
  </Module>
</Modules>

Next, declare the message type:

<MessageTypes>
  <MessageType>
    <Name>binary</Name>
    <Module>binary</Module>
  </MessageType>
</MessageTypes>

Once this is done, you can use the message type in Transport declarations in the same way that you use the message types loaded by default:

<Transport>
  <Name>binary-tcp</Name>
   <Type>tcp</Type>
   <InetAddr>9019</InetAddr>
   <MessageType>binary</MessageType>
   <Protocol>amps</Protocol> </Transport>
Have more questions? Submit a request

Comments

Powered by Zendesk