azure-eventhub

Multiple triggers for an Azure Function

三世轮回 提交于 2020-01-13 08:04:01
问题 We have an Azure Function that has an event hub trigger. Is it possible to have a trigger on more than one event hub for the same Azure Function? 回答1: No, this is not a supported scenario at the moment. From comments (Ling Toh Jan 18 '17 at 18:23): There are no plans to support multiple triggers per Function. You will have to create a Function for each EventHub. If there is common code that may be shared between Functions, you may move them to a helper method that can be called from each

Which Azure messaging service to choose to publish with different messages to different subscribers?

你说的曾经没有我的故事 提交于 2020-01-07 08:09:06
问题 From last question about Azure messaging service by publishing one common message to multiply subscribers by using service bus topic . But we've encounter an issue that our message size is over-sized of the service buss limitation(256KB), so we changed our design by splitting the GIANT message into small piece of sub-message and send them to different subscribers , here is what I'd like to achieve: Let's say we are saving an order object in azure function called SaveOrder and after order was

Unable to set checkpoint in partition

风流意气都作罢 提交于 2020-01-06 04:54:06
问题 I am trying to use this sample (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-node-get-started-send) but I am not able to read unread data only. One more thing I am getting two different error 1) connect ETIMEDOUT 40.112.242.0:5671 2) lease lost while updating checkpoint In the node js sample, I am not able to set checkpoints. I have tried Azure/azure-sdk-for-js as well. But it is showing the same error listed above. When I have also run .netcore sample then they are working

Using an Azure WebJob to read from an EventHub

我的梦境 提交于 2020-01-05 06:01:27
问题 I am trying to consume EventHub messages from a WebJob, without avail. The job builds and runs without throwing any exceptions, but the trigger is never called. I am referencing Microsoft.Azure.WebJobs, Microsoft.Azure.WebJobs.Extensions and Microsoft.Azure.WebJobs.ServiceBus v2.0.0.0-beta2. Here's my code: Program.cs: public static void Main() { var eventHubConfig = new EventHubConfiguration(); string eventHubName = "myHub"; eventHubConfig.AddReceiver(eventHubName, "Endpoint=sb://xxxx

Using an Azure WebJob to read from an EventHub

。_饼干妹妹 提交于 2020-01-05 06:00:27
问题 I am trying to consume EventHub messages from a WebJob, without avail. The job builds and runs without throwing any exceptions, but the trigger is never called. I am referencing Microsoft.Azure.WebJobs, Microsoft.Azure.WebJobs.Extensions and Microsoft.Azure.WebJobs.ServiceBus v2.0.0.0-beta2. Here's my code: Program.cs: public static void Main() { var eventHubConfig = new EventHubConfiguration(); string eventHubName = "myHub"; eventHubConfig.AddReceiver(eventHubName, "Endpoint=sb://xxxx

Azure Event Hub message retention doesn't seem to work

别说谁变了你拦得住时间么 提交于 2019-12-31 05:32:32
问题 We include dates in the events sent to our hub. Whenever I connect a new Azure Function to our Event Hub with a new consumer group, it seems to receive all events ever sent to the hub. This is somewhat expected, however I set the Message Retention on the hub to 1 day, so I expected at most to receive one day worth of events for the new consumer, but it seems to receive all events, even months old events, based on the date within the message, and lots more events than we generate over a day.

Selecting Partition of Azure event hub when using rest api

巧了我就是萌 提交于 2019-12-31 00:43:15
问题 I'm trying to send messages to Azure Event Hub using python and the rest API after some failed experiments i have found working code (see below) but i want to be able to select to which partition to send the event. Is this possible using the rest API and if so how should be done? #!/user/bin/python import json from datetime import datetime from multiprocessing import Pool # from azure.servicebus import _service_bus_error_handler from azure.servicebus.servicebusservice import ServiceBusService

What is causing Azure Event Hubs ReceiverDisconnectedException/LeaseLostException?

故事扮演 提交于 2019-12-28 03:43:49
问题 I'm receiving events from an EventHub using EventProcessorHost and an IEventProcessor class (call it: MyEventProcessor). I scale this out to two servers by running my EPH on both servers, and having them connect to the Hub using the same ConsumerGroup, but unique hostName's (using the machine name). The problem is: at random hours of the day/night, the app logs this: Exception information: Exception type: ReceiverDisconnectedException Exception message: New receiver with higher epoch of '186'

AMQP Stuck waiting for ACK

笑着哭i 提交于 2019-12-25 08:09:46
问题 I am using https://github.com/Azure/azure-event-hubs/tree/master/c library which uses AMQP 1.0 protocol. When I send the first message to event hub via send project it gets stuck waiting for ACK. On my home PC it works fine. On my other PCs, even on Azure Virtual Machine - which is Windows Server 2012, it just waits for ACK in infinite loop. How can I solve this? 来源: https://stackoverflow.com/questions/40133998/amqp-stuck-waiting-for-ack

Azure Event Hub Authorization from Android

前提是你 提交于 2019-12-25 07:50:03
问题 I‘m working on an application that sends data to an azure event hub. This is similar to the blog post here:http://sreesharp.com/send-events-from-android-app-to-microsoft-azure-event-hubs/ However, I updated the connection code to use OkHttp: public void sendMessageOkHttp(String dataPacket, String connectionString, String sasKey){ // Instantiate the OkHttp Client OkHttpClient client = new OkHttpClient(); // Create the body of the message to be send RequestBody formBody = new FormBody.Builder()