Programming Guide

Introduction

FAST is a binary encoding method for message oriented data streams. FAST is an acronym for FIX Adapted for STreaming. The original purpose of FAST was optimization of FIX messages.

Decoding in 4 Steps

In order to decode FAST data to FIX message the following 4 steps are required:

  • FIX engine initialization
  • Template library loading
  • Decoding
  • FIX engine shutdown

FIX Engine Initialization

The FIX engine must be initialized as described in the following section. The appropriate FIX dialect must be configured during this step if necessary as described here.

Template Library Loading

To load FAST templates from an XML source the following code sequence can be used.

40
final InputStream templateStream = ResourceLoaderUtil.CLASSPATH_LOADER.getResource("site/templates.xml");

Decoding

Create Decoder instance first.

43
final Decoder decoder = new Decoder(templateStream, FastVersion.FAST_1_1, Version.FIX50);

Decode FAST stream chunks then.

48
final Message fixMessage = decoder.decode(data);

FIX Engine Shutdown

The FIX engine must be shutdown as described in the following section.

Samples

Check also Samples :: Simple FAST.