Blog Post

Messaging on Azure Blog
2 MIN READ

Introducing Local emulator for Azure Service Bus

Sannidhya_Glodha's avatar
Nov 19, 2024

Explore the Local emulator for Azure Service Bus: Enhance your development experience with faster testing, cost-efficiency, and seamless integration.

Azure Service Bus is a fully managed enterprise message broker offering queues and publish-subscribe topics. It decouples applications and services, providing benefits like load-balancing across workers, safe data and control routing, and reliable transactional coordination.

In response to your feedback, we are pleased to announce the introduction of a local emulator for Azure Service Bus. This emulator is intended to facilitate local development experience for Service Bus, allowing developers to develop and test their code against Azure Service Bus, in isolation away from cloud interference.

Why emulator?

Developers across the globe love emulators!  While there are numerous compelling reasons to use emulators, here are just a few of those reasons to consider:

  • Optimized development loop: The emulator speeds up dev/testing against Azure Service Bus.
  • Pre-migration trial: Try Azure Service Bus using your existing AMQP applications before migrating to the cloud.
  • Isolated environment: Use the emulator for dev/test setup without network latency or cloud resource constraints.
  • Cost-efficient: The emulator is free and can be run on your local machine for dev/test scenarios.
Note: The emulator is intended only for development and testing. It should not be used for production workloads. Official support is not provided, and any issues or suggestions should be reported via GitHub.

Get started with Service Bus emulator

The emulator is accessible as a Docker image on Microsoft Artifact Registry, and it is platform-independent, capable of running on Windows, macOS, and Linux. You can use our automated scripts from the Installer repository or initiate the emulator container using the docker compose command.

The emulator is compatible with the latest service bus client SDKs and supports a wide variety of features within Azure Service Bus. For more details, please visit aka.ms/servicebusemulator

Read more about Azure Service Bus:

Introduction to Azure Service Bus, an enterprise message broker - Azure Service Bus | Microsoft Learn

We appreciate your feedback and encourage you to share it with us. Please provide feedback or report any issues on our GitHub repository.

Wishing you a smooth ride with the Service Bus emulator, making all your tests pass! 😊

 

 

 

 

 

 

Updated Nov 19, 2024
Version 1.0
  • Johan Bennink's avatar
    Johan Bennink
    Copper Contributor

    A major restriction that will be a hassle for development in our use-cases is that the client SDK can't be used to create queues, topics and subscriptions. So while you can test sending messages management is not testable. We will have to keep relying on a true servicebus connection for that. Really a shame that Microsoft is not just deploying a full servicebus emulator.

  • DevAngel's avatar
    DevAngel
    Copper Contributor

    It's nice to be able to now locally run Azure Functions as well as Azure Service Bus.