Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an ASP.net MVC4 application where I have to show some data and update the data in milliseconds.
I want to know the data processing of
http://finance.yahoo.com/stock-center/#mkt-movers[^
In this link, Market Movers section is updating continuously, I want the logic and concept behind it. As my requirement is quite similar.
Posted

1 solution

First of all, you would require a very huge server system, a system that would be able to process a huge amount of requests and would be able to provide a great amount of responses to all of the clients connected to your network - that is what Yahoo! has right now. (Do not read; this paragraph is just to tell you that you need a very strong server to manage all your processes on the server as to let the client not have to process much, some clients don't have an i7 in their machines)

Secondly, for a real-time application in ASP.NET you should use the SignalR[^] framework. That enables the web application to create a full-duplex connection. Sending the data from and to the client in a real-time is enabled using this framework. SignalR can work with MVC too; since they're built over ASP.NET.

An official documentation about creating a SignalR application in an MVC project can be read at: http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Mar-15 7:21am    
There is no such thing as "real-time" in Web application. I would start with explaining misuse of this term. SignalR can be considered, first of all, as the facility for adding server push to the Web. It is not obvious, from the question, that the inquirer needs it, but it is even less obvious that the "real-time" requirements, or even just the "in milliseconds" requirement makes sense. I would say that the whole idea looks as technology abuse to me, if not the worse fact: the whole mainstream development based on pure client-server (without server push) is the global misuse of technology in the word, which is overwhelmed with massive abusive, wasteful and brainless repeated polling of data in the dreaded client-server way.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900