Last post Feb 04, 2014 08:14 PM by damienBod
Jan 31, 2014 12:26 PM|S Rafiq|LINK
I have a project where I need to fetch data from devices every hour. There devices have web servers on them, so I am able to get at the data via a HTTP URL.
Presently there is a synchronous process which reads each device, but this is now taking too long. and there are over 800 devices to read from each hour.
At present there are four servers running the app which is fetching the data and it is taking over 1hr. though mind you this probably also includes the time it take to process and insert the data into the database.
I was wondering if it is possible to use SignalR as a client to fetch the data from these asynchronously and thus speed things up. I am thinking of also queuing up the data so that processing can take place separately.
Any ideas welcome.
Feb 04, 2014 08:14 PM|damienBod|LINK
Maybe you could change your approach and push the data instead of fetching the data. You could do this since your using SignalR. You could buffer the data on each client for n-minutues if your want to reduce the traffic.
Here's an example with SirnalR and buffers. You would need to change it a small bit for your needs.
hope this helps