S
S
smet4ik2014-01-20 16:36:29
ASP.NET
smet4ik, 2014-01-20 16:36:29

ASP.NET MVC work with data stream over TCP?

Good afternoon.
Maybe someone will push to the idea, or faced a similar problem.
There is a stream of data arriving via TCP, every 3.5 seconds, and this data must be displayed on the site in real time. Please tell me how best to get this data, how to process it more logically, what mechanisms to use, what better architecture to come up with. No data storage required.
Sorry if the question is too general.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lam0x86, 2014-01-20
@lam0x86

As an option, write a system service that will read this stream and store the data in its own OP. When accessing a web page, we get data from the service using any available interprocess communication mechanism, for example, shared memory.

A
AigizK, 2014-01-20
@AigizK

Write a service or Windows application and run it as an administrator.
The application either writes data to the log, and the site reads, or the application opens a specific page and, as a parameter, passes your data there. If the amount of data is not large, option 2 is preferable. In this case, the Action that fires when the page is opened, we read this parameter and update the data on the client.
Update the data on the client via SignalR or the client makes a request every 3.5 seconds and updates via ajax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question