> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-pipeline-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-pipeline-2/components/consumers/eventhub-subscriber.md).

# Eventhub Subscriber

**EventHub subscriber** typically consumes event data from an EventHub by creating an event processor client that reads the event data from the EventHub.

All component configurations are classified broadly into the following sections:

* [​Basic Information​](/data-pipeline-2/components/component-base-configuration.md)​
* Meta Information
* [Resource Configuration​](/data-pipeline-2/components/resource-configuration.md)​

{% hint style="success" %}
*Follow the provided demonstration to configure the Eventhub Subscriber component.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuq3RSHHup7fjHYaspk7y%2Fuploads%2FquBv1TDQszKFXT9S9yLu%2FBDB_%20Decision%20Platform%20-%20Google%20Chrome%202023-03-23%2012-37-59%20(online-video-cutter.com)%20(1).mp4?alt=media&token=0e1692bf-c5e3-4bd6-b773-0c8119549900>" %}
*Configuring the Eventhub Component*
{% endembed %}

## **Configuring meta information of EventHub Subscriber**

**There are two read using methods:**&#x20;

1. **Connection String**&#x20;
2. **Principal Secret**

### Read using connection string

<figure><img src="https://content.gitbook.com/content/q2i9CKCFbySxr6jRoJfA/blobs/h2wpdsRQBXfOqzZGTujG/MicrosoftTeams-image%20(8).png" alt=""><figcaption><p>Read using connection string</p></figcaption></figure>

* **Connection String:** It is a string of parameters that are used to establish a connection to an Azure EventHub
* **Consumer Group:** It is a logical grouping of event consumers (subscribers) that read and process events from the same partition of an event hub.
* **EventHub Name:** It refers to the specific Event Hub within the Event Hubs namespace to which data is being sent or received.
* **Checkpoint Location:** It is a location in the event stream that represents the last event that has been successfully processed by the subscriber.
* **Enqueued time:** It indicates the time when the event was added to the partition, which is typically the time when the event occurred or was generated.
* **Subscriber namespace:** It is a logical entity that is used to group related subscribers and manage access control to EventHubs within the namespace.

### Read using Principal Secret

<figure><img src="https://content.gitbook.com/content/q2i9CKCFbySxr6jRoJfA/blobs/sihDajcDIYKvUj4fReer/MicrosoftTeams-image%20(9).png" alt=""><figcaption><p>Read using principal secret</p></figcaption></figure>

* **Client ID:** The ID of the Azure AD application that has been registered in the Azure portal and that will be used to authenticate the subscriber. This can be found in the Azure portal under the "App registrations" section.&#x20;
* **Tenant ID:** The ID of the Azure AD tenant that contains the Azure AD application and service principal that will be used to authenticate the subscriber.&#x20;
* **Client secret:** The secret value that is associated with the Azure AD application and that will be used to authenticate the subscriber.&#x20;
* **Consumer group:** It is a logical grouping of event consumers (subscribers) that read and process events from the same partition of an event hub.
* **EventHub Name:** It refers to the specific Event Hub within the Event Hubs namespace to which data is being sent or received.&#x20;
* **Checkpoint Location:** It is a location in the event stream that represents the last event that has been successfully processed by the subscriber.&#x20;
* **Enqueued time:** It indicates the time when the event was added to the partition, which is typically the time when the event occurred or was generated.&#x20;
* **Subscriber namespace:** It is a logical entity that is used to group related subscribers and manage access control to EventHubs within the namespace.
