skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

azure-eventhub-dotnet

High-throughput event streaming

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/microsoft/skills --skill azure-eventhub-dotnet

Overview

What This Skill Does

Azure.Messaging.EventHubs is the official .NET SDK for Azure Event Hubs. It handles high-throughput event streaming, including sending batches with EventHubProducerClient, buffered background sending with EventHubBufferedProducerClient, and production-grade receiving with EventProcessorClient and checkpoint-based offset tracking.

Application

When to use this Skill

Documentation

Show Skills.md file

Azure.Messaging.EventHubs (.NET)

High-throughput event streaming SDK for sending and receiving events via Azure Event Hubs.

Installation

# Core package (sending and simple receiving)
dotnet add package Azure.Messaging.EventHubs

# Processor package (production receiving with checkpointing)
dotnet add package Azure.Messaging.EventHubs.Processor

# Authentication
dotnet add package Azure.Identity

# For checkpointing (required by EventProcessorClient)
dotnet add package Azure.Storage.Blobs

Current Versions: Azure.Messaging.EventHubs v5.12.2, Azure.Messaging.EventHubs.Processor v5.12.2

Environment Variables

EVENTHUB_FULLY_QUALIFIED_NAMESPACE=<namespace>.servicebus.windows.net  # Required: Event Hubs fully qualified namespace
EVENTHUB_NAME=<event-hub-name>  # Required: Event Hub name
BLOB_STORAGE_CONNECTION_STRING=<storage-connection-string>  # Alternative to Entra ID auth
BLOB_CONTAINER_NAME=<checkpoint-container>  # Required: checkpoint container name
EVENTHUB_CONNECTION_STRING=Endpoint=sb://<namespace>.servicebus.windows.net/;SharedAccessKeyName=...  # Alternative to Entra ID auth
AZURE_TOKEN_CREDENTIALS=prod  # Required only if DefaultAzureCredential is used in production
Lines 1 - 32 of 357

Recommendations

Explore other random skills

All skillsMy patterns