Timeline for Custom Streaming Application - Twitch
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Nov 11, 2012 at 8:53 | history | bounty ended | CommunityBot | ||
Nov 6, 2012 at 2:05 | comment | added | Howdy_McGee | It probably doesn't need to pull the list every second but once a channel is active it needs to pull that channel (where web sockets would come in handy) to update the number of viewers viewing the active stream every second. Though even pulling the list every minute I imagine would still be fairly resource intensive. I'll run it through and see what happens though, again maybe splitting up the active channel into its own ajax call to get just viewers might be a good idea. | |
Nov 5, 2012 at 21:33 | comment | added | user555 | Do you need to pull the server every second? Try pulling every minute or so instead. I doubt it's mission critical if you update the channel list less often. | |
Nov 5, 2012 at 19:08 | comment | added | Howdy_McGee | Yeah. When it's updating the list of active channels (via JS that it pulls from the ajax data) that's when I run into problems so it's safe to assume my ajax requests are fairly heavy. What sucks though is I would love to check out Web Sockets and dealing with Persistent Connections but apparently my provider doesn't allow it. So while it may be a valid assumption that Web Sockets would improve my application I have no way of testing :/ | |
Nov 5, 2012 at 8:45 | comment | added | user555 | Am I understanding you correctly that it's the ajax page that is using to much resources? If so I'm not supprised since pulling the server every second takes a lot of processing power. | |
Nov 5, 2012 at 8:06 | comment | added | Howdy_McGee | That's what I was talking about is the resources it takes to update the list. I looked into web sockets but I tried to play around with it and maybe I don't understand how it works but I need to loop through a list to update it instead of just leaving open a port. It has to go through many links and many 'channels'. Comet Might be the answer but I need to look into it. | |
Nov 5, 2012 at 7:44 | history | answered | user555 | CC BY-SA 3.0 |