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.
having server sent events keep 1000 http connections open 1 way communication push updates clients.
or
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
Post a Comment