c# - Get data from an API to my server every minute -


here's api server can give me real time news: every minute there new retrieve. there's web page, javascript ask api news once every minute.

and not fine... unless web page made single user , open on 1 machine @ time (which not case of internet). api, infact, restricts number of call can per minute: let's suppose api ban me if more 1 call per minute. if 100 users load web page, api receive 100 calls per minute (!!!).

since flow web page >> calls >> api think there no solution without inserting node lazy loads api server.

my web page >> calls >> server >> calls every minute >> api

since instances of web page may many while server 1 think solution.

however, have no idea if:

a) correct solution? or somehow web page behave correctly without need of intermediary server?

b) how can implement in asp.net mvc4? there support server side timers?

c) if can iis retrieve data every minute, should store in database serve web page?

d) api server i'm talking the times newswire api. if ever used similar api, did created domain model, database table, service , routine retrieve data or did writed javascript code in web page? if have milions of users?

the api ban me if more 1 call per minute

then need solution calls api every minute , stores on server. there's tons of ways of doing this, depending on many requirements. can go far writing static html file show client.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -