send events from Azure Service Bus Topic to Event Hub - azure

I want to send an event that is sent to Azure Service Bus topic to an event hub. Is this possible?
Details:
I am working with a different team in my company that receives third party events (via webhook) to Azure Service Bus topic and this is further used in different application.
My team wants to now listen/subscribe to this topic using our existing event hub and using azure capture store these events to a storage account.
I did the following:
I created a subscription to their topic in their Azure Service Bus.
I created an event hub in my Event hub namespace.
I am not sure, how to now connect the azure service bus topic subscription to send those events to my event hub.
Thanks for your time.

Service bus operates with the receivers having to pull messages from it. This is opposite to Eventgrid which pushes the events to its subscribers. Eventhub does not pull messages from the source, we need to push messages into it. So you cannot achieve your requirement without an extra component between Service Bus and Eventhub.
One of the possible components would be a service bus topic triggered azure function LINK which writes into the eventhub using output binding LINK or the SDK LINK.
You will need to choose your service plan carefully depending on the volume of messages expected but usually Consumption plan will suit this purpose.

Related

How Azure Event Hubs uses Azure Service Bus

This question is not about the difference between Azure Event Hubs and Azure Service Bus.
The question is as follows:
If you add add Azure Events Hub to your application, then you will notice that it depends on Azure Service Bus, So Events Hub uses and relies on Service Bus. So the question will arise how Events Hub benefit from Service Bus, and how Service Bus fits in the partitioning concept of Events Hub? Does EH creates SB factories under the hood and uses them as partitions? Or what is the story.
I am happy to read articles or books about the issue.
Event Hubs doesn't use Service Bus but they share common components that is why you may see "Service Bus" references when working with Event Hubs resources like exceptions, metrics, client errors etc.

Fundamental difference between Azure Event Hub and Azure Service Bus?

Apart from Azure service bus uses Topics and Azure Event Hub is based on Events - is there any Fundamental difference between Azure Event Hub and Azure Service Bus?
To me, there is no real difference between events and messages as both are just a different type of Json.
Even though you are dealing with JSON in both services, there is fundamentally difference between the two.
Azure Event Hubs focuses more on event streaming whereas Azure Service Bus is more focused on high-value enterprise messaging, which denotes Azure service is focused on messages rather than events.
In azure service bus With a topic, every consumer that subscribed to the topic will get each message which means each message is picked up by only 1 consumer. In case of event hub you can have multiple consumers.
You can read from the docs page here

Can we subscribe an email ID or Cell number as subscriber to Azure event hubs/notification hubs?

In my python application, if any bad/good event happens, I want to send the event details as notification message to user's email addresses or phone #s that have been subscribed to this application. So I am looking for publisher-subscriber model azure cloud
Looks like multiple Azure services achieving similar goal but having a thin line of differences. Event hubs and notification hubs seems promising. So my question is as follows:
Can email ID/phone # be subscribed to Azure event hub and receive the message being sent/produced to Azure event hub?
If not event hub, what is the correct option? Can I achieve it with Service bus or Notification hub?
In AWS, there is a service called SNS (Simple Notification Service) where one can subscribe email/phone number and opt for receiving event messages about that application. I am looking for equivalent to that in Azure.
You can use the Azure Logic Apps / Azure Functions with Event Hubs to achieve this easily.
Using logic apps you can do like simple as below image.
Logic Apps has many in-build connectors for most all Azure Services, you can use Event-hubs,Service bus,SQL etc.,
You can find all the list of available connectors here
Update 1
Once you connected the Event-Hubs to send an Email connector, you will automatically get all the available source data from event-hubs to email task. See below
You can achieve this by using Azure Application Insights. With this, you will be able to monitor your application and receive alerts during application unavailabillity, failures or even during performance issue.
Check this https://learn.microsoft.com/en-us/azure/application-insights/app-insights-tutorial-alert

Azure Service Fabric routing

I would like to get some recommendation, for designing a routing of IoT messages in Azure.
I have following scenario:
Senors sending messages to Azure IoT Hub in Google Protobuf format. Depending of the type of a message, I want to route the message to different applications inside a service fabric.
My current approach is to use a service fabric application to receive all messages from the IoT hub, parse the protobuf message, send the message depending on their type (attribute inside the protobuf) to an type-specific Azure event hub. Now the applications fetches the messages from their "own" event hub and process the messages.
I'm not sure if this is the best approach. I don't like the fact, to have one event hub for each type of message. Service Bus Topics are probably not an option, because I have a lot of messages (~30k per second).
Do I realy need a event hub, to decoupling this process, or does it make sense, to send the messages from the "routing application" direct to the different "type applications"?
What do you think?
Regards,
Markus
If you really need high performance you should take a look at IoT Hub and Event Hubs. Azure Event Hubs is a highly scalable data streaming platform and event ingestion service capable of receiving and processing millions of events per second. Event Hubs can process and store events, data, or telemetry produced by distributed software and devices. Data sent to an event hub can be transformed and stored using any real-time analytics provider or batching/storage adapters.
In other hand if you need only 30k messages per second you can go with Premium Messaging.
Comparison of Azure IoT Hub and Azure Event Hubs
Premium Messaging: How fast is it?
What is Event Hubs?

Can Azure Service Bus offer Message Journaling?

Can Azure Service Bus be set up to journal successfully received messages, like MSMQ can? If so, how?
While Azure Service Bus does not explicitly have a Journal sub-queue, this scenario is easily achievable by using a Topic and 2 Subscriptions. Service Bus support publish-subscribe patterns so you can create a Topic and have the same send APIs/semantics as a Queue and then create 2 subscriptions say called "Destination" and "Journal". By default Subscriptions have a TRUE filter so receive all messages sent to a Topic, and you can receive from these subscriptions just as you would from a Queue.
More details are available here:
http://www.windowsazure.com/en-us/documentation/articles/service-bus-dotnet-how-to-use-topics-subscriptions/

Resources