Azure Event Hubs is a data streaming platform and an event ingestion service. It provides a Kafka endpoint which can be used by your existing Kafka-based applications as an alternative to running your own Kafka clusters.
RudderStack allows you to seamlessly configure Azure Event Hubs as a destination to which you can send your event data seamlessly.
In order to enable sending data to Azure Event Hubs, you will first need to add it as a destination to the source from which you are sending event data. Once the destination is enabled, events from RudderStack will start to flow to Azure Event Hubs.
Before configuring your source and destination on RudderStack, please check whether the platform you are working on is supported by Azure Event Hubs, by referring to the table below:
Once you have confirmed that the platform supports sending events to Azure Event Hubs, perform the steps as mentioned below:
Choose a source to which you would like to add Azure Event Hubs as a destination.
Select the destination as Azure Event Hubs. Give your destination a name, and then click on Next.
In the Connection Settings, fill the required fields with the relevant information and click Next.
The required fields are as follows:
Bootstrap server: The bootstrap server information goes here. This is in the format
hostname of your event hub namespace:
Topic Name: The topic name, or the name of the Event Hub.
Event Hubs Connection String: Your event hubs' primary connection string
userId as the partition key of a given message.
If you have a multi-partitioned topic, then the records of the same
anonymousId in absence of
userId) will always go to the same partition.
The Bootstrap server address is in the following format:
hostname of Event Hub namespace:
NAMESPACENAME is your event hubs namespace, while
9093 is the port number.
The Topic name is the name of the Event Hub that you have created in your Azure portal.
Event hubs connection string is the Primary Connection string of your shared access policy. For more information, please refer to Microsoft's How to get Event hubs connection string guide.
Please check whether you are using the proper Event Hubs connection string for the policy that you have created.
You need to create a policy to write to the Event Hub with a
Send permission, and put the corresponding primary connection string in the destination settings, as described in the Configuring Azure Event Hubs in RudderStack section of this guide.
If you come across any issues while configuring or using Azure Event Hubs with RudderStack, please feel free to contact us. You can also start a conversation on our Slack channel; we will be happy to talk to you!