azure-eventhub

Should I put my events inside a queue after getting them from Azure Event Hub?

被刻印的时光 ゝ 提交于 2019-12-22 04:51:04
问题 I'm currently developing an application hosted on Azure that uses Azure Event Hub. Basically I'm sending messages (or should I say, events) to the Event Hub from a Web API, and I have two listeners: a Stream Analytics task for real-time analysis a standard worker role that computes some stuff based on the received events and then stores them into an Azure SQL Database (this is a lambda architecture). I'm currently using the EventProcessorHost library to retrieve my events from the Event Hub

How can the serialized size of EventData be determined for batching?

情到浓时终转凉″ 提交于 2019-12-19 10:27:53
问题 In the documentation for the Azure EventHubClient there are two methods for sending a batch of data each of them has the remark below and will throw a MessageSizeExceededException if it is ignored. You should ensure that the total serialized size of eventDataList is less than the size limit of one event data transmission, which is 256k by default. A similar warning is present in the Programming Guide How can the serialized size of IEnumerable<EventData> eventDataList be determined? The size

Azure IoT Hub, EventHub and Functions

假如想象 提交于 2019-12-19 06:18:50
问题 I have an IoTHub with a route that points to an EventHub which triggers a Functions. I'm having problem getting the DeviceId and other IoT Hub properties from the event object without adding those explicitly to the payload. If I set the input type to a string (or a custom type): public static void Run(string iotMessage, TraceWriter log) { log.Info($"C# Event Hub trigger function processed a message: {iotMessage}"); } I only get the payload without any other IoT Hub properties like DeviceId ,

Azure IoT Hub, EventHub and Functions

我只是一个虾纸丫 提交于 2019-12-19 06:18:42
问题 I have an IoTHub with a route that points to an EventHub which triggers a Functions. I'm having problem getting the DeviceId and other IoT Hub properties from the event object without adding those explicitly to the payload. If I set the input type to a string (or a custom type): public static void Run(string iotMessage, TraceWriter log) { log.Info($"C# Event Hub trigger function processed a message: {iotMessage}"); } I only get the payload without any other IoT Hub properties like DeviceId ,

How to pass parameters to an implementation of IEventProcessor

十年热恋 提交于 2019-12-19 03:17:07
问题 I am busy implementing a EventProcessorHost client for an azure EventBus client. I have a class that implements IEventProcessor as follows: public class MyEventProcessor : IEventProcessor { Stopwatch checkpointStopWatch; //TODO: get provider id from parent class public async Task CloseAsync(PartitionContext context, CloseReason reason) { Debug.WriteLine("Processor Shutting Down. Partition '{0}', Reason: '{1}'.", context.Lease.PartitionId, reason); if (reason == CloseReason.Shutdown) { await

SignalR scaling out with Azure EventHub

回眸只為那壹抹淺笑 提交于 2019-12-19 00:24:20
问题 I am looking high frequency scaling solution for SignalR. I am wondering if I can do it with Azure EventHub. If I use EventHub as my backplane for SignalR messages, will it become a bottleneck for me? I've checked this page but there is nothing about EventHub as it is fairly new. 回答1: I can't speak to the precise specifics of SignalR; however, you could in principle use EventHubs for a backplane, but you need to be aware of the limitations. SignalR's backplane scaleout pattern assumes that

High throughput send to EventHubs resulting into MessagingException / TimeoutException / Server was unable to process the request errors

♀尐吖头ヾ 提交于 2019-12-18 04:23:48
问题 We are experiencing lots of these exceptions sending events to EventHubs during peak traffic: "Failed to send event to EventHub. Exception : Microsoft.ServiceBus.Messaging.MessagingException: The server was unable to process the request; please retry the operation. If the problem persists, please contact your Service Bus administrator and provide the tracking id." or "Failed to send event to EventHub. Exception : System.TimeoutException: The operation did not complete within the allocated

Azure IoT Hub Event EndPoint Retention Time Not Working?

旧街凉风 提交于 2019-12-13 08:49:54
问题 I set the event retention time to 1 day (the lowest value and think it's default) in my Azure IoT Hub. I can see from usage donut diagram that each day it resets to 0% usage and 0 message. However, when I start my Stream Analytics with custom start time (say 2 mths ago), why would I still be able to pick up older events/messages? Anyone notice this behavior too? Thanks! 来源: https://stackoverflow.com/questions/45590000/azure-iot-hub-event-endpoint-retention-time-not-working

Any Example of WebJob using EventHub?

笑着哭i 提交于 2019-12-13 06:40:58
问题 I've tried to come up with something from the example in the WebJobsSDK gitHub var eventHubConfig = new EventHubConfiguration(); string eventHubName = "MyHubName"; eventHubConfig.AddSender(eventHubName,"Endpoint=sb://test.servicebus.windows.net/;SharedAccessKeyName=SendRule;SharedAccessKey=xxxxxxxx"); eventHubConfig.AddReceiver(eventHubName, "Endpoint=sb://test.servicebus.windows.net/;SharedAccessKeyName=ReceiveRule;SharedAccessKey=yyyyyyy"); config.UseEventHub(eventHubConfig); JobHost host =

Configuring notification tag for Azure Function

可紊 提交于 2019-12-13 05:25:57
问题 I'm using an Azure function to pick up messages from an event hub and send out notifications via the Azure notification hub. Works great! Now I wanted to see whether I could add tags to those messages in order to allow user targeting via those tags. The output for the notification hub has a "tag expression" parameter which you can configure. But this seems to be a static text. I need to dynamically set these tags based on the message received from the event hub instead. I'm not sure whether