Sync SQL Server and Kafka in real time

  • Hello,

    1. Let say, my .NET API has been inserted successfully into SQL Server Database. It is possible, this data also inserted in Kafka in real time ?
    2. This transaction should be done in .NET API or should be done in SQL Server by configuration ?

    Please help me to understand more and better

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • Yes, it's possible to sync SQL Server with Kafka in real time. You have two main approaches: handling it within your .NET API or configuring it directly in SQL Server.

    If you want real-time streaming directly from SQL Server, you can use SQL Server Change Data Capture (CDC) with Debezium to capture changes and stream them to Kafka. This setup requires Kafka Connect with the Debezium SQL Server connector.

    Alternatively, if you prefer handling it at the API level, you can modify your .NET API to publish events to Kafka whenever a new record is inserted into SQL Server. The best choice depends on your architecture, CDC is more seamless for existing databases, while API-level integration provides more control over event processing.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply