Page 1 of 1

Constant Polling application for Event Hub as Receiver

Posted: Fri Aug 14, 2015 9:24 am
by vikramadhav
Folks ,

i need your guidance , first thought for this thinking building a background job but have layman experience in App World, i trying to build a windows app which will constant poll from event hub as Receiver. As thanks to Microsoft there is no support for Service Bus SDK. i am using SBLite as of now

How can i constantly poll message from event hub.

Re: Constant Polling application for Event Hub as Receiver

Posted: Fri Aug 14, 2015 2:54 pm
by haroldpulcher
Go here:
https://azure.microsoft.com/en-us/docum ... etstarted/

This demo does what you are asking. It implements IEventProcessor, which after fired up will continuously poll for the new info from the event hub.

I did this last night. In the same solution I have both the reader and the writer. Fired up the writer, then started sending data. Fired up the reader and data just started showing up. As a test fired up a second reader, and it was getting data from the same feed. Sorta neat.

Re: Constant Polling application for Event Hub as Receiver

Posted: Mon Aug 17, 2015 5:12 am
by vikramadhav
Thanks for your reply,

but currently there is no support for Azure.ServiceBus namespace in IoT Core. the only workaround is right now is polling via REST with a worker thread. but that's not feasible as there has to be a custom implementation retry mechanism for receive method.

Re: Constant Polling application for Event Hub as Receiver

Posted: Mon Aug 17, 2015 11:44 am
by haroldpulcher
Ran into the same problem over the weekend while working up a talk on this very subject.

There are a couple of guys out there that have written send/recieve eventhub, but for the most part they are just doing a constant poll to get results.

There has to be a better way.

Will let you know if I find/code one.