I want to implement web site that will display to user a notification about some event happened on server. My plan is:
- to make an asynchronous request to the server (ASP.NET) which will have a 600 seconds time-out
- if event occurs on the server in the time interval of these 600 seconds server will response with an event details
- if event is not occurred the server then server will send an 'no event' response at the end of 600 seconds
- JS upon receiving a feedback from server will process the response and send the next request.
The problem of the approach is that for a big amount of visitors web site will have a lot of 'pending' requests.
Questions:
Should I consider that as a problem? What is solution for that? Probably I should implement another approach?
Please advice, any feedback is welcome.