The topology

With the architectural concepts in place, let's return to the use case. To keep things focused on the integration, we will keep the topology simple. The following diagram depicts the topology:

The topology

The FIX Spout emits tuples containing simple FIX messages. Then the filter checks the type of the message, filtering for stock orders that contain pricing information. Then, those filtered tuples flow to the DruidState object, which is the bridge to Druid.

The code for this simple topology is as follows:

public class FinancialAnalyticsTopology { public static StormTopology buildTopology() { TridentTopology topology = new TridentTopology(); FixEventSpout ...

Get Storm Blueprints: Patterns for Distributed Real-time Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.