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 Service Bus

The Service Bus source receives messages from Azure Service Bus queues or topic subscriptions and delivers them into a pg_tide inbox.

Configuration

SELECT tide.relay_set_inbox(
    'events-from-servicebus',
    'incoming_events',
    '{
        "source_type": "servicebus",
        "connection_string": "${env:SERVICEBUS_CONNECTION_STRING}",
        "queue_or_subscription": "incoming-events",
        "batch_size": 50
    }'::jsonb
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestringMust be "servicebus"
connection_stringstringService Bus connection string (Listen permission)
queue_or_subscriptionstringQueue name or topic/subscription path
batch_sizeint50Messages per receive batch
max_lock_duration_secsint60Message lock duration

Delivery Guarantees

Messages are completed (acknowledged) only after inbox insertion. The peek-lock mechanism ensures unprocessed messages are redelivered after the lock expires.

Further Reading