Forum Discussion

ambarray's avatar
ambarray
Copper Contributor
Mar 01, 2024

Sending messages on table rows updates/inserts/deletes to RabbitMQ from SQL Server

We have a requirement here. Whenever certain rows in a table are inserted, updated or deleted, we need to send messages to a message broker for further processing. Currently we are using triggers and SQL Server Service Broker for this purpose. But we want to use RabbitMQ for scalability and wider reach. Is there a third party solution component available to meet our requirements. We are ready to implement ourselves if 3rd party component is not available.

5 Replies

  • mikeharing72's avatar
    mikeharing72
    Copper Contributor

    Consider leveraging RabbitMQ for real-time updates from SQL Server tables, enhancing scalability and extending reach Photo. Explore third-party solutions or implement custom integration for efficient message delivery and processing.

  • Harrum_Fatima's avatar
    Harrum_Fatima
    Copper Contributor
    Yes, you can use Debezium, an open-source platform for change data capture (CDC), to integrate SQL Server with RabbitMQ for sending messages based on database events. Alternatively, you can implement custom code to capture database changes and publish them to RabbitMQ using RabbitMQ client libraries.
    • ambarray's avatar
      ambarray
      Copper Contributor

      Harrum_Fatima 

       

      The examples in Internet shows Apache Kafka (Kafka connect) instead of RabbitMQ. Could you please give a pointer where Debezium could be used with CDC in SQL Server ad send messages to RabbitMQ?

      • Harrum_Fatima's avatar
        Harrum_Fatima
        Copper Contributor
        To integrate Debezium with RabbitMQ for CDC from SQL Server:
        1. Set up Debezium to capture SQL Server changes.
        2. Configure Debezium to send events to RabbitMQ.
        3. Start the connectors.
        4. Verify data streaming.

Resources