Samples :: Utils

Message Queue Sample

Description

There is a FIX Engine requirement that session listener can't perform time-consuming task. This sample shows how to use message queue and single thread to perform time-consuming tasks outside session listener. This approach is also known as "Producer-Consumer design pattern".

Usage

  • Run the sample:
    • win: MessageQueueRunner.bat
    • linux: MessageQueueRunner.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

Executor Sample

Description

There is a FIX Engine requirement that session listener can't perform time-consuming task.This sample shows how to use standard thread pool to perform time-consuming tasks outside session listener.

Usage

  • Run the sample:
    • win: ExecutorRunner.bat
    • linux: ExecutorRunner.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh