Creating an Event Hub
This guide will walk you through the steps to create a new Azure Event Hub within your Event Hubs namespace using the Azure portal. Event Hubs is a big data streaming platform and event-ingestion service. It can be used for processing streaming data in real-time. Using Event Hubs, you can stream millions of events per second from numerous sources to a variety of back-end services.
Prerequisites
Before you begin, you need:
- An Azure subscription. If you don't have one, create a free account before you begin.
- An existing Azure Event Hubs namespace. If you don't have one, you can create one by following the guide on creating an Event Hubs namespace.
Steps to Create an Event Hub
Step 1: Navigate to your Event Hubs Namespace
Sign in to the Azure portal.
In the Azure portal, navigate to your Event Hubs namespace. You can find it by searching for "Event Hubs namespaces" in the search bar at the top and then selecting your namespace from the list.
Step 2: Access the Event Hubs Section
Once you are on the overview page of your Event Hubs namespace, look for the "Event Hubs" section in the left-hand navigation menu. Click on "Event Hubs".
Step 3: Create a New Event Hub
On the "Event Hubs" page, you will see a list of any existing event hubs in your namespace. To create a new one, click the "+ Event Hub" button located at the top of the list.
A panel will slide out from the right side of the screen, prompting you to configure your new event hub.
Step 4: Configure Event Hub Properties
In the "Create Event Hub" panel, you will need to provide the following information:
- Name: Enter a unique name for your event hub (e.g.,
my-data-stream). - Partition Count: This determines the number of concurrent streams of data. The default is 2, and you can increase it based on your throughput requirements. For higher throughput, consider increasing this value.
- Message Retention: This setting specifies how long Event Hubs should retain the data after it's been ingested. You can choose from predefined options (e.g., 1 day, 7 days) or set a custom retention period in hours. The maximum retention is 7 days.
Optional settings:
- Capture: You can enable Event Hubs Capture to automatically and incrementally capture the streaming data to a specified Azure Blob Storage account or Azure Data Lake Storage Gen2 account. This is useful for archiving or batch processing.
Step 5: Review and Create
After configuring the properties, click the "Review + create" button.
Azure will validate your settings. Once validation passes, click "Create" to provision your new event hub.
Step 6: Deployment Confirmation
The deployment process will begin. You will see a notification indicating that the deployment is in progress. Once completed, you will receive a confirmation that your event hub has been successfully created.
You can now navigate to the "Event Hubs" section of your namespace to see your newly created event hub listed.