我们可以作为Azure事件中心/通知中心的订阅者订阅电子邮件ID或单元号吗? [英] Can we subscribe an email ID or Cell number as subscriber to Azure event hubs/notification hubs?
问题描述
在我的python应用程序中,如果发生任何不良事件/好事件,我想将事件详细信息作为通知消息发送到已订阅此应用程序的用户的电子邮件地址或电话号码.因此,我正在寻找发布者-订阅者模型的天蓝色云
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
看起来有多个Azure服务实现了相似的目标,但差异很小.事件中心和通知中心似乎很有希望.所以我的问题如下:
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:
是否可以将电子邮件ID/电话号码订阅到Azure事件中心,并接收正在发送/产生到Azure事件中心的消息?
Can email ID/phone # be subscribed to Azure event hub and receive the message being sent/produced to Azure event hub?
如果不是事件中心,正确的选择是什么?我可以通过Service bus或Notification Hub实现它吗?
If not event hub, what is the correct option? Can I achieve it with Service bus or Notification hub?
在AWS中,有一项称为SNS(简单通知服务)的服务,其中的用户可以订阅电子邮件/电话号码并选择接收有关该应用程序的事件消息.我正在寻找与Azure中相同的东西.
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.
推荐答案
您可以使用具有事件中心的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为大多数所有Azure服务提供了许多内置连接器,您可以使用服务总线,
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
更新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
这篇关于我们可以作为Azure事件中心/通知中心的订阅者订阅电子邮件ID或单元号吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!