html - Which is better? Having 1000 clients using SSE to talk with server or Ajax polling by 1000 clients to the server -


i beginning learn ajax , sse. performance wise method considered better? assume application cater 1000 clients.

  1. having server sent events keep 1000 http connections open 1 way communication push updates clients.

    or

  2. having clients implement ajax polling every 1 second server.

you not want have each client poke server every 1 second. make math: 1000 requests every second. 1 of request starts taking more 1 second, start launch denial of service on own server.

i don't know if in asp.net environment server, if are, suggest take @ signalr library.

a typical demo app signalr chat program. see chatjs or jabbr.

you can follow tutorial learn more signalr.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -