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: RabbitMQ

The RabbitMQ source consumes messages from RabbitMQ queues and delivers them into a pg_tide inbox.

Configuration

SELECT tide.relay_set_inbox(
    'events-from-rabbit',
    'incoming_events',
    '{
        "source_type": "rabbitmq",
        "url": "amqp://user:pass@rabbitmq:5672/%2f",
        "queue": "pg-tide-events",
        "prefetch_count": 100,
        "auto_ack": false
    }'::jsonb
);

Configuration Reference

ParameterTypeDefaultDescription
source_typestringMust be "rabbitmq"
urlstringAMQP connection URL
queuestringQueue to consume from
prefetch_countint100Messages pre-fetched from broker
auto_ackboolfalseAuto-acknowledge (set false for at-least-once)
tls_enabledboolfalseEnable TLS

Delivery Guarantees

Messages are acknowledged only after successful inbox insertion. The inbox's deduplication uses the RabbitMQ message ID as the event identifier, preventing duplicate processing even on redelivery.

Further Reading