Example: Using File Connectors With Batch Publishing

Use file connectors to read Quote messages from a file, and publish them to Event Stream Processor. The adapter uses the FIX ABFIX44.xml dictionary file, which is used for this example only.

Prerequisites
Set the value of the maxPubPoolSize parameter to 2000.
Task
  1. Start Event Stream Processor.
    Operating System Step
    UNIX Open a terminal window:
    1. Start the example cluster:

      start_node.sh

    2. Start the project on the cluster:

      start_project.sh

    Windows Open a command window:
    1. Start the example cluster:

      start_node.bat

    2. Add project to the cluster, and start it on the cluster:

      start_project.bat

  2. Start the respective subscriber utility for Event Stream Processor.
    Operating System Step
    UNIX Open a terminal window and enter:

    ./esp-subscribe.sh

    Windows Open a command window and enter:

    esp-subscribe.bat

  3. Start the adapter.
    Operating System Step
    UNIX Open a terminal window and enter:

    start_adapter.sh

    Windows Open a command window and enter:

    start_adapter.bat

  4. Wait five to ten seconds for the adapter to initialize.
    • There are a total of 10096 records in the 8kmsg.fix file. The FIX adapter reads these records and publishes them to the ESP server in batches of 2000.
    • After 10000 records are published, the adapter waits five seconds, then publishes the remaining 96 records.