Anatomy of a Tap

Construction of a Tap

Overview

This article should give context about how a Tap is constructed.

Example & DSL attributes

This code defines a tap configuration for streaming data to the nasdaq_quotes schema.

  1. target schema Specifies that the data will be sent to the nasdaq_quotes schema.

  2. queue capacity Sets the maximum capacity of the queue to 15,000 events.

  3. flush frequency Data will be flushed (written) every 5 events.

  4. index An index is created on the symbol field, but it is not marked as unique (unique: false).

This configuration controls how data is buffered and indexed before being sent to the target schema.

Example

tap:
  target schema: nasdaq_quotes
  queue capacity: 15000
  flush frequency: 5
  index:
    unique: false
    fields:
      - symbol

Attributes schema

Index Attributes

Last updated