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_v2(
  jsonb_build_object(
    'name', 'events-from-servicebus',
    'inbox', 'incoming_events',
    'source', 'servicebus',
    'config', '{
        "connection_string": "${env:SERVICEBUS_CONNECTION_STRING}",
        "queue_or_subscription": "incoming-events",
        "batch_size": 50
    }'::jsonb
  )
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestring—Must be "servicebus"
connection_stringstring—Service Bus connection string (Listen permission)
queue_or_subscriptionstring—Queue 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