Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Source: Azure Event Hubs

The Event Hubs source reads events from Azure Event Hubs and delivers them into a pg_tide inbox.

Configuration

SELECT tide.relay_set_inbox_v2(
  jsonb_build_object(
    'name', 'events-from-eventhubs',
    'inbox', 'incoming_events',
    'source', 'eventhubs',
    'config', '{
        "connection_string": "${env:EVENTHUBS_CONNECTION_STRING}",
        "event_hub_name": "external-events",
        "consumer_group": "$Default",
        "batch_size": 100
    }'::jsonb
  )
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestring—Must be "eventhubs"
connection_stringstring—Event Hubs connection string (Listen permission)
event_hub_namestring—Event Hub name
consumer_groupstring"$Default"Consumer group
batch_sizeint100Events per read batch
starting_positionstring"latest"Start position: "latest", "earliest"

Further Reading