Search code examples
azurednsservicebusazure-eventhub

Is it possible to map a custom domain (Via C Name or A Record) to an azure event hub


Would it be possible to map a url to point to an instance of the azure event hub?

Could I add a CNAME to a domain and point to sb://.servicebus.windows.net

I think that A Records map to a static IP address, and as there doesn't seem to be an option to configure that in Azure I don't think that would work, but would it be possible so that all requests to something like https://serivcebus.mydomain.com could be pushed to the event hub?

We have a requirement to embed the connection to the event hub into our SDK which will be pushed out to a huge volume of customer devices, which may or may not be upgraded if we change. In order to support us potentially changing the technology behind the end point being posted to we wanted to map it to our own domain, allowing us, if needed, to swap out the back end technology without changing the code on clients devices.

There is potential to do this via our own Gateway API but then that may bottleneck the benefits gained from using the service bus itself.


Solution

  • We ended up putting a web app infront of the event hub and it basically just passed the messages through. The CName obviously worked fine on that.