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(
    'events-from-eventhubs',
    'incoming_events',
    '{
        "source_type": "eventhubs",
        "connection_string": "${env:EVENTHUBS_CONNECTION_STRING}",
        "event_hub_name": "external-events",
        "consumer_group": "$Default",
        "batch_size": 100
    }'::jsonb
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestringMust be "eventhubs"
connection_stringstringEvent Hubs connection string (Listen permission)
event_hub_namestringEvent Hub name
consumer_groupstring"$Default"Consumer group
batch_sizeint100Events per read batch
starting_positionstring"latest"Start position: "latest", "earliest"

Further Reading