Skip to content

This repository acts as a central hub for handling issues, collecting feedback, and facilitating discussions related to the Azure Event Hubs emulator.

License

Notifications You must be signed in to change notification settings

Azure/azure-event-hubs-emulator-installer

Repository files navigation

Event-Hubs Logo Azure Event Hubs Emulator Installer

This repository contains the scripts required to install and run the Azure Event Hubs Emulator.

About Azure Event Hubs

Azure Event Hubs is a cloud native data streaming service that can stream millions of events per second, with low latency, from any source to any destination. Event Hubs is compatible with Apache Kafka, and it enables you to run existing Kafka workloads without any code changes. Read more here.

About Azure Event Hubs Emulator

Azure Event Hubs emulator is designed to offer a local development experience for Azure Event Hubs, enabling you to develop and test code against our services in isolation, free from cloud interference.

Caution

Emulator is intended solely for development and testing scenarios.Any kind of Production use is strictly discouraged. There is no official support provided for Emulator. Any issues/suggestions should be reported via GitHub issues on GitHub project.

Run Azure Event Hubs Emulator

This section summarizes the steps to develop and test locally with Event hubs Emulator. To read more about Event hubs, read here.

Prerequisites

Note

Before you continue with the subsequent steps, make sure Docker Engine is operational in the background.

Running the Emulator

This section highlights different steps to run Event Hubs Emulator. Details are as follows:

Before running automated script, clone the installation repository locally.

Windows

After completing the prerequisites, you can proceed with the following steps to run the Event Hubs Emulator locally.

  1. Before executing the setup script, we need to allow execution of unsigned scripts. Run the below command in the PowerShell window:

$>Start-Process powershell -Verb RunAs -ArgumentList 'Set-ExecutionPolicy Bypass –Scope CurrentUser’

  1. Execute setup script LaunchEmulator.ps1. Running the script would bring up two containers – Event Hubs Emulator & Azurite (dependency for Emulator)

Linux & macOS

After completing the prerequisites, you can proceed with the following steps to run the Event Hubs Emulator locally.

  1. Execute the setup script LaunchEmulator.sh . Running the script would bring up two containers – Event Hubs Emulator & Azurite (dependency for Emulator)

  2. Execute the same script LaunchEmulator.sh with the option --compose-down=Y to issue a docker compose down to terminate the containers.

LaunchEmulator.sh --compose-down=Y

You can also spin up Emulator using Docker Compose file from Microsoft Container Registry. Refer here for details.

Once the steps are successful, Emulator compose set can be found in running in Docker.

image

Interacting with Emulator

  1. You can use the following connection string to connect to Azure Event Hubs Emulator.
"Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;"
  1. With the latest client SDK releases, you can interact with the Emulator in various programming language. For details, refer here

To get started, refer to our GitHub Samples here.

Tip

$Default consumer group is created by default when emulator runs. You can't create $default consumer group with supplied configuration.

Support

There is no official support provided for Emulator.Any issues/suggestions should be reported via GitHub issues on installation repo.

License

The scripts and documentation in this project are released under the MIT License.

The software (Azure Event Hubs Emulator) that the scripts in this repository install is licensed under separate terms. See the End User License Agreement for the terms governing the software.

About

This repository acts as a central hub for handling issues, collecting feedback, and facilitating discussions related to the Azure Event Hubs emulator.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks