Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

« Previous Version 3 Next »

Introduction

FastQuote is a currency trading platform that demonstrates how to build modular, low-latency services with Fabric3. FastQuote is organized into two parts:

  • A liquidity provider (e.g. third-party bank or trading network) that publishes currency price feeds 
  • A pricing engine run by a bank that subscribes to the provider feeds, adds margin to the feeds, and publishes the margined prices to the bank's customers

Getting Setup

FastQuote uses the Zero MQ messaging library and therefore only runs on Linux (RedHat or compatible), Windows 7+, and OS X. The Liquidity Provider and Price Engine services are run on two Fabric3 instances. Unlike the other samples, FastQuote must be deployed on the servers produced by the Maven modules under the fastquote/servers directory. These servers demonstrate how to use the Fabric3 Assembly Plugin to build custom runtime images, in this case configured with extensions that provide low-latency features required to run the samples. 

1. Build the FastQuote source

To build FastQuote, go to apps/fastquote and execute: mvn clean install.

The build will produce the FastQuote modules and runtime images.

2. Start the servers

Boot the Fabric3 runtime from the server/vm/image/bin directory by executing:

java -jar server.jar

Alternatively, the server can be started by providing the path to the seerver.jar archive relative to the current directory. e.g.:

java -jar target/image/bin/server.jar

Understanding the Architecture

The next section explains the FastQuote application architecture in detail.