Recent comments

Table of contents

 

When decoding a FAST message, we need to determine the template ID, retrieve the template, and combine the message content with the template definitions and operators, reproduce the original message.

Message Decoding Process

Picture 3.1 - "FAST Message Decoding Process"

FAST decoder decodes each message using the following algorithms:

Message Decoding Algorithm

Picture 3.2 - "Message decoding algorithm"

 

Field Decoding Algorithm

Picture 3.3 - "Field decoding algorithm"

To summarize, we follow these steps to decode FAST messages:

  • Extract Presence Map
  • Determine Message Template ID
  • Decode each message field

 

 

How to detect start and end

How to detect start and end of FAST message?

The only way to determine the

The only way to determine the size of a FAST message from the data itself is by decoding the message.

There are basically two scenarios when dealing with FAST.

1) You are reading whole messages from a UDP packet or from a store. In this case, you should be able to compute the size based on the packet size.

2) You are reading from an input stream with no message boundaries (like TCP). If you run out of bytes while decoding, you need to wait for more bytes to arrive on the incoming stream.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post a question or comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.